Nice from you...but who understand your language ?? :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/12/27 Sabri <ouni.sa...@gmail.com>

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

Reply via email to