public function portfolio_itemAction($seo = null)
 {
     if (!$seo) {
         return Brightery::error404();
     }
     $portfolio_item = new \modules\portfolio\models\Portfolio();
     $portfolio_item->seo = $seo;
     print_r($portfolio_item->get());
     return $this->render('portfolio_item', ['item' => $portfolio_item->get()]);
 }
 public function deleteAction($id = false)
 {
     $this->permission('delete');
     if (!$id) {
         return Brightery::error404();
     }
     $model = new \modules\portfolio\models\Portfolio();
     $model->portfolio_id = $id;
     if ($model->delete()) {
         Uri_helper::redirect("management/portfolio_items");
     }
 }