Nodoby? :( 2010/7/15 Hugo Massaroli <[email protected]>
> Hi CakePHP community! I have a doubt about routing and accesing models > while routing. The thing is I have two models: > > user, and group. > > Both have show pages. > > I want to have nicknames so I have a nicknames table and I want to access > the show method in this way: > > www.mydomain.com/thisismygroup1 > www.mydomain.com/user34 > > Nicknames table: > id > group_id > user_id > detail (nickname) > > I can't use normal routing because I don't know to wich controller the > nickname belongs to. I need to access Nickname model inside routes.php? Then > if nickname has user_id I redirect to /users/show and if nickname has > group_id I redirect to /groups/show. Is that ok? It's possibly and right to > access a Model inside routes? > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
