예제 #1
0
 /**
  * Setup the Application Paths
  * @param \Jazz\Application\ISettings $settings
  * @param \Jazz\Loader\IEngine $engine
  */
 public function setupApplication(\Jazz\Application\ISettings $settings, \Jazz\Loader\IEngine $engine)
 {
     $engine->setReturnFilePath(true);
     $path = $this->formatApplicationPath($settings);
     if (file_exists($path)) {
         $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'phtml'));
     }
 }
예제 #2
0
 /**
  * Setup the Component Paths
  * @param \Jazz\Application\ISettings $settings
  * @param \Jazz\Loader\IEngine $engine
  * @param string $name
  */
 public function setupComponent(\Jazz\Application\ISettings $settings, \Jazz\Loader\IEngine $engine, $name)
 {
     $engine->setReturnFilePath(true);
     $path = $this->formatComponentPath($settings, $name);
     if (file_exists($path)) {
         $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'ini'));
         $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'php'));
     }
 }