當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ControllerFactory::includeController方法代碼示例

本文整理匯總了PHP中ControllerFactory::includeController方法的典型用法代碼示例。如果您正苦於以下問題:PHP ControllerFactory::includeController方法的具體用法?PHP ControllerFactory::includeController怎麽用?PHP ControllerFactory::includeController使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ControllerFactory的用法示例。


在下文中一共展示了ControllerFactory::includeController方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author PrestaShop SA <contact@prestashop.com>
 *  @copyright  2007-2011 PrestaShop SA
 *  @version  Release: $Revision: 6823 $
 *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */
ControllerFactory::includeController('ParentOrderController');
class OrderControllerCore extends ParentOrderController
{
    public $step;
    public function init()
    {
        parent::init();
        $this->step = (int) Tools::getValue('step');
        if (!$this->nbProducts) {
            $this->step = -1;
        }
    }
    public function preProcess()
    {
        global $isVirtualCart, $orderTotal;
        parent::preProcess();
開發者ID:priyankajsr19,項目名稱:shalu,代碼行數:31,代碼來源:OrderController.php

示例2: getController

 public static function getController($className, $auth = false, $ssl = false)
 {
     ControllerFactory::includeController($className);
     return new $className($auth, $ssl);
 }
開發者ID:nicolasjeol,項目名稱:hec-ecommerce,代碼行數:5,代碼來源:ControllerFactory.php

示例3: getController

 public static function getController($className, $folder = '')
 {
     ControllerFactory::includeController($className, $folder);
     $class = $folder . '\\' . $className;
     return new $class();
 }
開發者ID:vityabond,項目名稱:cmf-big-maker,代碼行數:6,代碼來源:ControllerFactory.php


注:本文中的ControllerFactory::includeController方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。