예제 #1
0
 function __construct(Dao_Factory $daoFactory, Services_Settings_Container $settings, array $currentSession)
 {
     $this->_daoFactory = $daoFactory;
     $this->_settings = $settings;
     $this->_currentSession = $currentSession;
     $this->_spotSec = $currentSession['security'];
     $this->_tplHelper = $this->getTplHelper(array());
     /*
      * Create a list of paths where to look for template files in
      * the correct (last template first) order
      */
     $this->_templatePaths = array('templates/' . $currentSession['active_tpl'] . '/');
     foreach ($this->_tplHelper->getParentTemplates() as $parentTemplate) {
         $this->_templatePaths[] = 'templates/' . $parentTemplate . '/';
     }
     # foreach
 }