public function __construct() { //On ajoute le chemin $this->set_path(); //On ajoute une référence vers le loader courant $this->load = NeoFrag::get_loader(); if (is_a($this, 'Library')) { $name = !empty($this->name) ? $this->name : cc2u(get_class($this)); array_unshift($this->load->paths['views'], './overrides/views/' . $name, './neofrag/views/' . $name); //On ajoute la librairie nouvellement chargée aux librairies déjà chargées $this->load->libraries[$name] =& $this; } }
public function __construct($parent) { $this->load = NeoFrag::get_loader(); $this->_parent = $parent; }