Is it possible that you have some leftover debugging in a model/
controller/components? Perhaps a loose character outside of your tags?
Given that the "m" occurs before the doctype, it's obviously being
generated in some script that has no business writing output.
This looks like one of those
IFeghali, yes, removing that line got past the problem, though I
hesitate to say it is fixed.
Why would this date field fail validation? All of the dropdowns are
set to legit values; in fact, as far as I can tell, it's *impossible*
to set the field to an invalid value.
This really looks like a
Good to know; I'll have to try it out.
Does anyone have insight to the problem I'm seeing, though?
On Mar 19, 3:53 pm, Miles J wrote:
> Cake has a built in system for created, modified. Cake automatically
> inserts data for created when a new row is added, and inserts data for
> modified when
value itself. To do that your your table schema should have the
> following:
>
> created DATETIME DEFAULT NULL,
> modified DATETIME DEFAULT NULL
>
> I guess for something like logins, the modified column is unnecessary, though.
>
> On Thu, Mar 19, 2009 at 11:27 AM, GrantB wr
I just created my first CakePHP app and I'm running into a snag.
I have a table "logins" with a datetime field. I've baked the MVCs
with no outward signs of trouble. In the scaffolded add view, my date
is a series of dropdowns with the current date/time preselected.
When I submit, Cake always
database that I created.
It would be handy if the Cake DB error message was a little more
informative. It's certainly possible for PHP to distinguish between a
failed Mysql connection and a failed database access.
On Mar 9, 5:47 pm, GrantB wrote:
> It turned out that my db user did not
It turned out that my db user did not have access to the cake
database. So it wasn't that Cake couldn't connect to the DB (a stand-
alone test script was able to connect just fine), but that Cake
couldn't access the table.
It would be handy if the Cake DB error message was a little more
informat
Hi, I'm a noob trying to set up CakePHP for the first time.
My CakePHP status page is saying "Cake is NOT able to connect to the
database.", but it doesn't give me any error message or other reason
why this could be. Why won't it give me any other error message?
I triple-checked what I put in m
Hi, I'm a noob trying to set up CakePHP for the first time.
My CakePHP status page is saying "Cake is NOT able to connect to the
database.", but it doesn't give me any error message or other reason
why this could be. Why won't it give me any other error message?
I triple-checked what I put in m