var $helpers = array('Paginator');
is probably missing (see the documentation on Pagination)On 28 Dez., 10:32, Tilen Majerle <[email protected]> wrote: > Nice from you...but who understand your language ?? :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/12/27 Sabri <[email protected]> > > > > > > > > > Salut pour tous, > > j'ai un problème Notice (8): Undefined variable: paginator [APP\View > > \posts\index.ctp, line 2] > > ( ! ) Fatal error: Call to a member function numbers() on a non-object > > in C:\wamp\www\concours\cake_1_3\app\View\posts\index.ctp on line 2 > > > View/index.ctp > > <?php > > echo $paginator->numbers(); > > debug($articles); > > ?> > > > Controller/posts-controllers.php > > <?php > > class PostsController extends AppController { > > > var $name = 'Posts'; > > var $paginate =array( > > 'Post' =>array( > > 'limit' => 2, > > 'order' => array( > > 'Post.created' => 'Desc' > > ) > > )); > > > function index() { > > $q = $this->paginate('Post'); > > $this->set('articles',$q); > > } > > } > > ?> > > > Model/post.php et category.php > > <?php > > > class Category extends AppModel > > { > > var $name = 'Category'; > > } > > > ?> > > <?php > > > class Post extends AppModel > > { > > var $name = 'Post'; > > } > > > ?> > > > Des solutions SVP? > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php -- 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
