Hi,
You can use the static slug() method of the Inflactor class to create
the slug of a string.
Read this part of the documentation:
http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html?highlight=slug#Inflector::slug
And you can use it like: Inflector::slug($word, $replacement =
the urls can stll be underscore and lowercase
MyController.php etc but
/my_controller/action_name
etc
On 11 Nov., 05:16, Andras Kende and...@kende.com wrote:
Kevin,
seo friendly urls in cakephp are very very easy…
below is the basic idea to do domain.com/video/return-of-the-jedi instead of
Kevin,
seo friendly urls in cakephp are very very easy…
below is the basic idea to do domain.com/video/return-of-the-jedi instead of
domain.com/videos/view/1
videos database table (add a slug field)
id | name | slug | …
1 | Return of the Jedi | return-of-the-jedi | ….
routes.php