opencart/opencart — pull request #2347 by RAdevelop (2014-11-25 22:44:54+00:00)
Title: new method setOutput

in each Controller class we have code like this:

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') .
'/template/'.$view_template)) {

$this->response->setOutput($this->load->view($this->config->get('config_template')
. '/template/'.$view_template, $data));
} else {

$this->response->setOutput($this->load->view('default/template/'.$view_template,
$data));
}

I think woud be better to use one method for this:
$this->setOutput('product/category.tpl')