Fixes on webmodel

This commit is contained in:
Antonio de la Rosa 2015-05-08 05:22:33 +02:00
parent e31a89a538
commit 1d19037145
2 changed files with 3 additions and 4 deletions

View file

@ -42,7 +42,7 @@ if(!is_file($model_file))
} }
$model=WebModel::load_model($options['m']); WebModel::load_model($options['m']);
try { try {
@ -62,7 +62,7 @@ try {
update_table($model); update_table(Webmodel::$model);
$post_install_script=Webmodel::$model_path.$arr_option[0].'/install/post_install.php'; $post_install_script=Webmodel::$model_path.$arr_option[0].'/install/post_install.php';

View file

@ -2,7 +2,6 @@
namespace PhangoApp\PhaModels; namespace PhangoApp\PhaModels;
use PhangoApp\PhaModels\CoreFields;
use PhangoApp\PhaI18n\I18n; use PhangoApp\PhaI18n\I18n;
/** /**
@ -243,7 +242,7 @@ class Webmodel {
$this->name=$name_model; $this->name=$name_model;
$this->idmodel='Id'.ucfirst($this->name); $this->idmodel='Id'.ucfirst($this->name);
$this->components[$this->idmodel]=new CoreFields\PrimaryField(); $this->components[$this->idmodel]=new \PrimaryField();
$this->label=$this->name; $this->label=$this->name;
if(!isset(Webmodel::$connection_func[$this->db_selected])) if(!isset(Webmodel::$connection_func[$this->db_selected]))