当前位置: 首页>>代码示例>>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;未经允许,请勿转载。