Hi,
I want to put some javascript link to view via controller, because
This Helper loads for every function I have in controller, I want to
load this helper to only one fuction. Here code:
<?php
class XhinaDisplayHelper extends AppHelper {
var $helpers = array('Html', 'Javascript');
function beforeRender() {
$view = & ClassRegistry::getObject('view');
if (is_object($view)) {
$view->addScript($this->Javascript->link('xhina/
XinhaLoader.js?lang=pl&skin=green-look'));
$view->addScript($this->Javascript->link('xhina/examples/
XinhaConfig'));
}
}
}
?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---