protected function loadTpl($tpl)
    {
        $this->tplBase = $this->request->args('tplBase') ? $this->request->args('tplBase') : dirname($tpl);
        $content = file_get_contents($tpl);
        $this->prepareTpl($content);
        return json_decode($content, true);
    }
protected function loadTpl($tpl)
    {
        $this->tplBase = $this->request->args('tplBase') ? $this->request->args('tplBase') : dirname($tpl);
        $content = file_get_contents($tpl);
        $this->prepareTpl($content);
        return json_decode($content, true);
    }
protected function loadTpl ( $ tpl ) { $ this -> tplBase = $ this -> request -> args ( 'tplBase' ) ? $ this -> request -> args ( 'tplBase' ) : dirname ( $ tpl ) ; $ content = file_get_contents ( $ tpl ) ; $ this -> prepareTpl ( $ content ) ; return json_decode ( $ content , true ) ; }
Load the JSON extract tpl data into a PHP array.

@param string $tpl A valid stream or file location for the tpl.

@return array An array of the tpl data.
Load the JSON extract tpl data into a PHP array .