Log message #1033688

# At Username Text
# Sep 13th 2009, 04:20 nini }
# Sep 13th 2009, 04:20 nini return;
# Sep 13th 2009, 04:20 nini if( !$this->Model1->validates() | !$this->Model2->validates()){
# Sep 13th 2009, 04:20 nini $this->Model2->set($this->data);
# Sep 13th 2009, 04:20 nini $this->Model1->set($this->data);
# Sep 13th 2009, 04:20 nini HardPhuck: use in your controller:
# Sep 13th 2009, 04:13 HardPhuck will that show validation errors for both when i click submit?
# Sep 13th 2009, 04:12 Jippi HardPhuck: saveAll
# 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