Hi,
I am newbie to CakePHP trying to learn scaffolding but not working. I
am getting following errors/warnings and no data displayed.
************************************************************************************************
Notice: Trying to get property of non-object in /data/Websites/evidya/
cake/libs/controller/controller.php on line 666
Warning: Invalid argument supplied for foreach() in /data/Websites/
evidya/cake/libs/controller/controller.php on line 666
Notice: Trying to get property of non-object in /data/Websites/evidya/
cake/libs/controller/controller.php on line 801
Warning: Invalid argument supplied for foreach() in /data/Websites/
evidya/cake/libs/controller/controller.php on line 801
************************************************************************************************
I am using following softwares
************************************************************************************************
1. PHP Version 5.2.1
2. Apache/2.2.3 (Ubuntu) DAV/2 SVN/1.4.3 mod_python/3.2.10
3. MySQL version is: 5.0.38-Ubuntu_0ubuntu1-log
4. CakePHP Stable: 1.1.19.6305
************************************************************************************************
With following code
************************************************************************************************
Table
************************************************************************************************
CREATE TABLE `core_groups` (
`id` int(11) NOT NULL
auto_increment,
`group` varchar(20) default
NULL,
PRIMARY KEY
(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
ROW_FORMAT=DYNAMIC
************************************************************************************************
************************************************************************************************
Model: core_group.php
************************************************************************************************
<?php
class CoreGroup extends AppModel
{
var $name = 'CoreGroup';
var $primaryKey = 'id';
var $useTable = 'core_groups';
}
?>
************************************************************************************************
************************************************************************************************
Controller: core_groups_controller.php
************************************************************************************************
<?php
class CoreGroupsController extends AppController
{
var $scaffold;
}
?>
************************************************************************************************
Thanks in advanced for help
regards,
Sanjeev
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---