Re: scaffolding with useDbConfig
Scott wrote: > I am having the same problem -- I've tried asking Victor directly, but > no response. Does anyone have suggestions? > I found it... in my case this was a corrupted file. I am not sure how, but I compared file sizes on several of my models, and found an unaccounted for 10 bytes in the seclinks model file. Diff did not show them, and they were both of the same "type". Recreating the file from scratch solved the problem. I have no idea why. -Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: scaffolding with useDbConfig
I am having the same problem -- I've tried asking Victor directly, but no response. Does anyone have suggestions? I have tried variations of the model/controller names, including LinksCategory, Linksections, and now Seclinks (thought maybe the name was too long). I had been trying to get a $hasMany relationship set up, but even when I strip that out I'm getting errors. Here's the current versions: models/seclink.php: controllers/seclinks_controller.php: table def in MySQL: CREATE TABLE seclinks ( id int(10) unsigned NOT NULL auto_increment, description varchar(50) NOT NULL default '', priority smallint(6) NOT NULL default '10', created datetime default NULL, modified datetime default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; I have 5 other models exactly like this that are working just fine. I'm obviously missing something. Can anyone help??? Thanks!!! -Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: scaffolding with useDbConfig
On 24/04/06, V <[EMAIL PROTECTED]> wrote: > > SORRY > > don't waste your time with these mails, I have found the bug. Care to enlighten the next guy with a problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: scaffolding with useDbConfig
SORRY don't waste your time with these mails, I have found the bug. V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: scaffolding with useDbConfig
I noticed that there was an error in the naming, so I have changed zerge_controller to zerges_controller (in the file name, the controller definition and in $name). Still does not work! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
scaffolding with useDbConfig
Hello! I just tried to play with cake's routing and redefined databases a bit, and suddenly run into a problem. I can make a basic scaffolding without any problems. So I have these files: content.php - model contents_controller.php: This works fine! __ Now I prepare a new model, zerge.php: and I add $uses = array('zerge'); to the controller, now I receive this error: Notice: Undefined property: Content in /.../cake/libs/controller/scaffold.php on line 431 __ then I have tried a different setup. So I created a new controller under zerge_controller.php: Now I get the error: Notice: Undefined property: useDbConfig in /.../cake/libs/controller/scaffold.php on line 431 Fatal error: ConnectionManager::getDataSource - Non-existent data source in /.../cake/libs/model/connection_manager.php on line 123 ___ Finally I tried to use the zerge controller with the conten model, so I added var $uses = array('content') to it. Now I get: Notice: Undefined property: ZergeController in /.../cake/libs/controller/scaffold.php on line 431 V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---