|
|||
|
I have my rendition of My_View_Smarty running just fine, and would now like to implement the Zend_Layout with it. When I add Zend_Layout, it throws an error
Fatal error: Call to undefined method My_View_Smarty::addScriptPath() in /path/to/_library/Zend/Layout.php on line 725 I am using the My_View_Smarty (replacing My for Zend) from the ZendView documentation as it is (except the 'My' replacement) and as such there is no method called addScriptPath(). I thought of simply adding one and just doing a parrent::addScriptPath($path) within it, but this extension uses the setScriptPath to set the template directory for Smarty, and I am not sure that is what the original did, so it might not be what should be done in an addScriptPath method. Any thoughts about what this addScriptPath should do in a situation where adding the Layout functionality to a view based on Smarty? Thanks for taking the time to consider this. I look forward to all suggestions. |
|
|||
|
Quote:
$layout = new Zend_Layout(); $layout->addScriptPath(); something like that? |
|
|||
|
Quote:
I am not sure what would be the best way, all of this ZF stuff is new to me and I do not have the time to try to work it out. I am now doing this without layout at this point, using include files to handle typical layout segments. I may go back to this later, in a refactoring phase. Thanks for the thoughts though. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|