Re: [PHP] Is it a bug of CakePHP?

2006-04-08 Thread John Wells
Pham Huu Le Quoc Phuc a écrit : I catch an error, could you tell me if you have some ideas? Error message: Undefined index: start_date in c:\Inetpub\wwwroot\Cake\app\controllers\dsptrainings_controller.php on line 33 PHP is telling you that what you are trying to access

[PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } class DsptrainingsController extends AppController {

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread nicolas figaro
Pham Huu Le Quoc Phuc a écrit : I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } did you try your sql

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
Thanks for relying! But, Do not have anyway to solve this problem. - Original Message - From: nicolas figaro [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, April 07, 2006 3:49 PM Subject: Re: [PHP] Is it a bug of CakePHP? Pham Huu Le Quoc Phuc a écrit : I catch