page)) { $this->page = new Page(); } $this->data_model = new Data_Model(); $db = \Meta\Base\db::get_instance(); $this->page->queries =& $db->queries; } // -------------------------------------------------------------------------- /** * Function for loading a view * * @param string $file * @param array $data * @param bool $return * @return mixed */ public function load_view($file, array $data=array(), $return=FALSE) { return $this->page->load_view($file, $data, $return); } // -------------------------------------------------------------------------- /** * Automate loading of header and footer * * @param string $file * @param array $data * @param bool $return * @return mixed */ public function render($file, array $data=array(), $return=FALSE) { return $this->page->render($file, $data, $return); } } // End of controller.php