Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->categories = Categories::getInstance();
     $this->articles = Artciles::getInstance();
     $this->applyTemplateController('Controller\\articles\\Template');
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     $class = self::getInstanceNull();
     if ($class == null) {
         $obj = new Programs(Categories::getInstance(), Artciles::getInstance());
         self::setInstance($obj);
         return $obj;
     }
 }