Harro,
I am stuck and do not know what to do right now. We recently upgraded the framework to 1.8. We use docraptor to generate reports for our customers and we have a template just for the PDF exports. The way docraptor makes pdfs, you have to send in all your js and css inline for it to work.
Code used to forge the view:
$report = View::forge('export/template', array('content'=>$content, 'css'=>true), false); //last parameter false to turn off auto filter
self::output('pdf', $report->render()); //From here the pdf gets rendered and put in our public files folder for later use.
Code to echo js:
<?php echo Asset::js('jquery.min.js', array(), null, true); ?>
Following output in the inline js for 1.7, first line with escape character for regex:
n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,"")
Following output in the inline js for 1.8, first line with escape character:
n.extend({expando:"jQuery"+(m+Math.random()).replace(//D/g,"")
Causing the rest of the jquery to be commented out.
Can you please tell if I have a setting I need to correct or change from 1.7 to 1.8 or is something wrong?
David
It looks like you're new here. If you want to get involved, click one of these buttons!