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


PHP Mage_Adminhtml_Block_Abstract::_prepareLayout方法代码示例

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


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

示例1: _prepareLayout

 protected function _prepareLayout()
 {
     $this->runUpdate();
     $this->setTemplate('googlebasefeedgenerator/system/process.phtml');
     parent::_prepareLayout();
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:7,代码来源:Process.php

示例2: _prepareLayout

 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!Mage::helper('udropship')->isModuleActive('Unirgy_DropshipMicrosite') || !Mage::helper('umicrosite')->getCurrentVendor()) {
         $this->getLayout()->getBlock('product_tabs')->addTab('udmulti_vendors', 'udmulti/adminhtml_product_vendors');
     }
 }
开发者ID:xiaoguizhidao,项目名称:magento,代码行数:7,代码来源:Condition.php

示例3: _prepareLayout

 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addCss(self::SYSTEM_CONFIG_EDIT_CSS_FILE);
     /**
      * For Magento 1.6 and 1.11 we need to add another css file.
      */
     $helper = Mage::helper('tig_myparcel');
     $isEnterprise = $helper->isEnterprise();
     /**
      * Get the minimum version requirement for the current Magento edition.
      */
     if ($isEnterprise) {
         $minimumVersion = '1.12.0.0';
     } else {
         $minimumVersion = '1.7.0.0';
     }
     /**
      * Check if the current version is below the minimum version requirement.
      */
     $isBelowMinimumVersion = version_compare(Mage::getVersion(), $minimumVersion, '<');
     if ($isBelowMinimumVersion) {
         $this->getLayout()->getBlock('head')->addCss(self::MAGENTO_16_CSS_FILE);
     }
     return parent::_prepareLayout();
 }
开发者ID:myparcelnl,项目名称:magento1,代码行数:25,代码来源:SupportTab.php

示例4: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('reply', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_reply'));
     $this->setChild('thread', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_thread'));
     $this->setChild('details', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_details'));
     $this->setChild('customer_summary', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerSummary'));
     $this->setChild('customer_orders', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerOrders'));
     $this->setChild('customer_tickets', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerTickets'));
     return parent::_prepareLayout();
 }
开发者ID:protechhelp,项目名称:gamamba,代码行数:10,代码来源:Form.php

示例5: _prepareLayout

 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addJs('web2print/resourcebrowser.js');
     $this->getLayout()->getBlock('head')->addCss('css/resourcebrowser.css');
     $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/default.css');
     if (Mage::helper('web2print')->getMagentoVersionForCss()) {
         $this->getLayout()->getBlock('head')->addCss('lib/prototype/windows/themes/magento.css');
     } else {
         $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/magento.css');
     }
     $block = $this->getLayout()->createBlock('Chili_Web2print_Block_System_Config_Form_Resourcebrowserbase', 'resourcebrowser_base');
     $this->getLayout()->getBlock('content')->append($block);
     return parent::_prepareLayout();
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:14,代码来源:Render.php

示例6: __construct

 /**
  * Set template
  */
 public function __construct()
 {
     parent::_prepareLayout();
     $this->setTemplate('capayable/support.phtml');
 }
开发者ID:blueglobeNL,项目名称:tritac-capayable,代码行数:8,代码来源:Support.php

示例7: _prepareLayout

 protected function _prepareLayout()
 {
     //placed here, instead of in layout.xml to make sure it is only loaded for Buckaroo's section
     $this->getLayout()->getBlock('head')->addCss('css/tig_buckaroo3extended/supportTab.css');
     return parent::_prepareLayout();
 }
开发者ID:technomagegithub,项目名称:olgo.nl,代码行数:6,代码来源:SupportTab.php


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