コード例 #1
0
        $name = basename($path);
        // View info struct.
        $viewInfo = array('name' => $path, 'url' => "{$viewsUrl}/{$path}", 'path' => "{$pathToViews}/{$path}", 'viewsPath' => $pathToViews, 'viewsUrl' => $viewsUrl, 'viewFile' => "{$pathToViews}/{$path}/view.php");
        return $viewInfo;
    }
    /**
     * put your comment there...
     * 
     * @param mixed $action
     */
    public function setAction($action)
    {
        $this->action = $action;
        return $this;
    }
    /**
     * put your comment there...
     * 
     * @param mixed $name
     * @param mixed $value
     */
    public function setRequestParameter($name, $value)
    {
        $this->request[$name] = $value;
        return $this;
    }
}
// End class.
// Hookable!
CJTController::define('CJTController', array('hookType' => CJTWordpressEvents::HOOK_FILTER));