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));
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
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() {
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
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 =
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
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
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
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
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
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
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
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
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(
14 matches
Mail list logo