Log message #110765

# At Username Text
# Aug 7th 2008, 23:34 Jonah how come in this example from the book: http://bin.cakephp.org/view/1675849169
# Aug 7th 2008, 23:32 Jonah it does not seem logical though
# Aug 7th 2008, 23:32 Jonah i think i got it not
# Aug 7th 2008, 23:32 anthony jerrylee: it works with recursive=2, how is it not working?
# Aug 7th 2008, 23:24 jerrylee hi i am using containable behavior in 1.2rc2, but i found if use it, recursive=2 will not working, is that correct?
# Aug 7th 2008, 23:23 markstory Jonah: http://book.cakephp.org/view/125/data-validation
# Aug 7th 2008, 23:21 markstory Jonah: well I've been wrong before.
# Aug 7th 2008, 23:21 Jonah is there any other way to do it without putting 'required' in the 'length' rule?
# Aug 7th 2008, 23:20 Jonah look at the position of required
# Aug 7th 2008, 23:20 Jonah hmmm... http://bin.cakephp.org/view/2079057981
# Aug 7th 2008, 23:19 Jezek1 http://edwardawebb.com/programming/php-programming/cakephp/generating-dynamic-sitemaps-cakephp/
# Aug 7th 2008, 23:16 freebox ahm
# Aug 7th 2008, 23:15 markstory if you want to see how model processes it look at line 2180
# Aug 7th 2008, 23:15 markstory required just makes sure that the key exists.
# Aug 7th 2008, 23:15 Jonah whats the diff?
# Aug 7th 2008, 23:14 markstory set allowEmpty = false as well.
# Aug 7th 2008, 23:14 Jonah markstory: it does not work that way either
# Aug 7th 2008, 23:14 markstory Jonah: no need to make required into an array.
# Aug 7th 2008, 23:13 markstory I'm using it on my site.
# Aug 7th 2008, 23:13 Jezek1 mmm i'll look around
# Aug 7th 2008, 23:12 markstory freebox: the tutorial? I found it on google.
# Aug 7th 2008, 23:12 markstory no need to make an array.
# Aug 7th 2008, 23:12 markstory Jonah: 'required' => true should suffice.
# Aug 7th 2008, 23:12 freebox markstory: where? ^^
# Aug 7th 2008, 23:12 markstory Jezek1: I've done that before :) there is a tutorial somewhere about it.
# Aug 7th 2008, 23:12 Jonah http://bin.cakephp.org/view/478946084
# Aug 7th 2008, 23:11 Jezek1 i'm trying to generate a sitemap dynamically in cakephp :O
# Aug 7th 2008, 23:11 Jezek1 thanks
# Aug 7th 2008, 23:11 Jonah ill past
# Aug 7th 2008, 23:11 Jonah no... unless i am doing it wrong...
# Aug 7th 2008, 23:11 markstory Jezek1: you can do it anywhere.
# Aug 7th 2008, 23:11 Jezek1 oh cool. didn't know i could do that in the controller
# Aug 7th 2008, 23:10 markstory Jonah: setting required doesn't work?
# Aug 7th 2008, 23:10 Jonah as in so that if it is not passed through $this->data into validates(), it should not validate
# Aug 7th 2008, 23:10 markstory both will shut off sql log
# Aug 7th 2008, 23:10 markstory Jezek1: Configure::write('debug', 0); or 1
# Aug 7th 2008, 23:09 Jezek1 sorry
# Aug 7th 2008, 23:09 markstory Jonah: what do you mean by required?
# Aug 7th 2008, 23:09 Jezek can i turn it off from the controller
# Aug 7th 2008, 23:09 Jonah how do I make a field required?
# Aug 7th 2008, 23:08 markstory turn debug off.