cake-php@googlegroups.com
[Top] [All Lists]

Re: Prefix routing and different user types

Subject: Re: Prefix routing and different user types
From: Ryan Schmidt
Date: Tue, 14 Dec 2010 15:30:00 -0600
On Dec 14, 2010, at 08:45, chris wrote:

> if($this->Auth->User('accounttype_id')==3)

Using magic numbers (here, 3) is probably a bad idea.

http://en.wikipedia.org/wiki/Magic_number_(programming)#Unnamed_numerical_constants



Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

<Prev in Thread] Current Thread [Next in Thread>