public function __construct(Request $request) { $this->_request = $request; $this->_template = new Template(); $this->_template->_controller($request->controller())->_module($request->module())->_action($request->action()); $params = array('user' => 'sharpy', 'password' => 'sharpy', 'dbname' => 'sharpy', 'host' => 'localhost'); $this->_db = MySQL::getInstance($params); }