FilChi Weblog

$uses=null vs. $uses=array matters

Posted by: filchiprogrammer on: October 31, 2007

In daniel hoffster’s blog, he pointed out the difference of behavior when setting your $uses variable in your controllers to null against array().

If you try to do the same thing as daniel reported, you will encounter a PHP notice that says Notice: Undefined property: myController::$model . 

Tags: ,

1 Response to "$uses=null vs. $uses=array matters"

Very good find. Notices are often overlooked.

Leave a Reply

Flickr Photos

Cris Daquiz Despedida Party

Getz Bros Summer Outing 2009

The other teams

Our Team vs. Francis' Team

guys of Getz Bros Philippines

More Photos