本文整理匯總了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();
}