Joel,
That looks like what I need to do. Fantastic! Thanks!
Shawn
For future reference:
http://manual.cakephp.org/chapter/configuration (section 3)
http://webexpose.org/2007/05/09/cakephp-routes/
http://bakery.cakephp.org/articles/view/custom-urls-from-the-site-root
On Aug 14, 2:52 pm, Joel
You could simply make the following controllers:
NewsController
StoriesController
AlertsController
SectionsController
PollController
QuestionsController
AnswersController
And then configure your controller routes in /app/config/routes.php:
Router::connect('/news/stories/:action/*', array('contr
Ketan,
I apologize for not being clear; this is what I meant:
http://www.domain.edu/news/
http://www.domain.edu/news/stories/edit/1
http://www.domain.edu/news/alerts/edit/1
http://www.domain.edu/news/sections/edit/1
http://www.domain.edu/poll/
http://www.domain.edu/poll/questions/edit/1
http://w
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
w
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 appli
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.ed
Why not just make these all in one application, but with several
controllers? Then you can tie them together with AppController.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gro
I forgot to mention that I'm using Cake 1.1.16.5421 and all apps would
share the same database.
Thanks!
Shawn
On Aug 13, 3:19 pm, starkey <[EMAIL PROTECTED]> wrote:
> I'm trying to configure a setup with multiple apps that are accessible
> to each other. The sort of setup we need might be N nu
I'm trying to configure a setup with multiple apps that are accessible
to each other. The sort of setup we need might be N number of apps
running on one CakePHP installation with this sort of install:
www.domain.edu/news/
www.domain.edu/polls/
www.domain.edu/catalog/
These apps would need to be