Shawn,

As Ketan says, you've slightly misunderstood how Cake's URLs map to
controllers.

In your case:
/news/edit/1
would point to (unless using routing to achieve a different result):
News Controller > Edit Action > Parameter 1 (whether that's an
article, or an item, or whatever)

/poll/edit/1
would point to: Poll Controller > Edit Action > Parameter 1

There's more to it, but that's the core of URLs in Cake.

Steve

On Aug 14, 7:14 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> Shawn,
>
> I think you have to read the manual first. Edit is not a controller,
> it is an action for the controller. So for your case, poll, news are
> the controller.
>
> Cheers,
> Ketan
>
> starkey wrote:
> > On Aug 14, 11:13 am, Joel Stein <[EMAIL PROTECTED]> wrote:
> > > Why not just make these all in one application, but with several
> > > controllers?  Then you can tie them together with AppController.
>
> > Thanks for your reply. I don't think I can because I need my URLs to
> > be similar to:
> >http://www.domain.edu/news/edit/1
> >http://www.domain.edu/poll/edit/1
>
> > Can I have two "edit" controllers/views if everything is in one
> > application?  Would you have a moment to explain how?  I sure would
> > appreciate it!  Keep in mind that there are about a dozen programs
> > planned so putting all "edit" logic in one controller would not be
> > practical.
>
> > Thanks!
> > Shawn


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to