Page 174 of 211,257, showing 20 records out of 4,225,122 total, starting on record 3,461, ending on 3,480
# | Username | Text | |
---|---|---|---|
# | 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 | moelee | hm |
# | Aug 7th 2008, 14:35 | moelee | just out of curiosity |
# | Aug 7th 2008, 14:36 | moelee | how does cake handle words that are both plural and singular |
# | Aug 7th 2008, 14:36 | TommyO | moelee: quite well |
# | 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 | bG^_ | teknoid: as long you you don't call save() on such model, and only do reads, it should work |
# | 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:39 | teknoid | bG^_: hmm... why couldn't you do a save() on a view? ... the only thing that might be missing is a primary key, but you can define some column to act as one |
# | Aug 7th 2008, 14:42 | bG^_ | teknoid: you can't insert/update to views which are not 1-to-1 relation on the tables of the view |
# | Aug 7th 2008, 14:42 | teknoid | bG^_: depends on the db, no? |
# | Aug 7th 2008, 14:42 | bG^_ | i think it's an ANSI SQL limitation |
# | Aug 7th 2008, 14:42 | bG^_ | but yeah... i've seen many db treat this differentl |
# | Aug 7th 2008, 14:43 | bG^_ | generally speaking, it's a VERY bad habit inserting/updating with views |
# | Aug 7th 2008, 14:43 | Eddie_CRO | anyone has any experience with non english characters? mysql db is in utf-8, pages are in utf-8 but they don't display them right...? |
# | Aug 7th 2008, 14:43 | Eddie_CRO | maybe retrival from db should be somehow formatted? |
# | Aug 7th 2008, 14:43 | moelee | so like |
# | Aug 7th 2008, 14:43 | moelee | sheep |
# | Aug 7th 2008, 14:44 | moelee | err if the table was named sheep |
# | Aug 7th 2008, 14:44 | moelee | the controller would be name sheepscontroller? |