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

RE: Prefix routing and different user types

Subject: RE: Prefix routing and different user types
From: "Dave Maharaj"
Date: Wed, 15 Dec 2010 07:52:53 -0330
I guess you never read what I wrote?

-----Original Message-----
From: chris [mailto:chris.gan@xxxxxxxxxxxxxxxxxxxxx] 
Sent: December-15-10 6:39 AM
To: CakePHP
Subject: Re: Prefix routing and different user types

I'm planning on replacing these with a constant at some point. Is
there a cake way of defining things like this?

Are there any other issues with the cake side of things in my code?

On Dec 14, 9:30 pm, Ryan Schmidt <google-2...@xxxxxxxxxxxxxx> wrote:
> 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_numer...

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

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>