Super, thank you very much its what i looking for.
But i want ask, how i can chache paginate separator.
For example now i have this url: www.page.com/catalogue/seo_url_item/page:4
....
But i want url: www.page.com/catalogue/seo_url_item/4,
www.domen.com/catalogue/seo_url_item/5, ....
On 15 Čen, 23:45, cakeFreak <[EMAIL PROTECTED]> wrote:
> 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 [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
-~----------~----~----~----~------~----~------~--~---