Tuesday, November 11, 2014

How to include css from controller and view in zend?


include within a view file: $this->headLink()->appendStylesheet(‘filename.css’);

include  within a controller: $this->view->headLink()->appendStylesheet(‘filename.css’);

And then somewhere in your layout you need to echo out your headLink object:

headLink();?>

2 comments: