_view = Solar::factory('Solar_View'); $templatePath = str_replace('_', '/', str_replace('_Controller', '_View', get_class($this))); $this->_view->addTemplatePath($templatePath); } public function __get($key) { return isset($this->_data[$key]) ? $this->_data[$key] : null; } protected function __set($key, $value) { $this->_data[$key] = $value; } public function __isset($key) { return isset($this->_data[$key]); } } ?>