I found a temporary solution. There must be a better way to solve the
problem, but the following works:
1. Edit Zend/Dojo/View/Helper/Dojo/Container.php. In that file find function
registerDijitLoader(), where the zendDijits js code is generated and add
these lines by the end of the function.
$zendDijits_string =
'//<![CDATA[' . "\n" .
'var zendDijits = ' . $this->dijitsToJson() . ';' . "\n" .
'//]]>';
$js_cache_file_name = 'mytempcache-userid1.js';
// this name may be generated using the current user id or username, md5,
etc.
$js_cache_file_location = APPLICATION_PATH . '/../public/' .
$myjscachecache_path . $js_cache_file_name;
file_put_contents($js_cache_file_location, $zendDijits_string);
2. In the view/layout file myview.phtml, include the generated javascript.
I hope this works, please share another solution if you find.
--
View this message in context:
http://n4.nabble.com/zend-dojo-form-generated-zendDijits-variable-tp976263p976673.html
Sent from the Zend Framework mailing list archive at Nabble.com.