当前位置: 首页>>代码示例>>PHP>>正文


PHP Am_Controller::init方法代码示例

本文整理汇总了PHP中Am_Controller::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Am_Controller::init方法的具体用法?PHP Am_Controller::init怎么用?PHP Am_Controller::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Am_Controller的用法示例。


在下文中一共展示了Am_Controller::init方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 public function init()
 {
     parent::init();
     $this->loadCart();
     $this->view->cart = $this->cart;
     $this->getDi()->blocks->add(new Am_Block('cart/right', ___('Search Products'), 'cart-search', $this->getModule(), 'search.phtml', Am_Block::TOP))->add(new Am_Block('cart/right', ___('Your Basket'), 'cart-basket', $this->getModule(), 'basket.phtml', Am_Block::TOP))->add(new Am_Block('cart/right', ___('Authentication'), 'cart-auth', $this->getModule(), 'auth.phtml'));
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:7,代码来源:IndexController.php

示例2: init

 public function init()
 {
     $this->strategy = $this->getDi()->helpdeskStrategy;
     $type = defined('AM_ADMIN') ? 'admin' : 'user';
     $this->getView()->headLink()->appendStylesheet($this->getView()->_scriptCss('helpdesk-' . $type . '.css'));
     parent::init();
 }
开发者ID:grlf,项目名称:eyedock,代码行数:7,代码来源:Controller.php

示例3: init

 public function init()
 {
     parent::init();
     set_time_limit(0);
     ignore_user_abort(true);
     @ini_set('memory_limit', '256M');
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:7,代码来源:CronController.php

示例4: init

 public function init()
 {
     parent::init();
     $this->loadCart();
     $this->view->cart = $this->cart;
     $cc = $this->getCategoryCode();
     $this->view->cc = $cc;
     $cats = explode(',', $this->getRequest()->getCookie('am-cart-cats', ''));
     if (!in_array($cc, $cats)) {
         $cats[] = $cc;
         $this->setCookie('am-cart-cats', implode(',', $cats));
     }
     $this->hiddenCatCodes = $cats;
     $this->view->productCategoryOptions = array(null => ___('-- Select Category --')) + $this->getDi()->productCategoryTable->getUserSelectOptions(array(ProductCategoryTable::EXCLUDE_EMPTY => true, ProductCategoryTable::COUNT => true, ProductCategoryTable::EXCLUDE_HIDDEN => true, ProductCategoryTable::INCLUDE_HIDDEN => $this->getHiddenCatCodes(), ProductCategoryTable::ROOT => $this->getModule()->getConfig('category_id', null)));
     if (!$this->getModule()->getConfig('layout_no_category')) {
         $this->getDi()->blocks->add(new Am_Block('cart/right', ___('Category'), 'cart-category', $this->getModule(), 'category.phtml', Am_Block::TOP));
     }
     if (!$this->getModule()->getConfig('layout_no_search')) {
         $this->getDi()->blocks->add(new Am_Block('cart/right', ___('Search Products'), 'cart-search', $this->getModule(), 'search.phtml', Am_Block::TOP));
     }
     if (!$this->getModule()->getConfig('layout_no_basket')) {
         $this->getDi()->blocks->add(new Am_Block('cart/right', ___('Your Basket'), 'cart-basket', $this->getModule(), 'basket.phtml', Am_Block::TOP));
     }
     if (!$this->getModule()->getConfig('layout_no_auth')) {
         $this->getDi()->blocks->add(new Am_Block('cart/right', ___('Authentication'), 'cart-auth', $this->getModule(), 'auth.phtml'));
     }
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:27,代码来源:IndexController.php

示例5: init

 function init()
 {
     if (!class_exists('Am_Form_Brick', false)) {
         class_exists('Am_Form_Brick', true);
         Am_Di::getInstance()->hook->call(Am_Event::LOAD_BRICKS);
     }
     parent::init();
 }
开发者ID:grlf,项目名称:eyedock,代码行数:8,代码来源:SignupController.php

示例6: init

 function init()
 {
     if (!class_exists('Am_Form_Brick', false)) {
         class_exists('Am_Form_Brick', true);
         Am_Di::getInstance()->hook->call(Am_Event::LOAD_BRICKS);
     }
     parent::init();
     $this->msg = ___('We review all affiliates manually, so your affiliate account status is pending. ' . 'You will receive email when your account will be approved. Thank you for your patience.');
 }
开发者ID:grlf,项目名称:eyedock,代码行数:9,代码来源:SignupController.php

示例7: init

 public function init()
 {
     parent::init();
     try {
         $options = $this->getDi()->getParameter('dirbrowser');
         if (!empty($options['chroot'])) {
             $this->chroot = $options['chroot'];
         }
     } catch (Exception $e) {
     }
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:11,代码来源:AdminDirbrowserController.php

示例8: init

 public function init()
 {
     $this->initPages();
     $this->getDi()->hook->call(Am_Event::INIT_CONTROLLER_PAGES, array('controller' => $this));
     parent::init();
 }
开发者ID:grlf,项目名称:eyedock,代码行数:6,代码来源:Pages.php


注:本文中的Am_Controller::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。