<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Building a Complete CodeIgniter Application: Part 3</title>
	<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/</link>
	<description>Keeping the rabbits out since 1975</description>
	<pubDate>Thu, 04 Dec 2008 19:15:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: pepe</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-234293</link>
		<dc:creator>pepe</dc:creator>
		<pubDate>Mon, 28 Jul 2008 08:14:08 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-234293</guid>
		<description>Hi, great tutorial.

Just wondering. Doesn't codeigniter does all the sanitation for you? The thing is instead of reading input via
 $_POST 
you read it via 
$this-&#62;input-&#62;post
Also at
application/config/config.php 
set 
global_xss_filtering to true and you have pretty much all what you need.</description>
		<content:encoded><![CDATA[<p>Hi, great tutorial.</p>
<p>Just wondering. Doesn&#8217;t codeigniter does all the sanitation for you? The thing is instead of reading input via<br />
 $_POST<br />
you read it via<br />
$this-&gt;input-&gt;post<br />
Also at<br />
application/config/config.php<br />
set<br />
global_xss_filtering to true and you have pretty much all what you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomme</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-137714</link>
		<dc:creator>tomme</dc:creator>
		<pubDate>Wed, 16 Apr 2008 12:50:59 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-137714</guid>
		<description>Hi Jim,
absolutely great tutorial, thank you very much!
Everything works fine, I'm only having trouble going on upon this base.
I try to get the site styled with css, but I can't get the site to load the css-file.
I'd just put the link into the css-file in the header-view like that: , but in whatever folder I put the file (html, system,application...) it doesn't get recognized.
I suppose my problem can easily be solved within the rewriting rules, but thats absolut unknown territory for me. can you help me out?</description>
		<content:encoded><![CDATA[<p>Hi Jim,<br />
absolutely great tutorial, thank you very much!<br />
Everything works fine, I&#8217;m only having trouble going on upon this base.<br />
I try to get the site styled with css, but I can&#8217;t get the site to load the css-file.<br />
I&#8217;d just put the link into the css-file in the header-view like that: , but in whatever folder I put the file (html, system,application&#8230;) it doesn&#8217;t get recognized.<br />
I suppose my problem can easily be solved within the rewriting rules, but thats absolut unknown territory for me. can you help me out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 101 Code Igniter Resources &#124; Learning On Demand</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-101838</link>
		<dc:creator>101 Code Igniter Resources &#124; Learning On Demand</dc:creator>
		<pubDate>Tue, 05 Feb 2008 23:56:12 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-101838</guid>
		<description>[...] Building a Complete CodeIgniter Application: Part 3, by Jim O&#8217;Halloran. Eliminate security [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Building a Complete CodeIgniter Application: Part 3, by Jim O&rsquo;Halloran. Eliminate security [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeIgniter Framework :: TermiT's Blog</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-99707</link>
		<dc:creator>CodeIgniter Framework :: TermiT's Blog</dc:creator>
		<pubDate>Wed, 30 Jan 2008 19:42:06 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-99707</guid>
		<description>[...]  Building a Complete CodeIgniter Application: Part 3 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;]  Building a Complete CodeIgniter Application: Part 3 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim O'Halloran</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-87828</link>
		<dc:creator>Jim O'Halloran</dc:creator>
		<pubDate>Sun, 09 Dec 2007 00:41:29 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-87828</guid>
		<description>Hi,

I like to do all of my output escaping in the view (where the output occurs) because different output formats require different escapes.  You'll need htmlentities for a web page, but you don't want to use htmlentities on a plain text email.  If the data is escaped for HTML in the database you're restricted to using HTML as the output format, or you first need to reverse the htmlentities call, then escape the data for whatever output format you';re using.

I don't like magic quotes for the same reason.  Magic quotes assumes that the input will be placed into the database and escapes it for that purpose.  If the data fails validation and is returned to the html form, you need to strip out the backslashes first, which is a hassle.

I prefer to use "pure" unescaped data throughout my controllers and models, then escape it with the appropriate function just before output (i.e. in a view, or sql statement).  I find it less hassle to work that way, otherwise you need to keep track of what form the string is in at any time, which is a pain.

Realistically, in this app, we'll probably only use the data in a web app, so it wouldn't be a major inconvenience to have the data html entity encoded in the database itself, but I prefer to retain the flexibility in case I change my mind later.

Hope that helps.

Jim.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I like to do all of my output escaping in the view (where the output occurs) because different output formats require different escapes.  You&#8217;ll need htmlentities for a web page, but you don&#8217;t want to use htmlentities on a plain text email.  If the data is escaped for HTML in the database you&#8217;re restricted to using HTML as the output format, or you first need to reverse the htmlentities call, then escape the data for whatever output format you&#8217;;re using.</p>
<p>I don&#8217;t like magic quotes for the same reason.  Magic quotes assumes that the input will be placed into the database and escapes it for that purpose.  If the data fails validation and is returned to the html form, you need to strip out the backslashes first, which is a hassle.</p>
<p>I prefer to use &#8220;pure&#8221; unescaped data throughout my controllers and models, then escape it with the appropriate function just before output (i.e. in a view, or sql statement).  I find it less hassle to work that way, otherwise you need to keep track of what form the string is in at any time, which is a pain.</p>
<p>Realistically, in this app, we&#8217;ll probably only use the data in a web app, so it wouldn&#8217;t be a major inconvenience to have the data html entity encoded in the database itself, but I prefer to retain the flexibility in case I change my mind later.</p>
<p>Hope that helps.</p>
<p>Jim.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ariel</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-87816</link>
		<dc:creator>ariel</dc:creator>
		<pubDate>Sat, 08 Dec 2007 23:06:09 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-87816</guid>
		<description>Hi, thank you for tutorial.
a little question: why do the "htmlentities" on the view and not in the controller before saving the "title" data to the database?</description>
		<content:encoded><![CDATA[<p>Hi, thank you for tutorial.<br />
a little question: why do the &#8220;htmlentities&#8221; on the view and not in the controller before saving the &#8220;title&#8221; data to the database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim O&#8217;Halloran&#8217;s Weblog&#187; Blog Archive &#187; Building a Complete CodeIgniter Application</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-86340</link>
		<dc:creator>Jim O&#8217;Halloran&#8217;s Weblog&#187; Blog Archive &#187; Building a Complete CodeIgniter Application</dc:creator>
		<pubDate>Sat, 01 Dec 2007 01:00:31 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-86340</guid>
		<description>[...] Part 3: Security [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Part 3: Security [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mara</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-79336</link>
		<dc:creator>Mara</dc:creator>
		<pubDate>Sun, 04 Nov 2007 16:11:52 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-79336</guid>
		<description>Thank you for the great write-ups and tutorial. Look forward to reading more, they are extremely helpful!</description>
		<content:encoded><![CDATA[<p>Thank you for the great write-ups and tutorial. Look forward to reading more, they are extremely helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a&#38;w</title>
		<link>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-78143</link>
		<dc:creator>a&#38;w</dc:creator>
		<pubDate>Sun, 28 Oct 2007 19:38:38 +0000</pubDate>
		<guid>http://www.jimohalloran.com/2007/10/24/building-a-complete-codeigniter-application-part-3/#comment-78143</guid>
		<description>This promises to be a nice set of tutorials when complete.  I've also poked around bambooinvoice which has been very helpful to me.  It's really great to see how something would get built from the ground up though, and having some of the why this or why not that to understand it all better. Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>This promises to be a nice set of tutorials when complete.  I&#8217;ve also poked around bambooinvoice which has been very helpful to me.  It&#8217;s really great to see how something would get built from the ground up though, and having some of the why this or why not that to understand it all better. Thanks for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
