public function manageAction($id = false)
 {
     $this->permission('manage');
     if ($id) {
         $classfied = new \modules\classfied\models\Classfied_categories('edit');
         $classfied->classfied_category_id = $id;
     } else {
         $classfied = new \modules\classfied\models\Classfied_categories('add');
     }
     $classfied->set('name', $this->input->post('name'));
     $classfied->set('var_name', $this->input->post('var_name'));
     $classfied->set('title', $this->input->post('title'));
     $classfied->set('description', $this->input->post('description'));
     $classfied->set('keywords', $this->input->post('keywords'));
     $classfied->set('category_order', $this->input->post('category_order'));
     $classfied->language_id = $this->language->getDefaultLanguage();
     if ($classfied->save()) {
         Uri_helper::redirect("management/classfied_categories");
     } else {
         return $this->render('classfied_categories/manage', ['item' => $id ? $classfied->get() : null]);
     }
 }