The extra parameters on the pages controller is being interpreted os subdirectories.  What you are seeing is the message stating that it couldn't find the page requested.

So according to the pages controller.....

http://example.com/pages/about

maps to /app/views/pages/about.thtml

and http://example.com/pages/about/our_company

maps to /app/views/pages/about/our_company.thtml

Creating your own controller would allow you to handle the additional parameters however you choose.

On 9/14/06, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote:


On Sep 14, 2006, at 12:44 PM, [EMAIL PROTECTED] wrote:

>
> I am trying to pass a variable to a static page through the
> pages_controller like this: /pages/about_us/1 but that gives this
> error:
>
> aboutus1.thtml for action aboutus1 in controller Pages could not be
> found.
>
> If I remove the /1 the page displays fine.

The pages controller is only meant to serve static content. If you
want to do something dynamic, you should create your own controller.

-- John



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to