Here a few of those "how did that work again" things, in Zend framework. Mostly for myself but hey, I'm not greedy. If you know some new/nifty ones, feel free to leave a comment!
Loading a view from a different directory
public function someAction
() { // Option one $titleView =
new Zend_View
();
$titleView->setScriptPath
( APPLICATION_PATH .
'views/scripts/');
// Option two $titleView =
new Zend_View
(array('scriptPath'=>APPLICATION_PATH .
'views/scripts/'));
$viewResult =
$titleView->render
('_my_view_script.phtml');
}
Continue reading "Zend framework reminders"