It gives me this in the url when clicked.
http://www.examplemagazine.com/articles/view/102697
What I want to do is after the link is clicked just give me the name of the article in the url after the magazine site.
Like this http://www.examplemagazine.com/nameofarticle
Is this a defining routes issue? If so, do I use the
Router::connect() method to reroute the url?
The first value $art['ArticleVersion[0][title] is what I want displayed in the url.
I don't want him to have to see the id number or the word "articles" or "view".
If you give me an example or tell me if I am looking in the right place it would be great.
<?= $html->link($art['ArticleVersion'][0]['title'], array(
'controller' => 'articles',
'action' => 'view',
$art['ArticleVersion'][0]['article_id'])); ?>
tia,
</h3>
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment