|
|||
|
yeah, i have a widget that shows on all the pages, so i need to create it in the layout, i created a view helper CommentWidget to retrieve the data and return them formatted, then in the layout i have <?php $this->commentWidget(); ?> that's supposed to render the returned html from the view helper but it's not happening! knowing that the helper path is well set in the bootstrap file
any ideas? |
|
||||
|
Hi
I also have that problem such that when i set my HelperPath to my view helpers ZF for some reason doesnt render the output as expected. Am not sure if it is a path resolving issue - I did everything but nothing worked!! But when i moved the helpers to the Zend>View>Helper of the Zend component folder they work. - though not ideal this seems to be the only working option for me. So you might be having the problem of path resolves.(adding your helper folder to an include folder to apache also didnt work for me). Try putting them in that folder and see if it works. Let me know though ![]() |
|
|||
|
It's not the first time I use View Helpers from the library/APPNAME/View/Helper directory in my applications, but this is the first time i try to pull the data to the layout, am not sure where the problem is, I also tried to instantiate the model in the view but I nothing also...
|
|
||||
|
guys,
Make sure the Zend_Loader isn't searching at the wrong place. If I am right, loader tries to read your file in a path like Boodito said: "library/APPNAME/View/Helper". This happens in classes that uses the Zend's naming convention. regards,
__________________
Lucas Mauricio C. e Martins CR Vasco da Gama, my biggest passion! Ajude a Combater o Spam! - Help fighting spam! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|