hi i am getting a very bad date output on my form,i am still new in
cakePHP framework.i want it to display in one horizintal line i.e
showing  in the following manner (YMD) in a sigle horizontal  line not
in vertical format like this:year displaying  in one line followed by
month in another line.

code in the form: <?php
                echo $form->input('date logged',array('type'=>'date', 
'format'=>'Y-M-
D'));
        ?>


this is my schema:


--
-- Table structure for table `operators`
--

CREATE TABLE `operators` (
  `hazard_id` int(10) unsigned NOT NULL,
  `area_id` int(10) unsigned NOT NULL,
  `rating_id` int(10) unsigned NOT NULL,
  `staff_id` int(10) unsigned NOT NULL,
  `date` datetime NOT NULL,
  `status_description` varchar(45) NOT NULL,
  `status` varchar(10) NOT NULL,
  `capturer_name` varchar(45) NOT NULL,
  `date_time` datetime NOT NULL,
  KEY `fk_operators_hazards` (`hazard_id`),
  KEY `fk_operators_areas` (`area_id`),
  KEY `fk_operators_ratings` (`rating_id`),
  KEY `fk_operators_staff` (`staff_id`)
);

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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

Reply via email to