[eluser]Unknown[/eluser]
if i had understand the userguide if i want use a methode from model i should
code like this.
Code:
$this->load->model('Commercial', '', TRUE);
$data['commande'] = $this->Commande->SelectCommande();
$data['commercial'] = $this->Commercial->SelectCommercial();
but if i want use a static method in order to not instanciate the object (that is the goal
of a static methoc) ?
apparently the load method use a singleton, it's better than anything, but if i want no instancitiation because of memory cost for example, should i write my controller like this:
Code:
require_once(myclass.php);
$data = myclass::mymethod(parameter);
By the way before write this post i have tried to set the static attribut, and it generate a warning. Normal ?
it quite ugly no ? any answer or solution ?
Thanks