Hello all,
I want to render one specifically page -configured dinamically by the user- as the homepage of a site, it means that if the user has set up as homepage the page at "/page/4/pagetitle" (www.mysite.com/page/4/pagetitle) when I go to (www.mysite.com) I want to render the content of the url at "/page/4/pagetitle".
I have the url ("/page/4/pagetitle") configured by the user and stored in my DB, then in the site/index action of my site I want to use the UrlManager to extract what controller/action and request parameters correspond to this url ("/page/4/pagetitle") so that I can invoke it later, but I cannot use the parseUrl method because it requires a CHttpRequest and ¿I cannot? construct one with my url.
I don’t want to do a redirect because then when I go to the homepage I would redirect at www.mysite.com/page/4/pagetitle and the user would not see www.mysite.com at the address bar at the browser. I obviously don’t want to use iframes neither. And I dont want to extract the contents of the /page/4/pagetitle page and render it, to be able to extends to categories (/category/5/categorytitle), or tags pages in the future.
How can I get the controller/action and request parameters from a string url ("/page/4/pagetitle" or "www.mysite.com/page/4/pagetitle")?
Thanks in advance:
Kike