PHP gevorderde |
|
Hmmz, klinkt logisch. Deze middag eens uitproberen.
Zend heeft enkele manieren om ze in te laden.. Om het wat gemakkelijk te maken zeker ;). Hieronder voor degene die even slim zijn als ik ;).
// adding scripts
$this->headScript()->appendFile('/js/prototype.js')
->appendScript($onloadScript);
// Putting scripts in order
// place at a particular offset to ensure loaded last
$this->headScript()->offsetSetFile(100, '/js/myfuncs.js');
// use scriptaculous effects (append uses next index, 101)
$this->headScript()->appendFile('/js/scriptaculous.js');
// but always have base prototype script load first:
$this->headScript()->prependFile('/js/prototype.js');
// adding scripts $this->headScript()->appendFile('/js/prototype.js') ->appendScript($onloadScript); // Putting scripts in order // place at a particular offset to ensure loaded last $this->headScript()->offsetSetFile(100, '/js/myfuncs.js'); // use scriptaculous effects (append uses next index, 101) $this->headScript()->appendFile('/js/scriptaculous.js'); // but always have base prototype script load first: $this->headScript()->prependFile('/js/prototype.js');
|