Wednesday, 17 October 2012

How to include css from controller and view in zend. | Zend Framework Interview Questions

From within a view file: $this->headLink()->appendStylesheet(‘filename.css’);
From within a controller: $this->view->headLink()->appendStylesheet(‘filename.css’);
And then somewhere in your layout you need to echo out your headLink object:
<?=$this->headLink();?>

No comments: