Personally i usually have inside the application directory a few others
directory which are not necessarily modules. I have a helpers directory
which contains of view helpers that used across all modules. If you need to
have a view that will be shared across modules then just create a directory
called 'views' inside the application directory and make sure to add it to
the stack that the script will know where to look for them.
$view = new Zend_View();
$view->addScriptPath('/path/to/app/views');
$view->addScriptPath('/path/to/custom/');
P.S BTW i personally use the viewRenderer helper, Makes things easier to
render.
On Thu, May 28, 2009 at 6:33 PM, monk.e.boy <[email protected]>wrote:
>
> Hey,
>
> In my views I use a common pagination style across all my modules like
> this:
>
> <?= $this->paginationControl($this->paginator, 'Sliding',
> '../../../views/scripts/partials/pagination.phtml'); ?>
>
> Changing it to this:
>
> /var/www/ZF-apps/views/scripts/partials/pagination.phtml
>
> does not work - I get a not found in path error. How do I make this change?
> How do you guys share a single pagination.phtml across all modules?
>
> Thanks!!
>
> monk.e.boy
> --
> View this message in context:
> http://www.nabble.com/ZF-1.8.2-no-more-..-..-..--in-my-views%21-tp23764251p23764251.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/