/**
  * tasks before render the output
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     // set the layout
     $this->layoutOpt['left_nav'] = "builder-left-nav";
     $this->layoutOpt['left_nav_selected'] = "view_builder";
     if ($this->isAjax) {
         $this->layoutOpt['layout'] = 'ajax';
     } else {
         $this->layoutOpt['layout'] = 'left_bar_template';
     }
     $this->side_bar = "customer";
     $this->set("side_bar", $this->side_bar);
 }
 /**
  * tasks before render the output
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     // set the layout
     $this->layoutOpt['left_nav'] = "builder-left-nav";
     $this->layoutOpt['left_nav_selected'] = "view_builder";
     $this->paginate['conditions'] = array('Customer.customer_type_id' => array('2', '3'));
     $title_prefix = __('Builder');
     $customer_type = 'builder';
     $this->set(compact('title_prefix', 'customer_type'));
     if ($this->isAjax) {
         $this->layoutOpt['layout'] = 'ajax';
     } else {
         $this->layoutOpt['layout'] = 'left_bar_template';
     }
     $this->side_bar = "customer";
     $this->set("side_bar", $this->side_bar);
 }
 /**
  * tasks before render the output
  */
 function beforeFilter()
 {
     parent::beforeFilter();
 }