Yet another problem running the console
Hey there, I'm using: - cake1.2.0.5427alpha (July 9th release) - php 4.3 - Apache - mysql Everything is running smooth, and I was even able to use the bake with cake's 1.1 version, but with 1.2 I'm getting this error: PHP Notice: Undefined variable: argv in C:\mydir\webdir\cake1.2dir \cake\console\cake.php on line 509 CakePHP Console: This file has been loaded incorrectly and cannot continue. Please make sure that \cake\console is in your system path, and check the manual for the correct usage of this command. (http://manual.cakephp.org/) I did watch the screencast, configured the c:\php and c:\mydir\webdir \cake1.2dir\cake\console\ paths. Tried to run with cake bake command, cake, php cake... Also tried to run from different dirs, like my cake1.2 root, cake1.2\cake and \console\... Anyway, tried everything that I could find here on the group, on that baker php site. How do I fix it? What have I missed? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: What editor do you use for CakePHP?
I'm using Dreamweaver 8 too. And there's a way to make .thtml files editable like .php files. Found the text here, forgot to note the author. - Just a couple of tips for developers who prefer to develop their page layouts in Dreamweaver or work with graphics people who use Dreamweaver. These are for DW 8. 1. Make thtml files editable in the design view - Find the Extensions.txt file in Dreamweaver's "Configuration" folder and edit the line PHP,PHP3,PHP4,PHP5,TPL:PHP Files to read PHP,PHP3,PHP4,PHP5,TPL,THTML:PHP Files - Find the MMDocumentTypes.xml file in the "DocumentTypes" (this is in the "Configuration" folder) and change the line to read 2. Use the "Design Time Style Sheet" to allow you to view thtml files with the appropriate css style applied. - Open up the thtml file you wish to edit then from the main menu select Text > CSS Styles > Design-time . Select the "+" above the "Show only at design time" box and select the cake.default.css file from the "webroot/css" folder. -- --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: 1364: Field doesn't have a default value
uh, well, I solved my problem... The problem was, I wasnt passing the user id to edit the row, so, cake was interpreting this as a new entry. ... On 6 fev, 10:02, "wedge" <[EMAIL PROTECTED]> wrote: > Hey everyone, > > I'm having this problem with my user edit form, where I dont want to > edit all the fields, like the password field, so Im using the > $fieldList array to specify the data I want to save, but Im still > getting this sql error and the form do not validate to save. > > How do I solve this? > > Here's part of the code. > > UserController - admin_edit > > $this->cleanUpFields(); > > if ($this->User->save($this->data, true, $fieldList = > array('username', 'email', 'first_name', 'last_name', 'group_id'))) > { > > $this->Session->setFlash('The User has been > saved'); > $this->redirect('/admin/users/index'); > > } > else > { > > $this->Session->setFlash('Please correct > errors below.'); > $this->set('groups', > $this->User->Group->generateList(null, null, > null, '{n}.Group.id','{n}.Group.groupname', null)); > > } --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
1364: Field doesn't have a default value
Hey everyone, I'm having this problem with my user edit form, where I dont want to edit all the fields, like the password field, so Im using the $fieldList array to specify the data I want to save, but Im still getting this sql error and the form do not validate to save. How do I solve this? Here's part of the code. UserController - admin_edit $this->cleanUpFields(); if ($this->User->save($this->data, true, $fieldList = array('username', 'email', 'first_name', 'last_name', 'group_id'))) { $this->Session->setFlash('The User has been saved'); $this->redirect('/admin/users/index'); } else { $this->Session->setFlash('Please correct errors below.'); $this->set('groups', $this->User->Group->generateList(null, null, null, '{n}.Group.id','{n}.Group.groupname', null)); } --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---