Location: PHPKode > projects > AbanteCart > abantecart/public_html/admin/controller/common/page.php

  AbanteCart, Ideal OpenSource Ecommerce Solution

  Copyright © 2011 Belavier Commerce LLC

  Released under the GNU General Public License
  Lincence details is bundled with this package in the file LICENSE.txt.
  It is also available at this URL:

   Do not edit or add to this file if you wish to upgrade AbanteCart to newer
   versions in the future. If you wish to customize AbanteCart for your
   needs please refer to http://www.AbanteCart.com for more information.
if (! defined ( 'DIR_CORE' ) || !IS_ADMIN) {
	header ( 'Location: static_pages/' );
class ControllerCommonPage extends AController {
	public function main() {

        //init controller data
		$this->view->assign('lang', $this->language->get('code'));
		$this->view->assign('direction', $this->language->get('direction'));

        $children = $this->getChildren();
        //save only first child - page content controller
        $this->setChildren( array($children[0]) );
		$this->addChild('common/head', 'head', 'common/head.tpl');
        $this->addChild('common/header', 'header', 'common/header.tpl');
        $this->addChild('common/footer', 'footer', 'common/footer.tpl');

		//build view for the children
		$this->view->assign("children_blocks", $this->getChildrenBlocks( ) );
		$this->view->assign("layout_width", $this->config->get('admin_width'));

        //update controller data
Return current item: AbanteCart