Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Clean Url Partially Working With Parameters

$
0
0
Hi,

I am able to have clean URL's where I am navigating within a controller instance

So I am able to go from say Posts CGRIDVIEW and view a Post. All works good as I get the URL:

http://localhost/demo/index.php/post/view/1


However, what I want to do is say have a list of Authors (CGRIDVIEW), click and go to the view for the author and see a list of the posts (CGRIDVIEW) and then click on a specific post and get its view.

Now I am able to generate the URL but it generates:


http://localhost/demo/index.php/post/view?post_id=1


instead of

http://localhost/demo/index.php/post/view/1


Now I have URLManager set correctly but I think there may be a rule I need to generate to get this to work.

Any help appreciated.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>