I can pass value from controller to view with this =>
$this->view->objvalue = $value;
But how can i pass value to layout.phtml ?
I want to have a link to edit table. So i have to make the link with 'id'=>$getvaluefromsomewhere->id. How can i do this in zend framework ?
Where would i put this file (My_Layout_Plugin.php) ?
class My_Layout_Plugin extends Zend_Controller_Plugin_Abstract
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$layout = Zend_Layout::getMvcInstance();
$view = $layout->getView();
$view->whatever = 'foo';
}
}