1.

How To Include Css From Controller And View In Zend?

Answer»

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();?>

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();?>



Discussion

No Comment Found