public function getPath()
    {
        $controller = str_replace('\\', '/', $this->get('controller'));

        $path = (empty($controller) ? '' : $controller . '/') . $this->get('name') . '.' . $this->get('format') . '.' . $this->get('engine');

        return empty($this->parameters['module']) ?
            self::APP_VIEWS_DIRECTORY . '/' . $path : '@' . $this->get('module') . '/' . self::MODULE_VIEWS_DIRECTORY . '/' . $path;
    }
public function getPath()
    {
        $controller = str_replace('\\', '/', $this->get('controller'));

        $path = (empty($controller) ? '' : $controller . '/') . $this->get('name') . '.' . $this->get('format') . '.' . $this->get('engine');

        return empty($this->parameters['module']) ?
            self::APP_VIEWS_DIRECTORY . '/' . $path : '@' . $this->get('module') . '/' . self::MODULE_VIEWS_DIRECTORY . '/' . $path;
    }
public function getPath ( ) { $ controller = str_replace ( '\\' , '/' , $ this -> get ( 'controller' ) ) ; $ path = ( empty ( $ controller ) ? '' : $ controller . '/' ) . $ this -> get ( 'name' ) . '.' . $ this -> get ( 'format' ) . '.' . $ this -> get ( 'engine' ) ; return empty ( $ this -> parameters [ 'module' ] ) ? self :: APP_VIEWS_DIRECTORY . '/' . $ path : '@' . $ this -> get ( 'module' ) . '/' . self :: MODULE_VIEWS_DIRECTORY . '/' . $ path ; }
Returns the path to the template
- as a path when the template is not part of a module
- as a resource when the template is part of a module.

@return string A path to the template or a resource
Returns the path to the template - as a path when the template is not part of a module - as a resource when the template is part of a module .