/** * IS: Parameter type, name, location terdeklarasi * FS: Mengirimkan ke viewer: customName, directory * Desc: Fungsi untuk menampilkan list hasil pencarian */ public function searchAction() { // Param $type = $this->_getParam('type'); $name = $this->_getParam('name'); $location = $this->_getParam('location'); // Model $directoryDb = new Model_DbTable_Directory(); $classDirDb = new Model_DbTable_ClassificationDirectory(); // Data $directoryQuery = $directoryDb->getSearch($type, $name, $location); $classDir = $classDirDb->getAllForMenu(); // View $this->view->customName = $classDir[$type] . '(s)'; $this->view->directory = parent::setPaginator($directoryQuery); }