Try something like this in your view:

<?php $paginator->options = array('url'=>'../catalogue/'.$seourl)?>

Dan

On 15 Giu, 21:08, Petr Vytlačil <[EMAIL PROTECTED]> wrote:
> Hi pleas can you help me? I have this function (return all entries for
> Journal):
>
> function entriesjournal($seourl = null) {
>                 if (!$seourl) {
>                         $this->flash(__('Invalid Journal', true),
> array('action'=>'index'));
>                 }
>                 $this->Entry->recursive = 0;
>
>                 $conditions = array('Journal.seourl' => $seourl);
>
>                 $paginationParameters = array();
>                 $paginationParameters['controller'] = 'entries';
>                 $paginationParameters['action'] = $this->action;
>
>                 $this->paginate['Entry'] = array(
>                 'limit' => 2,
>                 'order' => array ('Entry.datepublic' => 'desc'),
>                 'url' => array ('url' => $paginationParameters)
>                 );
>                 $records = $this->paginate('Entry', $conditions);
>                 //$this->Journal->findBySeourl($seourl)
>                 $this->set('journal', $records);
>         }
>
> I call this function with this 
> link:http://www.domen.com/cataloge/seo_url_of_journel
> Router setting:         Router::connect('/cataloge/*', array('controller' =>
> 'entries', 'action' => 'entriesjournal'));
>
> In View i use for show paging:
>
> <div class="paging">
>         <?php echo $paginator->prev('<< '.__('previous', true), array(),
> null, array('class'=>'disabled'));?>
>  |      <?php echo $paginator->numbers();?>
>         <?php echo $paginator->next(__('next', true).' >>', array(), null,
> array('class'=>'disabled'));?>
> </div>
>
> This generate this url:http://www.domen.com/cataloge/page:2,
> but it isnt go i need for router 
> url:http://www.domen.com/cataloge/seo_url_of_journel/page:2
> because a need parametr $seourl for function entriesjournal.
>
> I dont know how i can setting format url for paginator or if must set
> router to.
>
> THX sorry my English isnt very good.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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