Friday, January 27, 2012

Re: CakeRoute

thanks for the reply, I will look into both of these for my project

On Jan 26, 5:47 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> Jose Diaz-Gonzalez has some code on github that may help here
> you'll have to adjust/play
>
> a domain redirect comp - set up a model domain_prefixeshttps://gist.github.com/1498851
>
> Static Page Route plugin (has 1.3/2.x branches) - you'll have to create
> something very bespoke but this will help you compare diffs for cake 1.3 to
> 2.xhttps://github.com/josegonzalez/page_route
>
> that article still a good source of info too
> my custom routes did not require many changes for 2.x
> and the upgrade shell will help too
>
> (others may have very different ideas about how to approach this)
>  - S
>
> On 26 January 2012 21:56, sixthpoint <sixthpo...@gmail.com> wrote:
>
>
>
>
>
>
>
> >http://mark-story.com/posts/view/using-custom-route-classes-in-cakephp
>
> > On Jan 26, 3:56 pm, sixthpoint <sixthpo...@gmail.com> wrote:
> > > I have found this article, appears to be helpful. Might be some issues
> > > though when migrating to cake 2.x
>
> > > On Jan 26, 1:15 pm, sixthpoint <sixthpo...@gmail.com> wrote:
>
> > > > I have been trying to do some research on solving my problem. It seems
> > > > simple, but I don't see a lot of documentation in cake on creating
> > > > custom routes.
>
> > > > My issue:
>
> > > > I want to take a URL like sohttp://localhost/controller1/item1
> > > > and route it tohttp://item1.localhost/*
> > > > this "item1" can be different names of items in my database. So I
> > > > could have item2.localhost/ or item3.localhost/ and it would route it
> > > > so on and so forth.
>
> > > > So my "items" in the subdomain will be connected my specific
> > > > controller.
>
> > > > I have found this:
> >http://book.cakephp.org/2.0/en/development/routing.html#custom-route-...
> > > > and also this:
> >http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0...
> > > > talking about subdomain routes, but it does not say where the custom
> > > > cakeroutes should be located in the filesystem. I am using cake 2.x
>
> > > > Any help would be great, this is my first time working with this kind
> > > > of a issue.
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: