Re: [PHP] Visibility of class constant

2009-02-03 Thread Shawn McKenzie
Chris Scott wrote: > You cannot access a class constant just by the constant name. See > http://docs.php.net/manual/en/language.oop5.paamayim-nekudotayim.php. Holy crap! Why can't it just be :: or double colon! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.

RE: [PHP] Visibility of class constant

2009-02-03 Thread leledumbo
Got it, thanks. I see that PHP is unlike many other OO language, it's a little stricter in scoping. -- View this message in context: http://www.nabble.com/Visibility-of-class-constant-tp21803985p21823751.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Maili

RE: [PHP] Visibility of class constant

2009-02-03 Thread Chris Scott
> -Original Message- > From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] > Sent: 03 February 2009 05:03 > To: php-general@lists.php.net > Subject: [PHP] Visibility of class constant > > > I got a weird behaviour of class constant. Suppose I have Index_Controller > and Another_Controller