Hi All

I'm getting trouble with paginating comments.
In my users controller
----------------
$this->set('scheld',$this->requestAction('/scheldues/getScheldue/
Users/'.$id));


                $this->paginate['Comment'] = array(
                        'limit' => 4,
                        'order' => array ('Comment.created' => 'desc'),
                );

$com = $this->paginate('Comment',array('Comment.where_id'=>
$id,'Comment.type'=>$this->name));
$this->set(compact('com'));

-------------------------------------

In view

------------------
<?=$paginator->prev(); ?> | Page <?=$paginator->counter(); ?> | <?=
$paginator->next(); ?>
-----------------

When the View is rendered i have Paging links like this
------------
http://localhost/bare/scheldues/getScheldue/2/page:2
------------

how can i get them to be like this
------
http://localhost/users/view/22/page:2

What is "bare" and why paginate gets RequestAction URL?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to