public function actionRegister()
 {
     $web = new Configweb_model();
     $data['mas_pername'] = $web->pername();
     $data['id'] = $web->autoId('masuser', 'pid', '10');
     $this->render('//main/register', $data);
 }
 public function actionFrom_add_type()
 {
     $type = new Type_product();
     $config = new Configweb_model();
     $data['type_id'] = $config->autoId("product_type", "type_id", "3");
     $data['type'] = $type->Get_all();
     $this->render("//type/create", $data);
 }