More information about the Underscore mailing list

[_] Hello underscore + Zend Global Partials

Rhys Thomas rhys at thoughtden.co.uk
Wed Dec 2 16:47:13 GMT 2009

Hi Rhys,
You are using them relatively to the layoutPath

<?=$this->partialLoop('partials/menu.phtml',$this->actions)?>
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"

so APPLICATION_PATH can be a shared place.

you can use them in view scripts directory like
<?=$this->partialLoop('action/action-partial.phtml',$this->actions)?>

Marek
Cheers Marek,  It seems that due to a redirect plugin being using for  
the modules, calling default in the partial call it searched outside  
of the modules and solved the issue

i.e >

  (
    array(
     'default' => self::$root .   '/app/controllers',
     'siteadmin' => self::$root .  '/app/modules/siteadmin/controllers',
     'myadmin' => self::$root .   '/app/modules/myadmin/controllers',
     'stats' => self::$root .   '/app/modules/stats/controllers'
          )
   );


Rhys