Wednesday, August 1, 2012

Re: Getting DB error on calling Model

This is the only thing I can see that looks odd:

> Controller/ConferencesController.php:
>>
>> App::uses('AppController', 'Controller');
>>
>> class ConferencesController extends AppController {

However, adding it to one of my own controllers doesn't seem to do any
harm, so maybe that's not the problem.

The App::uses line is only (sometimes) necessary in AppController, in
which case it looks like this:

App::uses('Controller', 'Controller');
class AppController extends Controller

I say sometimes because I vaguely remember there is some issue which
adding that to AppController resolves, but it's not generally
necessary.

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: