# |
Sep 13th 2009, 04:10 |
HardPhuck |
i have a form that saves two models, can i validate and show errors for both at the same time? |
# |
Sep 13th 2009, 03:16 |
foofoo |
np |
# |
Sep 13th 2009, 03:16 |
Hiall |
ty BlackIce and foofoo |
# |
Sep 13th 2009, 03:16 |
BlackIce |
it might |
# |
Sep 13th 2009, 03:16 |
Hiall |
o.0 thats works? :D awesome |
# |
Sep 13th 2009, 03:15 |
BlackIce |
you could try just 'datetime = NOW()' |
# |
Sep 13th 2009, 03:15 |
Hiall |
yes puts it like that |
# |
Sep 13th 2009, 03:15 |
foofoo |
? |
# |
Sep 13th 2009, 03:15 |
foofoo |
where datetime = 'now()' |
# |
Sep 13th 2009, 03:14 |
foofoo |
or it puts it in string quotes? |
# |
Sep 13th 2009, 03:14 |
foofoo |
what do you want? >=? <= ? |
# |
Sep 13th 2009, 03:14 |
Hiall |
foofoo, that puts the query as `datetime` = 'NOW()' though |
# |
Sep 13th 2009, 03:14 |
foofoo |
NOW() isn't a php constant |
# |
Sep 13th 2009, 03:14 |
BlackIce |
put it in a string |
# |
Sep 13th 2009, 03:14 |
foofoo |
'datetime' => 'now()' |
# |
Sep 13th 2009, 03:14 |
foofoo |
string |
# |
Sep 13th 2009, 03:13 |
Hiall |
it's throwing an error when I just put 'datetime' => NOW() :/ |
# |
Sep 13th 2009, 03:13 |
BlackIce |
not sure tho |
# |
Sep 13th 2009, 03:13 |
BlackIce |
I believe you can just have NOW() in your conditions |
# |
Sep 13th 2009, 03:13 |
Hiall |
yes BlackIce |
# |
Sep 13th 2009, 03:12 |
BlackIce |
you mean in find() or something? |
# |
Sep 13th 2009, 03:12 |
Hiall |
Is it possible to use the mysql NOW() within conditionals? |
# |
Sep 13th 2009, 03:02 |
foofoo |
any time tiger |
# |
Sep 13th 2009, 03:02 |
BlackIce |
np |
# |
Sep 13th 2009, 03:01 |
abdelm |
welcome |
# |
Sep 13th 2009, 03:01 |
vanir |
thanks a lot foo, BlackIce, abdelm |
# |
Sep 13th 2009, 03:01 |
vanir |
sounds good :) |
# |
Sep 13th 2009, 03:00 |
foofoo |
np, come back and ask specific questions and everyone here will gladly help out. the community is very supportive |
# |
Sep 13th 2009, 02:59 |
vanir |
cool, thanks :) |
# |
Sep 13th 2009, 02:59 |
vanir |
yeah |
# |
Sep 13th 2009, 02:59 |
foofoo |
as BlackIce said, start w/ the blog tutorial and see what happens |
# |
Sep 13th 2009, 02:58 |
vanir |
i'll try it out |
# |
Sep 13th 2009, 02:57 |
vanir |
thanks |
# |
Sep 13th 2009, 02:57 |
vanir |
alright |
# |
Sep 13th 2009, 02:55 |
foofoo |
vanir: if you want structure yet still allows flexibilitiy then fire up a cake app and see if it sticks. |
# |
Sep 13th 2009, 02:55 |
foofoo |
vanir: pick one that meets your requirements. weight your needs and your wants and find what works for you |
# |
Sep 13th 2009, 02:53 |
vanir |
so basically, pick one, stick to it, and give it time |
# |
Sep 13th 2009, 02:51 |
foofoo |
vanir: you could even find a framework like drupal or joomla that have more features already available to you |
# |
Sep 13th 2009, 02:50 |
foofoo |
vanir: you have to decide for yourself, and there are plenty of options out there |
# |
Sep 13th 2009, 02:50 |
vanir |
true |
# |
Sep 13th 2009, 02:49 |
foofoo |
vanir: you're having the same conversation that a lot of us have had in our heads. we're all in this channel so you can imagine what decision we made |