In dispatcher::dispatch(), this is where cake handles loading things.
This is also where cake detects if the url passed doesn't match up
with a controller.
On line 100:
elseif(!class_exists($ctrlClass)){
$missingController = true;
}
I would do some additional logic here, for example, you might consider
setting $ctrlClass = "ProfilesController"; and manually rewriting the
url.
I'm not Cake guru, but that seems to be the most logical approach.
An easier approach would be to use a route such as /profile/user => /
profiles/view/user
Brian
On Jun 22, 9:55 pm, AbhinavZone <[EMAIL PROTECTED]> wrote:
> ok..
>
> I am developing a property management website, where sellers come,
> register there profile and post there properties.
> I need to create a URL for there public profile, such
> ashttp://proprtysite.com/<user-name>
>
> but cakephp taking <user-name> as controller name. and raising error.
> I tried to add index function in page-controller class but nothing
> happened.
>
> and second problem is
>
> the URL of property page should
> behttp://propertysite.com/<property-heading>.html
>
> On Jun 21, 7:15 pm, simonb <[EMAIL PROTECTED]> wrote:
>
> > Whatever it is will most likely involve routes. You can do almost any
> > form of redirect with that.
>
> > Like Ian says, a little bit more information would help.
>
> > On Jun 21, 2:41 pm, Ian Zepp <[EMAIL PROTECTED]> wrote:
>
> > > You are going to have to provide more context than that, sorry.
>
> > > AbhinavZone wrote:
> > > > hi.
>
> > > > I am working on website in cakephp. everything is going fine.
> > > > but I got stuck with an issue.
>
> > > > 1. Client requirement is to rewrite all pages as
> > > >http://websitename.com/xx/yy.html
>
> > > > 2. Add back link to website such as
> > > >http://websitename.com/username
>
> > > > please help me out .....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---