Re: Can not save two fields

2013-02-07 Thread crush
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

Re: I want to change password using cake php

2012-12-25 Thread crush
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/Cake

Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread crush
> > 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

Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread crush
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() { par

Re: HABTM Join Table Entries Disappearing

2012-12-05 Thread crush
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('firs

HABTM Join Table Entries Disappearing

2012-10-10 Thread crush
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

Re: Select box broken after upgrade

2011-06-20 Thread CRUSH
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

Re: Select box broken after upgrade

2011-06-20 Thread CRUSH
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

Re: Select box broken after upgrade

2011-06-19 Thread CRUSH
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: Media Type -- Our newest si

Re: Select box broken after upgrade

2011-06-19 Thread CRUSH
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 un

Re: What editor?

2011-06-19 Thread CRUSH
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-ph

Re: What editor?

2011-06-19 Thread CRUSH
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 fro

Select box broken after upgrade

2011-06-19 Thread CRUSH
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

Ajax query sending out two identical queries

2011-04-19 Thread CRUSH
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. Form(array( 'type' => 'post', 'options' => array( 'model'=>'Car