12-15-2010, 12:49 AM
[eluser]diasansley[/eluser]
The render output.
The render output.
Code:
function _renderOutput($link, $array)
{
$this->content['content'] = $this->parser->parse($link, $array, true);
$this->renderTemplate();
}
/**
* renders main frontend template and outputs it
*/
function renderTemplate($search_text = null)
{
$categories = $this->_categories();
$news = $this->m_news->selectAll();
$utilities = $this->m_utilities->selectAll();
$this->content['menu_navigation'] = $this->parser->parse('layout/_menu_navigation', array('categories' => $categories,'news'=>$news,'search_text'=>$search_text,'utilities'=>$utilities), true);
$this->parser->parse('layout/default.php', $this->content, false);
}