Example #1
0
 public function actionDefault()
 {
     $this->data->sections = $this->app->config->sections;
     $this->data->blocksAvailable = $this->app->config->blocks;
     $installed = Block::findAll(['order' => Block::getDbDriver()->quoteName('order')]);
     $this->data->blocksInstalled = new Collection();
     foreach ($installed as $block) {
         $this->data->blocksInstalled[$block->section][] = $block;
     }
 }