Log message #109710

# At Username Text
# Aug 7th 2008, 12:22 tbranyen i'm so dumb
# Aug 7th 2008, 12:22 tbranyen oh god
# Aug 7th 2008, 12:22 tbranyen read() returns an array
# Aug 7th 2008, 12:22 tbranyen unless..
# Aug 7th 2008, 12:22 tbranyen Just checked the function stripScripts and it asks for a string and returns a string
# Aug 7th 2008, 12:22 jaredhoyt anthony: why not?
# Aug 7th 2008, 12:22 anthony i don't think you should set the layout in the View
# Aug 7th 2008, 12:22 tbranyen $sanitized = Sanitize::stripScripts($this->Post->read());
# Aug 7th 2008, 12:22 tbranyen TommyO: Odd that this line will not work
# Aug 7th 2008, 12:21 jaredhoyt thestaff: $this->layout in the view
# Aug 7th 2008, 12:21 thestaff one view
# Aug 7th 2008, 12:21 thestaff no just for on view
# Aug 7th 2008, 12:21 anthony thestaff: for the whole controller you can set the Controller's layout variable
# Aug 7th 2008, 12:21 tbranyen sweet thanks TommyO
# Aug 7th 2008, 12:20 TommyO tbranyen: for that class yes
# Aug 7th 2008, 12:20 thestaff how do you get view not to have the default layout ?
# Aug 7th 2008, 12:20 thestaff hi all
# Aug 7th 2008, 12:20 tbranyen ah okay so its kosher to just use the Class::member syntax
# Aug 7th 2008, 12:19 TommyO tbranyen: yeah. that's wrong. all the methods are static
# Aug 7th 2008, 12:18 TommyO hmmm...
# Aug 7th 2008, 12:17 jaredhoyt tbranyen: http://pastebin.ca/1094903
# Aug 7th 2008, 12:17 tbranyen TommyO oh this page told me to instantiate http://book.cakephp.org/view/153/data-sanitization
# Aug 7th 2008, 12:17 c0m- no errors
# Aug 7th 2008, 12:17 TommyO Sanitize is a static class
# Aug 7th 2008, 12:17 c0m- i don't see an error though
# Aug 7th 2008, 12:17 tbranyen kk
# Aug 7th 2008, 12:17 c0m- Warning (2): mssql_query() [function.mssql-query]: General SQL Server error: Check messages from the SQL Server. (severity 5) [CORE/cake/libs/model/datasources/dbo/dbo_mssql.php, line 162]
# Aug 7th 2008, 12:17 TommyO ok. never use constructors in cake. there's no need
# Aug 7th 2008, 12:16 teknoid tbranyen: App::import is in the wrong place
# Aug 7th 2008, 12:16 tbranyen Just trying to expand on it
# Aug 7th 2008, 12:16 tbranyen Went through the whole thing and it worked
# Aug 7th 2008, 12:16 tbranyen I did
# Aug 7th 2008, 12:16 TommyO tbranyen: you really might want to start with the blog tutorial
# Aug 7th 2008, 12:16 tbranyen Okay
# Aug 7th 2008, 12:16 tbranyen That must mean you know how to fix it :D
# Aug 7th 2008, 12:16 TommyO tbranyen: firstly, you don't need a constructor
# Aug 7th 2008, 12:16 tbranyen Oh phew.
# Aug 7th 2008, 12:15 TommyO tbranyen: lots of stuff wrong :)
# Aug 7th 2008, 12:14 tbranyen i hope i'm doing something stupid
# Aug 7th 2008, 12:14 tbranyen http://pastebin.ca/1094902
# Aug 7th 2008, 12:13 tbranyen I think I'm just an idiot who thought index was a default constructor