Hi!
I need to make custom url, like here:
http://flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/
Of course I need parse any url in my posts_controller.php in view-
function
All url, except (for example) /admin/*
So, I make rule:
Router::connect('(?!admin|maps|news|posts|contacts|pieces|sections|
users)(.*)', array('controller' => 'posts', 'action' => 'view'));
And have nice redirect when url looks like:
/posts/edit/1 (go to /posts/edit/1
or
/about-company
/about-me (both go to posts_controller, view function and
parsing by my function)
No problem.
But. I got a problem with html->link helper and paginate
I made index.php (& index function) - by cake bake
And got next urls:
In view url I got:
http://tree.tt:8888/(?!admin|maps|posts|pages|contacts|pieces|sections|users)(.7/)
In edit/delete url I got normal: http://tree.tt:8888/posts/edit/7 (or
delete)
And also in pagination, I got:
next looks like:
http://tree.tt:8888/(?!admin|maps|posts|pages|contacts|pieces|sections|users)(.news/page:2)
Why? How I can fix it? Can you help me?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---