public function view($typeID = null) { $siteType = false; if ($typeID) { $siteType = $this->app->make('site/type')->getByID($typeID); } if (!$siteType) { $siteType = $this->app->make('site/type')->getDefault(); } else { $this->set('siteTypeID', $siteType->getSiteTypeID()); } $this->set('frequent', Type::getFrequentlyUsedList($siteType)); $this->set('infrequent', Type::getInfrequentlyUsedList($siteType)); }
public function view() { $this->set('frequent', Type::getFrequentlyUsedList()); $this->set('infrequent', Type::getInfrequentlyUsedList()); }