Log message #109933

# At Username Text
# Aug 7th 2008, 14:37 TommyO moelee: the Inflector can handle some pretty complex exceptions. it also gives you a place to define your own rules
# Aug 7th 2008, 14:36 bG^_ teknoid: as long you you don't call save() on such model, and only do reads, it should work
# Aug 7th 2008, 14:36 teknoid bG^_: i'm don't see why not... although i haven't tried it :)
# Aug 7th 2008, 14:36 TommyO moelee: quite well
# Aug 7th 2008, 14:36 moelee how does cake handle words that are both plural and singular
# Aug 7th 2008, 14:35 moelee just out of curiosity
# Aug 7th 2008, 14:35 moelee hm
# Aug 7th 2008, 14:35 bG^_ teknoid: oh.. great :) didn't know if it's ok with cake to treat views as models as well...
# Aug 7th 2008, 14:35 teknoid bG^_: just make a model for the view
# Aug 7th 2008, 14:32 bG^_ is there an easy way to make all my "reads" from db views instead of db tables rather than writing the query myself?
# Aug 7th 2008, 14:27 TommyO contain is driving me batty. one minute it creates a left join, the next minute it doesn't :) first time really exploring its depths
# Aug 7th 2008, 14:24 lqdice__ oh ok
# Aug 7th 2008, 14:24 TommyO no, I mean in my own models
# Aug 7th 2008, 14:24 lqdice__ oh you made the tree behavior?
# Aug 7th 2008, 14:24 TommyO lqdice__: I'm in the process of reworking a lot of this type of method so that it's used like: $this->find('children', ...
# Aug 7th 2008, 14:23 lqdice__ took only an hour or so
# Aug 7th 2008, 14:23 lqdice__ )
# Aug 7th 2008, 14:23 TommyO lqdice__: looks good
# Aug 7th 2008, 14:22 lqdice__ it could get heavy if a user has tons of access but since it allows you to give people access at the parent nodes there shouldnt be a problem
# Aug 7th 2008, 14:21 lqdice__ used both contain and regular conditions
# Aug 7th 2008, 14:20 lqdice__ TommyO: http://bin.cakephp.org/view/577899715 .. users have groups so this is what nodes the group has access to
# Aug 7th 2008, 14:19 TommyO lqdice__: cool. the kind of conditions that containable might help with?
# Aug 7th 2008, 14:12 lqdice__ TommyO: I got it .. the tree thing.. it's a bit of work but not tooo bad.. you do have to do custom conditions on left/right nodes
# Aug 7th 2008, 14:10 TommyO iirc
# Aug 7th 2008, 14:10 TommyO as far as views/layous are concerned, it used the app's where necessary
# Aug 7th 2008, 14:09 TommyO mandys: sorry, I thought you were talking solely about unit testing
# Aug 7th 2008, 14:09 TommyO oh I see. hmmm.
# Aug 7th 2008, 14:08 mandys and it doesn't create the views directory under app/tests/
# Aug 7th 2008, 14:08 mandys not web testing
# Aug 7th 2008, 14:08 mandys the caketest examples are all for unit testing
# Aug 7th 2008, 14:08 mandys i just am confused whether to use caketest or cakewebtest for web page testing
# Aug 7th 2008, 14:08 mandys i even wrote sample tests
# Aug 7th 2008, 14:08 mandys and run tests
# Aug 7th 2008, 14:08 mandys i can view /tests.php
# Aug 7th 2008, 14:08 mandys i have setup everything
# Aug 7th 2008, 14:08 mandys TommyO: i am passed that stage
# Aug 7th 2008, 14:06 TommyO *let
# Aug 7th 2008, 14:06 TommyO your app will have a url that will elt you run the core tests and your custom app tests
# Aug 7th 2008, 14:05 TommyO mandys: then look into how the core tests are written to write tests for your own app
# Aug 7th 2008, 14:04 TommyO mandys: bake an app skeleton and it will bake the proper test directory structure for you. bake a model and it bakes the model test file skeleton for you, etc
# Aug 7th 2008, 13:58 mandys anyone on my question?