Sorry guys my mistake, yes I've an error in my controller and that
error is the source of my problem.

$users = User::findAll(); //wrong

$users = $this->User->findAll(); //correct

apparently I was writing symfony code in cakephp.
thanks anyway

On Dec 31, 6:13 pm, nate <[EMAIL PROTECTED]> wrote:
> There's an issue with your syntax.  Try:
>
> $users = $this->User->findAll();
>
> On Dec 31, 9:13 am, "Eng.Ahmed El.Hussaini"
>
> <[EMAIL PROTECTED]> wrote:
> > Conside the following:
>
> > Controller
> > =======
> > class UserController extends AppController {
> >    function index() {
> >       $users = User::findAll();
> >    }
>
> > }
>
> > Model
> > =====
>
> > class User extends AppModel {
> >    var $name = 'User';
>
> > }
>
> > when requesting the following urlhttp://localhost/cake/user
>
> > I get the below error.
>
> > Notice: Undefined property: UsersController::$useDbConfig in C:
> > \Program Files\Apache Software Foundation\Apache2.2\htdocs\savvy\cake
> > \libs\model\model_php5.php on line 1145
>
> > Fatal error: ConnectionManager::getDataSource - Non-existent data
> > source in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
> > \savvy\cake\libs\model\connection_manager.php on line 110

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to