Re: [fw-general] Router for CMS

2009-03-08 Thread Rob Allen
On 4 Mar 2009, at 07:28, Matthias W. wrote: Hi, I'm going to create a CMS in PHP with the Zend Framework. I thought to make URLs like this: http://www.xyz.com/[cms_path]/[language]/[module]/[page]/[subpage]/ [subsubpage]/... This is because I dont want to use the page Ids in the URLs.

Re: [fw-general] Router for CMS

2009-03-04 Thread Matthias W.
vince. wrote: By default the router uses /:controller/:action/* or if you have modules then /:module/:controller/:action/* the /* indicates that anything can be there instead so i think you should use just that. OK, but I didn't mean this. I want to create a CMS (Content Management

Re: [fw-general] Router for CMS

2009-03-04 Thread Matthias W.
My new idea is to create URLs with underscore in the pageName, like this: http://www.myurl.com/cms/en/default/information_public.html So I can use the Router: Zend_Controller_Router_Router(':lang/:module/:pageName/*'); In this case I only have to split the 'pageName' by underscore and get the

Re: [fw-general] Router for CMS

2009-03-04 Thread Giorgio Sironi
2009/3/4 Matthias W. matthias.wang...@e-projecta.com But this URL isn't that good because it includes the ID of the page and the parent pages aren't included in the URL. If you get page names with multiple words? You can create a nice url based on the title of the page ('slug'), I think

Re: [fw-general] Router for CMS

2009-03-03 Thread vadim gavrilov
*Sorry didn't do reply all * By default the router uses /:controller/:action/* or if you have modules then /:module/:controller/:action/* the /* indicates that anything can be there instead so i think you should use just that. On Wed, Mar 4, 2009 at 9:28 AM, Matthias W.