We help IT Professionals succeed at work.

ZendX JQuery 1.8.2

bcv2010
bcv2010 asked
on
I have the following code in the tag of layout.ptml.The code appear in index.phtml. THe problem I have is that on the edit.phtml, the jQuery code is missing, only the application.js appear in the page source code.... Have I missed out anything ?

echo $this->jQuery()
->setVersion('1.4.2')
->setUiVersion('1.8.22');


echo $this->headScript()
->appendFile($this->baseUrl().'/js/application.js');
Comment
Watch Question

Commented:
OK I found the solution: I just have to add ->enable()->uiEnable();. So the code should become:

echo $this->jQuery()
 ->setVersion('1.4.2')
->setUiVersion('1.8.22')
->enable()
->uiEnable();

Author

Commented:
fount the solution myself

Explore More ContentExplore courses, solutions, and other research materials related to this topic.