Thanks, but how would it know what to render? Example, if the page needs to show blog article #23, effectively I need to pass that variable somehow. If the url were mysite.com/blogs/view/23 the controller would handle that.
Any ideas? On Aug 3, 5:57 am, cricket <[email protected]> wrote: > On Mon, Aug 2, 2010 at 1:35 PM, spheroid <[email protected]> wrote: > > I am using a URL shortener controller which can take a URL such as: > > >http://mysite/this-is-a-sample-page-23.html > > > and redirect to another page like: > > >http://mysite/controller/action/23 > > > Any way to have it effectively go to that page, but keep the initial > > url with the ".html" in it? > > Just specify the directory path and view you want to render. > > $this->viewPath = 'views/whatever'; > $this->render('name_of_view'); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
