Hi,
post controllers has something like this.
function index() {
//logic. //model communication
$this->set(compact('posts'));
}
authors controller has something like this
function someaction() {
//logic //model communication
$this->render('/posts/index');
}
The view is same. So, I render this. I have no problem on this.
But in pagination,
postcontrollers index action gives like this (routers used)
web-root/1, web-root/2
when authors name is clicked, the url is like this, --->
web-root/authors/authorname
but paging is different
web-root/2 , web-root/3
I think it is because i render posts/index action. How to achieve this
without using duplicate coding?
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php