Re: Can not save two fields
Make sure you delete the model caches, debug level 1 and maybe reload apache to force it to recheck the DB and see the new fields. That's gotten me a few times when it just wouldn't save something. Also, just in case, you can do a $this-Model-save($this-request-data, array('validate'=false)); to make sure the validation is still not a problem. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: I want to change password using cake php
Turn debug to 2 in the config file. Login with the new password and copy the password string it posts in the debug at the bottom of the page after you try to login. Paste that into the database in the password field for the appropriate user. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Help! - Simple authentication tutorial? Is it broken?
Hey, I had this error: Fatal error: Class declarations may not be nested in /srv/www/website/public_html/lib/Cake/Controller/CakeErrorController.php on line 31 and finally tracked it down to the beforeFilter existing on the users controller twice: public function beforeFilter() { parent::beforeFilter(); $this-Auth-allow('add'); } I deleted the second one and everything started working properly. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Help! - Simple authentication tutorial? Is it broken?
I'll keep posting .but if anybody has actually made this tutorial work I would be very interested. I am starting to think I am in one of those 'gumption traps' where I assume it is my own ignorance causing me problems, but actually there is something wrong with the tutorial and/or library code. The tutorial does work properly. I actually just used it recently and the only issue that I had was a copy and paste issue. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: HABTM Join Table Entries Disappearing
Thanks guys for your help. I think that I have found what is causing the problem but I need some feedback to see if it's probable. Lets say I have the models 'Order' and 'Cart' which have a HABTM relationship with a join model 'CartsOrder'. *When I run this:* $order = $this-Order-find('first'); $this-Order-save($order); *It will:* 1) UPDATE the orders table 2) DELETE all of the joins in the 'carts_orders' table 3) INSERT the new joins to the 'carts_orders' table, one by one. That seems to work properly but what if I ran the above code multiple times at once? What if the find was called before the last instance of done writing all the inserts? You would get an incomplete find and then the save after that would not write the missing joins. That would result in missing joins. Thoughts? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
HABTM Join Table Entries Disappearing
Hey, I have an orders table, a carts table and a carts_orders table. Every once and a while, I lose some of the rows from the carts_orders table. They are being created properly but are being deleted at some point. I have been trying to figure it out but everything in the applications works 99.9 percent of the time and it's very difficult to nail down exactly what's happening. My questions is: *What CakePHP methods would cause those rows to be deleted, but not the associated entries in the carts and orders tables*? Any help would be appreciated! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Select box broken after upgrade
Ganganath, I think your controller should be musics and your view should be music_id -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Select box broken after upgrade
Jeremy, Not working. I changed it to: Controller $mediaTypes = $this-Media-MediaType-find('list'); $this-set(compact('$mediaTypes')); View echo $this-Form-input('media_type_id'); and made the model change. Here is what it is outputting: div class=input select label for=MediaMediaTypeIdMedia Type/label select name=data[Media][media_type_id] id=MediaMediaTypeId /select /div -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Select box broken after upgrade
view::: echo $form-input('music_id', array('label' = 'Music Track')); controller::: $musics = $this-Album-Music-find('list'); $this-set(compact('musics')); -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Select box broken after upgrade
Thank you Jeremy. Removing the dollar sign fixed it. A stupid error on my end. I never even noticed that it was there! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Select box broken after upgrade
Hey, I have spent hours troubleshooting this stupid problem. Tried many combinations of names. This code gave me a select box with the media types in the view in version 1.2. In version 1.3 it gives me an empty select box. By debugging the $media_types I can see that the Find call is getting the correct rows but that's as far as I know how to debug. Any thoughts? Controller $media_types = $this-Media-MediaType-find('list', array('fields'=array('MediaType.id', 'MediaType.type'))); $this-set(compact('media_types')); View echo $form-input('media_type_id', array('label' = 'Media Type')); -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: What editor?
Ha ha! eg What editor would you use to build a site like facebook? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: What editor?
Komodo is the best I've used so far. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Ajax query sending out two identical queries
Hey, I have an form that submits via ajax. It works fine except it always submits two identical queries. I have tried formatting it and testing with firebug and safari. Here is the code and below if the browser output. ?php echo $ajax-Form(array( 'type' = 'post', 'options' = array( 'model'='Cart', 'update'='update', 'indicator' = 'loading', 'before' = '$(#update).html(Adding... Please wait a moment...);', 'url' = array( 'controller' = 'galleries', 'action' = 'add_to_cart' ; echo $this-Form-hidden('photo_id'); echo $this-Form- input('product_id',array('onChange'='changeDescription(this.value);')); echo 'div class=status id=update/div'; echo $this-Form-end('Add to Cart'); ? Firebug outputs: POST https://xxx.com/galleries/add_to_cart 200 OK 107ms jquerymin.js (line 141) POST https://xxx.com.com/galleries/add_to_cart 200 OK 120ms jquerymin.js (line 141) The reason that I am trying to fix this is because I am getting the item added to the cart twice, sometimes. Driving me nuts. Any help would be appreciated -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php