# |
Oct 22nd 2009, 13:33 |
markstory |
is much easier than if ($thing['confirmed'] == NO) { |
# |
Oct 22nd 2009, 13:33 |
markstory |
if ($thing['confirmed') { |
# |
Oct 22nd 2009, 13:33 |
markstory |
how is that a problem? |
# |
Oct 22nd 2009, 13:32 |
dogmatic69 |
then cake makes nice checkboxes for you |
# |
Oct 22nd 2009, 13:32 |
jessupx |
then you have the problem with returning 0 as false rather then n |
# |
Oct 22nd 2009, 13:32 |
dogmatic69 |
tinyint(1) == bool |
# |
Oct 22nd 2009, 13:32 |
markstory |
soo is boolean. |
# |
Oct 22nd 2009, 13:32 |
dogmatic69 |
nope.. tinyint(1) |
# |
Oct 22nd 2009, 13:32 |
joeb |
Or, as we like to call them, boolean. |
# |
Oct 22nd 2009, 13:32 |
joeb |
tinyint len(1) default 0 are good for Y/N |
# |
Oct 22nd 2009, 13:31 |
jessupx |
why? they are good for Y/N |
# |
Oct 22nd 2009, 13:31 |
dogmatic69 |
*supported |
# |
Oct 22nd 2009, 13:31 |
dogmatic69 |
jessupx: enums are not suported |
# |
Oct 22nd 2009, 13:31 |
dogmatic69 |
saw that on urban dictionary today II = pause longer than brb |
# |
Oct 22nd 2009, 13:31 |
markstory |
because they are evil. |
# |
Oct 22nd 2009, 13:31 |
joeb |
ENUMs often spawn bad practices |
# |
Oct 22nd 2009, 13:31 |
markstory |
enum is just not supported |
# |
Oct 22nd 2009, 13:31 |
markstory |
its not a problen |
# |
Oct 22nd 2009, 13:30 |
jessupx |
anyone seen a problem when using the bake script that it cant deal with ENUMs? |
# |
Oct 22nd 2009, 13:30 |
dogmatic69 |
P |
# |
Oct 22nd 2009, 13:30 |
dogmatic69 |
you should say II |
# |
Oct 22nd 2009, 13:30 |
dogmatic69 |
ok |
# |
Oct 22nd 2009, 13:30 |
joeb |
Aha! |
# |
Oct 22nd 2009, 13:30 |
markstory |
be back later. |
# |
Oct 22nd 2009, 13:30 |
joeb |
Be back later. |
# |
Oct 22nd 2009, 13:30 |
dogmatic69 |
bbl? |
# |
Oct 22nd 2009, 13:29 |
alan|macbook |
dogmatic69 : bbl |
# |
Oct 22nd 2009, 13:29 |
alan|macbook |
dogmatic69 : still doesn't work : same notice... |
# |
Oct 22nd 2009, 13:29 |
alan|macbook |
ACTION really need to eat... |
# |
Oct 22nd 2009, 13:29 |
zyro |
damn |
# |
Oct 22nd 2009, 13:28 |
zyro |
dogmatic69: kinda really is a problem: https://trac.cakephp.org/ticket/6049 ... wontfix |
# |
Oct 22nd 2009, 13:24 |
dogmatic69 |
well the models have controllers |
# |
Oct 22nd 2009, 13:23 |
jcrawford |
dogmatic69 i was talking about controllers not sure where models came into play |
# |
Oct 22nd 2009, 13:21 |
dogmatic69 |
just cant use them together |
# |
Oct 22nd 2009, 13:21 |
dogmatic69 |
but i have a site with 2 Group models |
# |
Oct 22nd 2009, 13:21 |
dogmatic69 |
jcrawford: you cant have /app/plugins/app_controller/ |
# |
Oct 22nd 2009, 13:21 |
jcrawford |
http://book.cakephp.org/view/116/Plugin-Controllers <-- second paragraph |
# |
Oct 22nd 2009, 13:20 |
jcrawford |
dogmatic69 i am talking about object named colliding :) such as an app having a UsersController and a plugin also having a UsersController |
# |
Oct 22nd 2009, 13:20 |
dogmatic69 |
if you call a model in a plugin from another plugin or the normal /app/models you need Plugin.Model |
# |
Oct 22nd 2009, 13:19 |
jcrawford |
this is straight from the book "While it isn't required, it is recommended that you name your plugin controllers something relatively unique in order to avoid namespace conflicts with parent applications." |
# |
Oct 22nd 2009, 13:19 |
dogmatic69 |
jcrawford: models |