public function init() { parent::init(); $this->helper = new \WikiGetDataForVisualizationHelper(); $this->model = new \CityVisualization(); $this->corporatePageIds = $this->model->getVisualizationWikisIds(); }
public function init() { parent::init(); ini_set('memory_limit', '768M'); // there is probably a much faster way to do this, using a manual query. all we really need is ids and titles. $criteria = craft()->elements->getCriteria(ElementType::Entry); $criteria->limit = 1000; $this->entries = $criteria->find(); }