Log message #109971

# At Username Text
# Aug 7th 2008, 14:49 zmonteca my site is working, however, i have one form on the site when it's submitted gives me a page with nothing but the SQL dump. Is there a way to get more information? Nothing is coming up in the debug or error logs? I get no info with debug set to 1,2 or 3.
# Aug 7th 2008, 14:49 Raphael__ http://bin.cakephp.org/view/191374837
# Aug 7th 2008, 14:49 Raphael__ http://bin.cakephp.org/view/1375267196
# Aug 7th 2008, 14:49 Raphael__ I have a problem while saving extra field in a HABTM relation
# Aug 7th 2008, 14:48 Eddie_CRO yes i see it now. wait to try it.
# Aug 7th 2008, 14:48 ADmad Eddie_CRO: read the comments at the top
# Aug 7th 2008, 14:48 Eddie_CRO there wasn't anything like that, neither i saw it someone mention it. How the line should look alike?
# Aug 7th 2008, 14:47 Eddie_CRO ) definitely.
# Aug 7th 2008, 14:47 ADmad Eddie_CRO: if u dont see it means its missing :)
# Aug 7th 2008, 14:47 Eddie_CRO where to set it?
# Aug 7th 2008, 14:47 Eddie_CRO don't see it there...?
# Aug 7th 2008, 14:46 ADmad Eddie_CRO: yeah
# Aug 7th 2008, 14:46 Eddie_CRO or?
# Aug 7th 2008, 14:46 Eddie_CRO you mean database.php?
# Aug 7th 2008, 14:46 Eddie_CRO wait to check...
# Aug 7th 2008, 14:46 Raphael__ hello
# Aug 7th 2008, 14:46 ADmad Eddie_CRO: have u set 'encoding'->'utf8' in db config
# Aug 7th 2008, 14:45 moelee ah
# Aug 7th 2008, 14:45 _psychic_ Inflector::pluralize("sheep");
# Aug 7th 2008, 14:45 _psychic_ you can just call the Inflector to find out
# Aug 7th 2008, 14:45 Eddie_CRO )
# Aug 7th 2008, 14:45 Eddie_CRO that would be nice application
# Aug 7th 2008, 14:45 _psychic_ moelee: sheep, probably
# Aug 7th 2008, 14:45 Eddie_CRO better to give table name World or Universe -> WorldController or UniverseController
# Aug 7th 2008, 14:44 Eddie_CRO D
# Aug 7th 2008, 14:44 moelee or sheepcontroller
# Aug 7th 2008, 14:44 moelee the controller would be name sheepscontroller?
# Aug 7th 2008, 14:44 moelee err if the table was named sheep
# Aug 7th 2008, 14:43 moelee sheep
# Aug 7th 2008, 14:43 moelee so like
# Aug 7th 2008, 14:43 Eddie_CRO maybe retrival from db should be somehow formatted?
# 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 bG^_ generally speaking, it's a VERY bad habit inserting/updating with views
# Aug 7th 2008, 14:42 bG^_ but yeah... i've seen many db treat this differentl
# Aug 7th 2008, 14:42 bG^_ i think it's an ANSI SQL limitation
# Aug 7th 2008, 14:42 teknoid bG^_: depends on the db, no?
# 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: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: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 :)