本文整理汇总了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();
示例2: getController
public static function getController($className, $auth = false, $ssl = false)
{
ControllerFactory::includeController($className);
return new $className($auth, $ssl);
}
示例3: getController
public static function getController($className, $folder = '')
{
ControllerFactory::includeController($className, $folder);
$class = $folder . '\\' . $className;
return new $class();
}