Jump to content

cakestar

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cakestar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Your dead right I would need that in the code somewhere, but more importantly I would need to pass a value to it whether or not it needed to be checked or not. thks for your reply tho
  2. Hello all, I would like to display a disabled checkbox with its value set from the database. I have tried the following: <?php echo $form->checkbox($post['Post']['flag'], array('disabled'=>'true'));?> <?php echo $form->checkbox(‘Post.flag.$post['Post']['flag'], array(‘value’ => $post['Post']['flag']));?> The first statement shows me a disabled checkbox and if I view the source I have a hidden checkbox as well but none are being passed the value of the field from the database. <input type="hidden" id="" disabled="disabled" value="0" name="data[]"> <input type="checkbox" id="" value="1" disabled="disabled" name="data[]"> The second statement shows this: <input type="checkbox" id="‘Postflag0" value="1" ‘value’="0" name="data[‘Postflag0]"> Now I've changed it slightly to: <?php echo $form->checkbox(Post.flag.$post['Post']['flag'], array(value => $post['Post']['flag']));?> These don't work either: <input type="hidden" name="data[Postflag0]" id="Postflag0_" value="0" /> <input type="checkbox" name="data[Postflag0]" value="1" id="Postflag0" /> I want to be able to show a disabled checkbox with a value of checked or not depending on it's value in the database. Any idea how I can get this to work?
  3. Hello, new here. Looking for some help to a warning message that keeps appearing at the top of my cakephp console. I have mysql5, php5 and apache2 installed with macports. When running my cake console I'm getting the following warning message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so' - (null) in Unknown on line 0 This location does not exist. In my php.ini I do not have the extensions_dir set. Can someone explain why I'm getting this message? Seems my phpmyadmin and cake baking ability is working correctly, maybe this warning is nothing to worry about. It's very annoying though!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.