public function reloadCategoriesAction() { $this->view->setVar('categories', Categories::find(['order' => 'number_posts DESC, name'])); $this->view->setRenderLevel(View::LEVEL_ACTION_VIEW); $this->view->getCache()->delete('sidebar'); }