I am working on a simple content management system. The basic concept revolves around having a nodes controller, which allows the admin of the site to create sections which contain content. The content can be a page (using the file based pages controller that ships with the framework), an article (simillar to pages but database driven), or a gallary.
Basically what i want to do is have the nodes controller call the action from another controller, and completely hand control over to it, without the need for using routes. So a person could create a "services" node, and under services include a page, a gallary and an article. The nodes controller will allow these to be called anything they wish. These would be called from the URLs http://example.com/nodes/view/services/some-sort-of-page I will then use routes to collapse the URL to http://example.com/services/some-sort-of-page. This will call the nodes controller which will look up a record in the nodes table to retrieve the controller, action and any parameters matching "some-sort-of-page" My question is, is there a simple way of having one controller "redirect" to another controller, without redirecting? I've tried the following in my nodes controller to test the theory and its not working function dispatch() { return $this->requestAction(array('controller' => 'Pages', 'action' => 'display', 'home'), array('return')); } it simply dumps me back to the root of the application and throws a bunch of errors from the dispatcher. Thoughts? 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
