Friday, 15 February 2013

php - Zend Framework - shared view script path ( global partials ) -


How is it possible to partly make a partial view script path global partially within the Z framework?

We know that you can make a partial call between the module

  example- $ echo-> partial ('partial' title ',' module_name ');  

But we need to install a partial folder in the root (i.e. module below) so that it can access all the scenes.

It has been suggested that to set up a shared visual script path, how is it done?

Zend_View addcriptPath is a method, Therefore, in a Zend_Controller_Action subclass, you can do something like this:

  $ this-> View- & gt; AddScriptPath ("/ path / to / your / view / scripts /");  

Now when you call render or partial loop or partial loop , in the path path will be attending .


No comments:

Post a Comment