RE: Admin Routing - The Definitive Guide?

2006-07-07 Thread Ryan Ginstrom

> [mailto:[EMAIL PROTECTED] On Behalf Of Matt
> I had a similar quandary with this as I found out you couldn't have
> sub-directories for controllers. So instead of having URLs like
> /admin/posts/add I bit the bullet and put all the actions in the admin
> controller and made the URL /admin/posts_add

If you use admin routing, /admin/posts/add will call admin_add() in your
posts_controller.php.

If you want to use other sub-directories in addition to admin, then I believe
the correct route (no pun intended) would be a plugin.

Regards,
Ryan

---
Ryan Ginstrom
[EMAIL PROTECTED] / [EMAIL PROTECTED] 
http://ginstrom.com 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Admin Routing - The Definitive Guide?

2006-07-07 Thread Matt

I had a similar quandary with this as I found out you couldn't have
sub-directories for controllers. So instead of having URLs like
/admin/posts/add I bit the bullet and put all the actions in the admin
controller and made the URL /admin/posts_add

Not the best solution but code wise it's no different as you just have
all the actions in one controller instead of several

[EMAIL PROTECTED] wrote:
> Hi,
>
> I've been searching all things CakePHP for the last few hours and have
> hopefully found out what I need to for Admin routing e.g.
> /admin/posts/add but it was hard because of all the different advice
> e.g. CAKE_ADMIN or use routes?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Admin Routing - The Definitive Guide?

2006-07-07 Thread [EMAIL PROTECTED]

Hey Sam,

Thanks for your post. I'm new to this group and very very new to Cake
so thanks for helping me out.

Ryno


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Admin Routing - The Definitive Guide?

2006-07-06 Thread Samuel DeVore
you should open a ticket in trac against the documentation with some thoughts and links to resources that e=helped you that would go a long way to getting the manual richer in support for thisSam Dps 
https://trac.cakephp.orgOn 7/6/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:Hi,I've been searching all things CakePHP for the last few hours and have
hopefully found out what I need to for Admin routing e.g./admin/posts/add but it was hard because of all the different advicee.g. CAKE_ADMIN or use routes?It would be great if a definitive section on Admin routing could be
created either in the wiki or the manual because even though it isapart of user authentication and apart of ACL, you don't necessarilysearch for them in that order when you are learning.For clarities sake, can anyone point me to a specific resource on the
best way to implement admin routing for the latest version of CakePHP?Also, there were lots of instances where people said things like'you'll find plenty of that stuff on the wiki'. That's great and quite
possibly true, but providing a specific link would be preferrerable asI for one don't always know where I should be looking, or what thesearch term should be?Cheers,Ryno
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Admin Routing - The Definitive Guide?

2006-07-06 Thread [EMAIL PROTECTED]

Hi,

I've been searching all things CakePHP for the last few hours and have
hopefully found out what I need to for Admin routing e.g.
/admin/posts/add but it was hard because of all the different advice
e.g. CAKE_ADMIN or use routes?

It would be great if a definitive section on Admin routing could be
created either in the wiki or the manual because even though it is
apart of user authentication and apart of ACL, you don't necessarily
search for them in that order when you are learning.

For clarities sake, can anyone point me to a specific resource on the
best way to implement admin routing for the latest version of CakePHP?

Also, there were lots of instances where people said things like
'you'll find plenty of that stuff on the wiki'. That's great and quite
possibly true, but providing a specific link would be preferrerable as
I for one don't always know where I should be looking, or what the
search term should be?

Cheers,
Ryno


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---