Vous êtes connecté en tant que anonymous Se Deconnecter
application/class/Modele.php
aed8ee26
 <?php
 
daf6e125
 namespace MVC\Classe;
 
aed8ee26
 class Modele{
 	
 	public $page;
 	
 	public function __construct($base_param){
 		
464c2ad8
 		if(file_exists(MODELS_PATH.DIRECTORY_SEPARATOR.$base_param['name'].'.model')){
 			$fichier = file(MODELS_PATH.DIRECTORY_SEPARATOR.$base_param['name'].'.model');
 			foreach ($fichier as $ligne_num => $ligne) {
3957c7ee
                 if (preg_match("#[ ]*([a-zA-Z-_+]*)[ ]*[:][ ]*([a-zA-Z-_+ ']*[ ]*)#", $ligne, $matches)) {
ff461209
                     $this->page[$matches[1]] = $matches[2];
                 }
             }
8d6a2feb
             $this->page['url_params'] = $base_param['params'];
aed8ee26
 		}else{
 			$this->page['name'] = $base_param['name'];
 			$this->page['description'] = $base_param['description'];
 			$this->page['params'] = $base_param['params'];
 		}
 	}
 	
 }