# |
Jul 17th 2017, 18:59 |
hmic |
use an int and define constants for the states, dereuromark might have a plugin or the like |
# |
Jul 17th 2017, 18:59 |
gglow |
what do you mean a bit array? Do you mean using a byte/char value and only making use of the first 2 bits? |
# |
Jul 17th 2017, 18:58 |
hmic |
if only because of php automatic type casting alone... |
# |
Jul 17th 2017, 18:58 |
hmic |
i'd highly recommend not using boolean as a 3 state! |
# |
Jul 17th 2017, 18:57 |
gglow |
ok |
# |
Jul 17th 2017, 18:57 |
gglow |
ah |
# |
Jul 17th 2017, 18:57 |
gglow |
for a 3 state? |
# |
Jul 17th 2017, 18:57 |
hmic |
and you can add more than a third state later on :d |
# |
Jul 17th 2017, 18:57 |
hmic |
bit arrays should work fine |
# |
Jul 17th 2017, 18:57 |
jeremyharris |
though I agree, nulls shouldn’t be saved in a boolean column |
# |
Jul 17th 2017, 18:57 |
gglow |
oh? |
# |
Jul 17th 2017, 18:57 |
gglow |
it makes sense boolean can only be true or false though:) |
# |
Jul 17th 2017, 18:57 |
jeremyharris |
looking at the BooleanType, it should respect null |
# |
Jul 17th 2017, 18:56 |
gglow |
should I use a byte instead if I need 3 states? |
# |
Jul 17th 2017, 18:56 |
hmic |
bool is true or false, not null. thats it. |
# |
Jul 17th 2017, 18:56 |
gglow |
yep |
# |
Jul 17th 2017, 18:56 |
jeremyharris |
cake 3? |
# |
Jul 17th 2017, 18:54 |
gglow |
When I submit a form with a boolean set to null in my json, CakePHP stores it as false. How do I get Cake to store my null booleans as null and not false? |
# |
Jul 17th 2017, 18:54 |
jeremyharris |
https://readthedocs.org/ might work for you then |
# |
Jul 17th 2017, 18:53 |
devito |
not very complex |
# |
Jul 17th 2017, 18:52 |
jeremyharris |
depends on how complex you need them to be |
# |
Jul 17th 2017, 18:52 |
jeremyharris |
lots of people use readthedocs for simpler docs |
# |
Jul 17th 2017, 18:52 |
devito |
anyone have suggestions for doumentation generators? |
# |
Jul 17th 2017, 17:57 |
slackebot |
<savant> |
# |
Jul 17th 2017, 17:56 |
megan |
Lol |
# |
Jul 17th 2017, 17:55 |
savant |
you cant set your own points |
# |
Jul 17th 2017, 17:55 |
savant |
@admad-- |
# |
Jul 17th 2017, 17:55 |
admad |
@admad-- |
# |
Jul 17th 2017, 17:54 |
admad |
@savant++ |
# |
Jul 17th 2017, 17:54 |
savant |
there we go |
# |
Jul 17th 2017, 17:53 |
savant |
@plusplus help |
# |
Jul 17th 2017, 17:53 |
savant |
@plusplus leaderboard |
# |
Jul 17th 2017, 17:53 |
savant |
@admad++ |
# |
Jul 17th 2017, 17:53 |
savant |
@admad++ |
# |
Jul 17th 2017, 17:50 |
savant |
@admad++ |
# |
Jul 17th 2017, 17:48 |
savant |
test++ |
# |
Jul 17th 2017, 17:45 |
backstageel |
Hello, can someone show me a link to a tutorial on how to enable opcache on cakephp2? |
# |
Jul 17th 2017, 16:50 |
aaronc |
jeremyharris++ |
# |
Jul 17th 2017, 16:50 |
aaronc |
Thanks for the help. I ended up get the passed vars with $this->viewVars, then the return is an array, I used array_keys() on it to get an array of all passed variables. |
# |
Jul 17th 2017, 16:46 |
jeremyharris |
np! |
# |
Jul 17th 2017, 16:45 |
aaronc |
Apologies had a bunch of pr statements floating around and mixed them up. |