public function stream_open($path)
    {
        //Get the view script source
        $identifier = str_replace('tmpl://', '', $path);

        //Get the template object from the template stack and parse it
        $template = AnService::get($identifier)->top();

        //Get the template path
        $this->_path = $template->getPath();

        //Get the template data
        $this->_data = $template->parse();

       // file_get_contents() won't update PHP's stat cache, so performing
       // another stat() on it will hit the filesystem again. Since the file
       // has been successfully read, avoid this and just fake the stat
       // so include() is happy.
        $this->_stat = array('mode' => 0100777, 'size' => strlen($this->_data));

        return true;
    }
public function stream_open($path)
    {
        //Get the view script source
        $identifier = str_replace('tmpl://', '', $path);

        //Get the template object from the template stack and parse it
        $template = AnService::get($identifier)->top();

        //Get the template path
        $this->_path = $template->getPath();

        //Get the template data
        $this->_data = $template->parse();

       // file_get_contents() won't update PHP's stat cache, so performing
       // another stat() on it will hit the filesystem again. Since the file
       // has been successfully read, avoid this and just fake the stat
       // so include() is happy.
        $this->_stat = array('mode' => 0100777, 'size' => strlen($this->_data));

        return true;
    }
public function stream_open ( $ path ) { //Get the view script source $ identifier = str_replace ( 'tmpl://' , '' , $ path ) ; //Get the template object from the template stack and parse it $ template = AnService :: get ( $ identifier ) -> top ( ) ; //Get the template path $ this -> _path = $ template -> getPath ( ) ; //Get the template data $ this -> _data = $ template -> parse ( ) ; // file_get_contents() won't update PHP's stat cache, so performing // another stat() on it will hit the filesystem again. Since the file // has been successfully read, avoid this and just fake the stat // so include() is happy. $ this -> _stat = array ( 'mode' => 0100777 , 'size' => strlen ( $ this -> _data ) ) ; return true ; }
Opens the template file and converts markup.

This function filters the data from the stream by pushing it through the template's
read filter chain. The template object to use for filtering is the top node on the
template stack

@param string    The stream path
@return boolean
Opens the template file and converts markup .