On Mon, Mar 21, 2011 at 7:14 AM, AD7six <andydawso...@gmail.com> wrote: > > > On Mar 20, 9:44 pm, cricket <zijn.digi...@gmail.com> wrote: >> Using 1.3.7 >> >> Some of my routes are apparently being ignored. > > Routes don't get ignored, they simply don't match and are skipped.
By "ignored" I meant that it is not matching and so being skipped. Any comment on why that route wouldn't match? > what's a real/unsimplified example of what you're trying to do? > > If your real example is for pages (?) why not simply use a url. /foo - > it's a lot simpler that way you _know_ what you want it's not really > dependent on routes at all, and it's faster. That example was the verbatim code I had in both router.php and the view. I only mentioned that it was simplified because, as you suggested, it appears to be pointless. I'm not using the Pages you assume I'm using. bootstrap.php: $slugs = Cache::read('Pages_slugs'); if (empty($slugs)) { App::import('Model', 'Page'); $page = new Page(); $slugs = $page->find( 'list', array( 'fields' => array('Page.slug'), 'order' => 'Page.slug DESC' ) ); Cache::write('Pages_slugs', $slugs); } Configure::write('Pages_slugs', $slugs); routes.php: Router::connect( '/:slug', array( 'admin' => 0, 'controller' => 'pages', 'action' => 'display' ), array( 'slug' => implode('|', Configure::read('Pages_slugs')), 'pass' => array('slug') ) ); If I'd posted that, I'd probably receive fewer--if any--replies that got to the heart of the problem. The example I posted, though, is *exactly* the route I tried. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php