I have a problem with my XML simtemap.

It should display ALL posts permalinks, but it takes into account paginator 
instead...
What am I doing wrong ? :


class PostsController extends AppController {
>
> public $name = 'Posts';
>
>     public $helpers = array('Html', 'Form', 'Paginator', 'Text');
>
>     public $components = array('Session','RequestHandler');
>
>     var $paginate = array(
>
>         'limit' => 5,
>
>         'order' => array(
>
>         'Post.created' => 'desc'
>
>          )
>
>     );
>
>

public function index() {
>         if ($this->RequestHandler->isRss() ) {
>             $posts = $this->Post->find('all', array(
>             'limit' => 15,
>             'order' => 'Post.created DESC'
>             ));
>             return $this->set(compact('posts'));
>             
>         } elseif ($this->RequestHandler->isXml() ) {
>         $posts = $this->Post->find('all');
>         }
>         $this->set('posts', $this->paginate('Post'));
>     }

-- 
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

Reply via email to