Exemple #1
0
 public static function getModelArticle($id)
 {
     $model = new self(array());
     $model->Article = ArticleGateway::getArticleById($model->dataError, $id);
     $model->title = "Affichage d'un article";
     return $model;
 }
Exemple #2
0
 public static function getModelArticle($id)
 {
     $model = new self(array());
     $model->article = ArticleGateway::getArticleById($model->dataError, $id);
     $model->title = "Article détaillé";
     return $model;
 }