$uses=null vs. $uses=array matters

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 . 

1 Response so far »

  1. 1

    klevo said,

    October 31, 2007 @ 9:15 am

    Very good find. Notices are often overlooked.

Comment RSS · TrackBack URI

Say your words