Re: Problème paginator version 1.3
var $helpers = array('Paginator'); is probably missing (see the documentation on Pagination) usually you dont need that because it is added automatically either way, you should address it like $this->Paginator->numbers() euromark ?? :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/28 euromark > usually you dont need that because it is added automatically > either way, you should address it like > $this->Paginator->numbers() > > On 28 Dez., 16:29, euromark wrote: > > var $helpers = array('Paginator'); > > is probably missing (see the documentation on Pagination) > > > > On 28 Dez., 10:32, Tilen Majerle wrote: > > > > > > > > > > > > > > > > > Nice from you...but who understand your language ?? :) > > > -- > > > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > > > > 2011/12/27 Sabri > > > > > > 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 > > > > > > >echo $paginator->numbers(); > > > >debug($articles); > > > > ?> > > > > > > Controller/posts-controllers.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 > > > > > > > > > class Category extends AppModel > > > > { > > > >var $name = 'Category'; > > > > } > > > > > > ?> > > > > > > > > > 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.organdhelp > > > > others with their CakePHP related questions. > > > > > > To unsubscribe from this group, send email to > > > > cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problème paginator version 1.3
usually you dont need that because it is added automatically either way, you should address it like $this->Paginator->numbers() On 28 Dez., 16:29, euromark wrote: > var $helpers = array('Paginator'); > is probably missing (see the documentation on Pagination) > > On 28 Dez., 10:32, Tilen Majerle wrote: > > > > > > > > > Nice from you...but who understand your language ?? :) > > -- > > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > > 2011/12/27 Sabri > > > > 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 > > > > > echo $paginator->numbers(); > > > debug($articles); > > > ?> > > > > Controller/posts-controllers.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 > > > > > > class Category extends AppModel > > > { > > > var $name = 'Category'; > > > } > > > > ?> > > > > > > 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.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problème paginator version 1.3
var $helpers = array('Paginator'); is probably missing (see the documentation on Pagination) On 28 Dez., 10:32, Tilen Majerle wrote: > Nice from you...but who understand your language ?? :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/12/27 Sabri > > > > > > > > > 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 > > > echo $paginator->numbers(); > > debug($articles); > > ?> > > > Controller/posts-controllers.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 > > > > class Category extends AppModel > > { > > var $name = 'Category'; > > } > > > ?> > > > > 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 > > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problème paginator version 1.3
Nice from you...but who understand your language ?? :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/27 Sabri > 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 > echo $paginator->numbers(); >debug($articles); > ?> > > Controller/posts-controllers.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 > > class Category extends AppModel > { >var $name = 'Category'; > } > > ?> > > 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 site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php