I made my own pages_controller and put it in app/controllers

I Added this to line 78

// DIFFERS from core --->
                // hack for trail slash issue
                // pr($path);
                //              exit();
                        if(count($path > 1)) {
                                if (strlen(end($path)) === 0) {
                                        unset($path[count($path) - 1]);
                                }
                        }


It seems to have fixed it and not broken other pages, or even nested
ones.

Thought I would post for anyone else who might have this issue. I dont
know if it is deriving from xampp or what...

Luke
On Jun 4, 12:43 pm, luke BAKING barker <[EMAIL PROTECTED]> wrote:
> If a pages URL is specified with the last argument having a slash
> after it, the view is not rendered, e.g.
> /pages/faq/ yields:
>
> You are seeing this error because the view for
> PagesController::display(), could not be found.
>
> Notice: If you want to customize this error message, create app/views/
> errors/missing_view.ctp
>
> Fatal: Confirm you have created the file: /Applications/xampp/htdocs/
> cake_IET_1.2.0.5/app/views/pages/faq/.ctp
>
> yet /pages/faq works fine
>
> I just upgraded to Cake 1.2 latest nightly, but I was running off of
> Cake 1.2.0.5146alpha before and had the same issue.
>
> I am running on Mac Os 10.4.8 using XAMPP for Mac (MAMPP) - but my 1.1
> apps all worked fine in this way.
>
> Also the problem occurs with debug set to 0, 1 or 2.
>
> Any ideas? I know the routing was rewritten for cake 1.2, perhaps I am
> missing a simple fix/issue/gotcha?
>
> I searched on the group but havent found anything - I'm inexpereinced
> with htaccess rewrites/routes stuff so I am not sure of the best way
> to gettrailingslashes ignored or rewritten etc.
>
> many thanks for any help
>
> Luke


--~--~---------~--~----~------------~-------~--~----~
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