AdminModule/presenters/BasePresenter.php
public function formatLayoutTemplateFiles()
     {
         $name = $this->getName();
         $presenter = substr($name, strrpos(':'.$name, ':'));
         $layout = $this->layout ? $this->layout : 'layout';
         $dir = dirname($this->getReflection()->getFileName());
         $dir = is_dir("$dir/templates") ? $dir : dirname($dir);

         $list = array(
             APP_DIR."/../libs/webcms2/webcms2/AdminModule/templates/@$layout.latte",
         );

         do {
             $list[] = "$dir/templates/@$layout.latte";
             $list[] = "$dir/templates/@$layout.phtml";
             $dir = dirname($dir);
         } while ($dir && ($name = substr($name, 0, strrpos($name, ':'))));

         return $list;
     }
public function formatLayoutTemplateFiles()
     {
         $name = $this->getName();
         $presenter = substr($name, strrpos(':'.$name, ':'));
         $layout = $this->layout ? $this->layout : 'layout';
         $dir = dirname($this->getReflection()->getFileName());
         $dir = is_dir("$dir/templates") ? $dir : dirname($dir);

         $list = array(
             APP_DIR."/../libs/webcms2/webcms2/AdminModule/templates/@$layout.latte",
         );

         do {
             $list[] = "$dir/templates/@$layout.latte";
             $list[] = "$dir/templates/@$layout.phtml";
             $dir = dirname($dir);
         } while ($dir && ($name = substr($name, 0, strrpos($name, ':'))));

         return $list;
     }
public function formatLayoutTemplateFiles ( ) { $ name = $ this -> getName ( ) ; $ presenter = substr ( $ name , strrpos ( ':' . $ name , ':' ) ) ; $ layout = $ this -> layout ? $ this -> layout : 'layout' ; $ dir = dirname ( $ this -> getReflection ( ) -> getFileName ( ) ) ; $ dir = is_dir ( "$dir/templates" ) ? $ dir : dirname ( $ dir ) ; $ list = array ( APP_DIR . "/../libs/webcms2/webcms2/AdminModule/templates/@$layout.latte" , ) ; do { $ list [ ] = "$dir/templates/@$layout.latte" ; $ list [ ] = "$dir/templates/@$layout.phtml" ; $ dir = dirname ( $ dir ) ; } while ( $ dir && ( $ name = substr ( $ name , 0 , strrpos ( $ name , ':' ) ) ) ) ; return $ list ; }
Formats layout template file names.
@return array
Formats layout template file names .