function render_theme_path() { echo rock_theme_path(); }
/** * Display View * * @param string $action action name, if not NULL, find view with this name */ public function display($action = null) { if (is_null($action)) { $action = $this->_action; } $view = null; if ($this->_inPlugin) { $view = dirname(dirname($this->_path)) . "/views/" . str_replace(".", "/", $this->_name) . "/{$action}.php"; } else { $view = dirname(__ROOT__) . DS . rock_theme_path() . "/views/" . str_replace(".", "/", $this->_name) . "/{$action}.php"; } if (is_file($view)) { extract(get_object_vars($this), EXTR_OVERWRITE); require $view; } }