This might help, look at the comments: http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
Others approaches: http://snook.ca/archives/cakephp/static_pages_cakephp12/ http://cakebaker.42dh.com/2008/06/18/an-alternative-approach-for-static-pages/ http://snook.ca/archives/cakephp/easier_static_pages_2/ > Could you possibly point me to the specific page in the manual > where it refers to this area of functionality? He is talking probably about the routes section. > Also, is there a way to pass control from one controller to another? > If thats in the manual also could you point me to the page in the > manual where it talks about it? For another action in the same controller you can use $this->setAction(), but for a different controller you can use $this->requestAction() or instanciate the other controller and do the dispatching yourself (don't forget to call constructClasses() in the new controller). HTH, - Dardo Sordi. > Thanks. > > On Oct 26, 2:18 am, deedod <[EMAIL PROTECTED]> wrote: >> What's the best way to go about setting updynamicrouting >> so that I can redirect all my 'missing controller' errors to another >> defined controller to perform operations on? >> >> I basically want any error page to filter through the pages controller >> (or any other controller I choose) so I can check the requested URL >> and determine if the URL is valid or not. >> >> I have some other defined controllers that I use as normal but I also >> want the ability to define custom URLs for a page and then to be >> able to pull the data for that page after checking the URL requested. >> >> Should I use some sort ofrouting? Or is there another approach I >> should use. I don't want to redirect ALL pages to the specified >> controller since I have a couple other controllers that I use. >> >> Also, is there a way that you can pass control from one controller >> to another? For instance, I'm in the pages controller but is there a >> way to jump to another controller on the fly? >> >> Any help would be great. >> >> Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
