public function init() { $this->figure = new Model_DbTable_Figure(); parent::init(); $this->view->bigPageTitle = $this->view->translate('Figure'); $this->view->bgClass = "orange"; }
public function init() { $this->figure = new Model_DbTable_Figure(); $this->news = new Model_DbTable_News(); parent::init(); $this->view->useSidebar = 'main-sidebar'; }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); $this->view->destinasi = $this->randomDestination(); $this->view->activity = $this->randomActivity(); $this->view->languageId = $this->_languageId; }
* Controller untuk melakukan fungsi2 yang berkaitan dengan * news * * @package Front Controller */ class NewsController extends Budpar_Controller_Common { /**
public function init() { parent::init(); $this->_helper->layout->setLayout('Usercontributor/usercontributor'); //model $model = new Model_Usercontributor(); //parameter content type untuk menyeleksi comment // 1 => news, 2 => event, 3 => user contributor $this->view->comment_type = 3; //category // $this->view->userstory_category = $model->select_category($this->_languageId); //hanya menampilkan category yang mempunyai artikel $this->view->userstory_category = $model->select_category_hascontent($this->_languageId); //popular post $this->view->popular_post = $model->popular_post($this->_languageId); //param limit user contributor yg akan ditampilkan di side bar ( default 3 orang) $limit = 3; //user contributor $this->view->user_contributor = $model->user_contributor($limit); //archive $this->view->archive_sidebar = $model->archive($this->_languageId); //lang_id $this->view->lang_id = $this->_languageId; //image bacground dan header //model $modelImage = new Model_DbTable_UserStoryImage(); $this->view->head_image = $modelImage->getDataNew('header'); $this->view->background_image = $modelImage->getDataNew('background'); $cek = $model->cekContentByLang($this->_languageId); $this->view->contenInThisLang = !empty($cek) ? true : false; }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); $this->_helper->layout()->disableLayout(); /* if( ! $this->_request->isXmlHttpRequest()) { $this->_redirector->gotoUrl('/'); } */ }
/** * Fungsi inisialisasi */ public function init() { parent::init(); // Set layout $this->_helper->layout->setLayout('three-column'); // Generate inisialisasi // Untuk handling search action destinasi digunakan if if ($this->_hasParam('destId')) { $this->_generateCommon(); if (!$this->_request->isXmlHttpRequest()) { $this->_generateHeaderImage(); // Use header image $this->view->useHeaderImage = false; } } }
public function init() { parent::init(); $this->view->assets = $this->_request->getBaseUrl(); define("LIMIT", 7); //konstanta untuk mengatur jumlah content per page define("NUM_LINKS", 7); //konstanta untuk mengatur jumlah link page $getLang = new Model_DbTable_Language(); $lang = $getLang->getNameById($this->_languageId); $this->lang = $lang->language_name; $this->_helper->layout->setLayout('one-column'); //$destinationDesc = new Model_DbTable_DestinationDescription; //$a = $destinationDesc->getNameById(33,1); // //echo $a; }
public function init() { parent::init(); //set photo essay layout $this->_helper->layout->setLayout('photo-essay'); //init tables $this->_photoEssayTable = new Model_DbTable_Photoessay(); $this->_photoImageTable = new Model_DbTable_Photoessayimage(); $this->_essayCategory = new Model_DbTable_EssayCategory(); //get the date filter list $dateFilter = $this->_photoEssayTable->getDateList(); $categoryFilter = $this->_essayCategory->getAll(); //send datefilter option to view $this->view->categoryFilter = $categoryFilter; $this->view->dateFilter = $dateFilter; $this->view->disableHeader = TRUE; $this->showLatestEssay(); }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); switch ($this->_languageId) { case 1: $langLocale = 'en'; break; case 2: $langLocale = 'id'; break; } $this->view->languageID = $langLocale; if ($this->_hasParam('destId')) { $imageDb = new Model_DbTable_Image(); $imageGallery = $imageDb->getAllImageGalleryByPoiId($this->_destId); $this->view->imageGallery = $imageGallery; } $category = $this->getRequest()->getParam('category'); $title = $this->getTitle($category); $this->view->bigPageTitle = $title; $this->view->bgClass = "orange"; }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); $this->view->bigPageTitle = $this->view->translate('Event'); $this->view->bgClass = "yellow"; }
/** * IS: - * FS: - * Desc: Fungsi inisialisasi */ public function init() { parent::init(); $this->view->bigPageTitle = $this->view->translate('id_menu_partner'); $this->view->bgClass = 'red'; }
* @author : Tajhul Faijin * */ class ApiController extends Budpar_Controller_Common { private $_limit;