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

Screenshot of Snook.ca website

Ruby Guys

PhRuG Meetup,Cafe A-go-go, Emerald Mansions

PhRuG MeetUp

Ruby Guys on Philippine Ruby Users Group

More Photos