<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Yidea&#039;s Blog</title>
	<atom:link href="http://yicao.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yicao.wordpress.com</link>
	<description>Chase my dream ,coding,designing and focus on HCI with with great interests</description>
	<lastBuildDate>Wed, 25 Aug 2010 01:03:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yicao.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yidea&#039;s Blog</title>
		<link>http://yicao.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yicao.wordpress.com/osd.xml" title="Yidea&#039;s Blog" />
	<atom:link rel='hub' href='http://yicao.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Drupal 6 Themes &#8211;Chapter1 booknotes</title>
		<link>http://yicao.wordpress.com/2010/08/24/drupal-6-themes-chapter1-booknotes/</link>
		<comments>http://yicao.wordpress.com/2010/08/24/drupal-6-themes-chapter1-booknotes/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 01:03:14 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/24/drupal-6-themes-chapter1-booknotes/</guid>
		<description><![CDATA[3 key Concepts in Drupal Theme Theme it in Whole or in Part With Drupal, you can either set a single unified look for the entire site with a single template, e.g. by default, you have Garland theme for both front end and back end admin or you can control the look and feel of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=74&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>3 key Concepts in Drupal Theme</h2>
<ol>
<li>
<h3>Theme it in Whole or in Part </h3>
</li>
<p>With Drupal, you can either set a single unified look for the entire site with a single template, <strong>e.g.</strong> by default, you have Garland theme for both front end and back end admin</p>
<p>or you can control the look and feel of the individual parts of the site with multiple templates, <strong>e.g.</strong> you can build one page template for your homepage , another for your interior pages.</p>
<li>
<h3>Build with Blocks       <br /></h3>
<p>Drupal placeholder &#8211; Block where content is displayed in a webpage.       <br />The administrator can assign a variety of output to the regions through Block manager.        <br /><strong>Modules</strong> are one of the most common source of output in Drupal. Module is standalone bits of code – that extend the fuctionality of site.</p>
</li>
<li>
<h3>Intercept and Override       <br /></h3>
<p><strong>The best practice approach</strong> to customizing themes involves intercepting and overriding files and styles at the highest level of Drupal’s process – not altering the Drupal core files</p>
</li>
</ol>
<h2>Theme Engine </h2>
<p>Drupal is distributed with PHPTemplate engine</p>
<h2>Reignons &amp; Blocks</h2>
<p><strong>Regions</strong> must be coded into your theme iles and are, therefore, primarily the province of the theme developer.    <br /> <strong>Blocks</strong>, on the other hand, can be created and manipulated by the site administrator from within the admin interface (without having to modify the code).</p>
<p><strong>Default Garland theme – showing hard-coded “regions”</strong></p>
<p><a href="http://yicao.files.wordpress.com/2010/08/image5.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="310" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb5.png?w=478&#038;h=310" width="478" border="0" /></a> </p>
<p><strong>under the regions, there are the blocks</strong></p>
<p><a href="http://yicao.files.wordpress.com/2010/08/image6.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="291" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb6.png?w=342&#038;h=291" width="342" border="0" /></a> </p>
<h2>How Drupal displays a webpage</h2>
<p><a href="http://yicao.files.wordpress.com/2010/08/image7.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="387" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb7.png?w=268&#038;h=387" width="268" border="0" /></a> </p>
<h2>1 Files of a PHPTemplate Theme(*.tpl.php)</h2>
<p><a href="http://yicao.files.wordpress.com/2010/08/image8.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="326" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb8.png?w=473&#038;h=326" width="473" border="0" /></a> </p>
<p><a href="http://yicao.files.wordpress.com/2010/08/image9.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="205" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb9.png?w=472&#038;h=205" width="472" border="0" /></a> </p>
<p><strong>page.tpl.php</strong> does the heavy lifting in all PHPTemplate themes. </p>
<p><strong>block.tpl.php, comment.tpl.php, node.tpl.php</strong>.etc. override the default theme (not required)</p>
<h2>2 Files of a Pure PHP Theme(not employ PHPTemplate Engine) </h2>
<p><a href="http://yicao.files.wordpress.com/2010/08/image10.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="440" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb10.png?w=471&#038;h=440" width="471" border="0" /></a> </p>
<p>In Chmeleon theme, the key files are chameleon.theme, common.css, style.css and chameleon.info</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=74&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/24/drupal-6-themes-chapter1-booknotes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal Essential Training(Lynda) &#8211; study notes</title>
		<link>http://yicao.wordpress.com/2010/08/24/drupal-essential-traininglynda-study-notes/</link>
		<comments>http://yicao.wordpress.com/2010/08/24/drupal-essential-traininglynda-study-notes/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 19:40:23 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/24/drupal-essential-traininglynda-study-notes/</guid>
		<description><![CDATA[Intro: Drupal is a CMS, CMS is suitable for website : have multiple contributors; require a consistent look and feel; have advanced functions,without lots of custom programming Concept: node, content type ,core,module,theme,template Drupal site examples: www.theonion.com&#160; www.spreadfirefox.com www.research.yahoo.com www.popsci.com Lullabot is training company supporting Drupal Drupal Install and Config on Windows: copy Drupal folder to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=60&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Intro:</h2>
<p>Drupal is a CMS, CMS is suitable for website :    <br />have multiple contributors;     <br />require a consistent look and feel;     <br />have advanced functions,without lots of custom programming</p>
<p><strong>Concept</strong>: node, content type ,core,module,theme,template</p>
<p><strong>Drupal site examples:</strong></p>
<p><a href="http://www.theonion.com">www.theonion.com</a>&#160; <br /><a href="http://www.spreadfirefox.com">www.spreadfirefox.com</a>     <br /><a href="http://www.research.yahoo.com">www.research.yahoo.com</a>     <br /><a href="http://www.popsci.com">www.popsci.com</a></p>
<p><strong>Lullabot</strong> is training company supporting Drupal </p>
<h2>Drupal Install and Config on Windows:</h2>
<ol>
<li>copy Drupal folder to localhost, add “/sites/default/settings.php”; </li>
<li>setup Mysql connection,setup Administrator account for Drupal </li>
<li>running cron for updating drupal from reports/status report </li>
<li>enable/disable Clean URLs to show without/with <code>?q=</code> in the URL(by default is enable – need httpd.conf <strong>mod_rewrite</strong> support on server) </li>
<li>config site information at /admin :&#160; <br /><strong>Site configuration</strong>: default front page,Name, email, slogan, mission,footer       <br /><strong>site building/blocks</strong> – setup layout of the pages       <br /><strong>site building/themes</strong> – theme of drupal and show/hide info.       <br /><strong>Reports</strong>/ <strong>status report</strong> and <strong>log entries</strong>(monitor website errors and usability,did users get the web page they want,what kind of errors they encountered, and their search word) </li>
</ol>
<h2>Managing User </h2>
<h3>Groups User at Drupal at Permission section</h3>
<ol>
<li><font color="#63565f">One Super User (ID=1)</font> </li>
<li><font color="#63565f">Two groups build in – 1 Authenticated 2 Anonymous</font> </li>
<li><font color="#63565f">Add groups you need (User management/roles e.g. Contributing User )</font> </li>
</ol>
<h2>Drupal Security</h2>
<p><strong>backup Drupal</strong> files and MySql database regularly </p>
<p><strong>enable php filter module</strong>; disable php evaluator checkbox, put php code as input format, can not execute php code from user input </p>
<h2>&#160;</h2>
<h2>Create content on Drupal</h2>
<p><strong>Nodes type</strong>: page(static page like contact) ; story(can add comment); blog</p>
<p><strong>Other nodes types</strong>(enable from Module and also set permission for target users to visit) : forum, polls </p>
<p>title ; body(html) ; menu link ; Input format(Full HTML); Revision(create new revision, log message: create page); Comment setting(disabled) ;Publishing option(Published, Promoted on front page-always show on front page)</p>
<p>enable Module : blog and path(allow user to rename URL to repalce “node/3” with “about us”) </p>
<p><strong>taxonomy</strong> : to require user specific category of the article</p>
<h2>Layout of Drupal (by default –3 col Garland theme)</h2>
<p>check <a href="http://www.themegarden.org">www.themegarden.org</a>&#160; for more themes </p>
<p>themes might have: liquid layout , color flexible </p>
<h2>Block of Drupal</h2>
<p>1 add block by enable new module</p>
<p>2 add block by manually add block</p>
<h2>Theme of Drupal config </h2>
<p>put new <strong>download themes</strong>(unzipped) which is not come with drupal installation to site/default/theme (NOTE: themes working version should syn with current version of Drupal on host)</p>
<p><strong>style.css</strong> is the one we should look into,<strong> style-rtl.css</strong> is for the language that read from right to left.</p>
<p>use <strong>Web developer css/edit css</strong> on Firefox to test and edit style.css, make sure you backup the original style.css before you edit it .</p>
<h2>Module of Drupal</h2>
<p>
<ul>Php snippets for Themes customize&#160; </ul>
<p> Read the to be used module’s documentation on drupal.org through before use it.    </p>
<h3>How to setup a new module ?</h3>
<ul>
<li>set read/write rights default folder,unpack downloaded Module to <strong>sites/default/modules</strong></li>
<li><strong>enable the module</strong> in admin/site building/ module ,find it at the end of the page. </li>
<li>config the module, the module sometimes doesn’t work because there are some required conditions like “enable necessary modules” ,set up google analytics account</li>
<p>   <strong></strong></ul>
<h3><strong>Useful Module</strong></h3>
<ul>
<li>CCK </li>
<li>Captcha</li>
<li>FCKeditor</li>
<li>google analytic</li>
<li>content display/ calendar </li>
<li>pathauto 1.1(depend on token module )</li>
<li>Poormanscron (replace the cron application on server if the server does not support cron)</li>
</ul>
<p><font color="#000000"></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=60&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/24/drupal-essential-traininglynda-study-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>
	</item>
		<item>
		<title>web page design standard format</title>
		<link>http://yicao.wordpress.com/2010/08/22/web-page-design-standard-format/</link>
		<comments>http://yicao.wordpress.com/2010/08/22/web-page-design-standard-format/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 23:08:36 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Xhtml&Css&Js]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/22/web-page-design-standard-format/</guid>
		<description><![CDATA[Create Favicon Icon on Browser using PS and Icon workshop to create 16px*16px with 256 color *.ico file &#60;link rel=&#34;shortcut icon&#34; href=&#34;/favicon.ico&#34; type=&#34;image/x-icon&#34; /&#62; HTML Title format website name(company name) – current webpage title/slogan $data['html_title']=&#8216;Band Equity Group &#8211; Band To Fan Marketing&#8217;;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=58&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Create Favicon Icon on Browser</h3>
<ul>
<li>using PS and Icon workshop to create 16px*16px with 256 color *.ico file</li>
<li>&lt;link rel=&quot;shortcut icon&quot; href=&quot;/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt; </li>
<h3>HTML Title format</h3>
<p>website name(company name) – current webpage title/slogan     <br />$data['html_title']=<strong>&#8216;Band Equity Group &#8211; Band To Fan Marketing&#8217;</strong>;</p>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=58&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/22/web-page-design-standard-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Framework with Grid Design</title>
		<link>http://yicao.wordpress.com/2010/08/22/css-framework-with-grid-design/</link>
		<comments>http://yicao.wordpress.com/2010/08/22/css-framework-with-grid-design/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 19:17:29 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Xhtml&Css&Js]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/22/css-framework-with-grid-design/</guid>
		<description><![CDATA[Intro: read these links on CSS GRid Framework first before start which css framework should I use YUI Grids VS Blueprint YUI Grids vs Blueprint 2 YUI YUI’s advantage is “em” based layout YUI has a YUI Grid Builder YUI lacks a Typography CSS that provide an easy way to achieve consistent vertical spacing without [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=55&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Intro:</h2>
<p>read these links on CSS GRid Framework first before start </p>
<p><a href="http://net.tutsplus.com/html-css-techniques/which-css-grid-framework-should-you-use-for-web-design/">which css framework should I use</a></p>
<p><a href="http://foohack.com/2007/08/blueprint-css-framework-vs-yui-grids/">YUI Grids VS Blueprint</a>    <br /><a href="http://spigotdesign.com/design/yui-grids-blueprints-css-frameworks/">YUI Grids vs Blueprint 2</a></p>
<p><strong>YUI</strong>    <br />YUI’s advantage is “em” based layout    <br />YUI has a <a href="http://developer.yahoo.com/yui/grids/builder/">YUI Grid Builder</a>    <br />YUI lacks a Typography CSS that provide an easy way to achieve consistent vertical spacing without resorting to pixed-sized font    <br /><strong>Blueprint</strong>    <br />Blueprint has a <a href="http://bgg.kematzy.com/">Bluepring Grid Css Generator</a> which makes easier for people to setting up a flexible grid system that fits current custom project    <br />Blueprint uses pixels to set sizes for layout.     <br />This makes elasticity not happening.</p>
<p><strong>Easy Solution:</strong></p>
<p>using YUI for most part and employ Blueprint’s forms.css and typography.css</p>
<h2>Why Grid Design?</h2>
<blockquote><p><em>“Virtually any website you design should be based on a grid. Grids lend a sense of structure to your site and improved usability for your visitors. And designing to a grid can simplify your design process and make you a more efficient designer.”</em></p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=55&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/22/css-framework-with-grid-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>
	</item>
		<item>
		<title>CI errors debugging and testing</title>
		<link>http://yicao.wordpress.com/2010/08/22/ci-errors-debugging-and-testing/</link>
		<comments>http://yicao.wordpress.com/2010/08/22/ci-errors-debugging-and-testing/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 15:30:39 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/22/ci-errors-debugging-and-testing/</guid>
		<description><![CDATA[Unable to load the requested class: firephp solution: change file name FirePHP.php to firephp.php &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=52&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Unable to load the requested class: firephp</li>
<p> solution: change file name FirePHP.php to firephp.php</ul>
<p><font color="#63565f">&#160;</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=52&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/22/ci-errors-debugging-and-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>
	</item>
		<item>
		<title>Form Design Structure and Style</title>
		<link>http://yicao.wordpress.com/2010/08/20/form-design-with-css-php-and-codeigniter-framework/</link>
		<comments>http://yicao.wordpress.com/2010/08/20/form-design-with-css-php-and-codeigniter-framework/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 18:53:14 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/20/form-design-with-css-php-and-codeigniter-framework/</guid>
		<description><![CDATA[Form design style gradual background form design fancy form design Form design using fieldset-legend-label structure with ordered list &#34;The beauty of using an ordered list is that it adds an extra level of semantics to the structure of the form, and also makes the form display quite well in the absence of styles.The OL provides [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=36&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Form design style</h3>
<ul>
<li><a href="http://www.alistapart.com/articles/prettyaccessibleforms/">gradual background form design</a> </li>
<li><a href="http://articles.sitepoint.com/article/fancy-form-design-css/4">fancy form design</a> </li>
</ul>
<h3>Form design using fieldset-legend-label structure with ordered list</h3>
<p>&quot;The beauty of using an ordered list is that it adds an extra level of semantics to the structure of the form, and also makes the form display quite well in the absence of styles.The OL provides additional information for some screen readers that announce the number of list-items when they first encounter the list.&quot; </p>
<p>each &lt;input&gt; has a class=&quot;text&quot; type=&quot;text&quot; attribute &#8211; this is a handy way to accessing styling a form element,because IE6 does not support CSS attribute selectors </p>
<p><strong>Naming Form elements</strong></p>
<p><em>If we put Form elements’ name &lt;input name=’firstname’&gt; as the same as the matching field in the database table , this will saves us a lot of time and energy when coding and testing.     <br /></em></p>
<h3>Resources</h3>
<ul>
<li><em><a href="http://www.456bereastreet.com/lab/form_controls/checkboxes/">styled Checkbox displayin different browser</a>&#160; </p>
<p><a href="http://yicao.files.wordpress.com/2010/08/image4.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="25" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb4.png?w=100&#038;h=25" width="100" border="0" /></a> </em></li>
<li><a href="http://blog.ninedays.org/2008/01/03/php-state-drop-down-menu-reusable-code/">USA state dropdown list</a> </li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=36&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/20/form-design-with-css-php-and-codeigniter-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Web design library(form,dashboard..etc.)</title>
		<link>http://yicao.wordpress.com/2010/08/20/web-design-libraryformdashboard-etc/</link>
		<comments>http://yicao.wordpress.com/2010/08/20/web-design-libraryformdashboard-etc/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 16:52:52 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Xhtml&Css&Js]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/20/web-design-libraryformdashboard-etc/</guid>
		<description><![CDATA[Tutorial &#38; experience CSS Message box (error, success, info..etc.) &#160; http://www.jankoatwarpspeed.com/post/2008/05/22/CSS-Message-Boxes-for-different-message-types.aspx Resources General all kinds of web patterns http://www.welie.com/patterns/ Button &#38; Toolbar Icon 1 Knobs toolbar icon &#160; http://itweek.deviantart.com/art/Knob-Buttons-Toolbar-icons-73463960 &#160; Dashboard http://dashboardspy.com/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=33&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Tutorial &amp; experience</h3>
<ul>
<li>CSS Message box (error, success, info..etc.)     <br /><a href="http://yicao.files.wordpress.com/2010/08/image3.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="26" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb3.png?w=244&#038;h=26" width="244" border="0" /></a>&#160; <br /><a title="http://www.jankoatwarpspeed.com/post/2008/05/22/CSS-Message-Boxes-for-different-message-types.aspx" href="http://www.jankoatwarpspeed.com/post/2008/05/22/CSS-Message-Boxes-for-different-message-types.aspx">http://www.jankoatwarpspeed.com/post/2008/05/22/CSS-Message-Boxes-for-different-message-types.aspx</a></li>
</ul>
<h3>Resources</h3>
<p><strong>General all kinds of web patterns</strong> </p>
<p><a title="http://www.welie.com/patterns/" href="http://www.welie.com/patterns/">http://www.welie.com/patterns/</a></p>
<p><strong>Button &amp; Toolbar Icon</strong>    <br />1 Knobs toolbar icon    <br /><a href="http://yicao.files.wordpress.com/2010/08/image2.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="165" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb2.png?w=244&#038;h=165" width="244" border="0" /></a>&#160; <br /><a title="http://itweek.deviantart.com/art/Knob-Buttons-Toolbar-icons-73463960" href="http://itweek.deviantart.com/art/Knob-Buttons-Toolbar-icons-73463960">http://itweek.deviantart.com/art/Knob-Buttons-Toolbar-icons-73463960</a></p>
<p>&#160;</p>
<p><strong>Dashboard</strong></p>
<p><a title="http://dashboardspy.com/" href="http://dashboardspy.com/">http://dashboardspy.com/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=33&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/20/web-design-libraryformdashboard-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>form validation at CI server side(PHP)</title>
		<link>http://yicao.wordpress.com/2010/08/19/ci-form-validation-with-jquery/</link>
		<comments>http://yicao.wordpress.com/2010/08/19/ci-form-validation-with-jquery/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 01:42:19 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Php&CI]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/19/ci-form-validation-with-jquery/</guid>
		<description><![CDATA[Good logical validation coding articles before starting repopulating form on failed validation CI form enhancement MY_form_helper.php adding to helper,it can help with setting already input values when coming back to form after processing an error input submit MY_form_helper CI&#8217;s form validation add valid_url check to form_validation in CI $rules['username'] = &#34;required&#124;min_length[5]&#124;max_length[12]&#34;; $rules['password'] = &#34;required&#124;matches[passconf]&#34;; $rules['passconf'] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=28&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Good logical validation coding articles before starting </h3>
<p> <a href="http://stackoverflow.com/questions/1973802/codeigniter-re-populating-form-on-failed-validation-after-submitting">repopulating form on failed validation</a><br />
<h3>CI form enhancement MY_form_helper.php adding to helper,it can help with setting already input values when coming back to form after processing an error input submit</h3>
<p> <a href="http://codeigniter.com/wiki/MY_form_helper/">MY_form_helper</a><br />
<h3>CI&#8217;s form validation </h3>
<p> <a href="http://codeigniter.com/forums/viewthread/111319/">add valid_url check to form_validation in CI</a>
<pre>$rules['username'] = &quot;required|min_length[5]|max_length[12]&quot;;
$rules['password'] = &quot;required|matches[passconf]&quot;;
$rules['passconf'] = &quot;required&quot;;
$rules['email'] = &quot;required|valid_email&quot;;</pre>
<h3>how to use CI&#8217;s session flashdata</h3>
<p>CI&#8217;s flashdata in session library &#8211;CodeIgniter supports &quot;flashdata&quot;, or session data that will only be available for the next server request, and are then automatically cleared. These can be very useful, and are typically used for informational or status messages </p>
<pre>$this-&gt;session-&gt;set_flashdata('status', 'adding band info successfully.');//set flashdata in controller
redirect('gelist/result','refresh');

//in view files show flashdata('status')
echo $this-&gt;session-&gt;flashdata('status');</pre>
<p><a href="http://godbit.com/article/codeigniter-session-class">read this article for more details</a></p>
<p><strong>Adding the following code to enhance the user experience of the from</strong> when inputting some wrong data, the input field background will be highlighted.</p>
<p><a href="http://yicao.files.wordpress.com/2010/08/image1.png"><img title="image" style="display:inline;border-width:0;" height="71" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb1.png?w=374&#038;h=71" width="374" border="0" /></a> </p>
<p><strong>adding following code to helper/MY_form_helper.php</strong></p>
<div>
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">if</span>(! function_exists(<span style="color:#006080;">'form_error_exist'</span>))</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">function</span> form_error_exist($field)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>         <span style="color:#0000ff;">if</span> (FALSE === ($OBJ =&amp; _get_validation_object()))</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>                 <span style="color:#0000ff;">return</span> <span style="color:#006080;">''</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>         }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>        <span style="color:#0000ff;">return</span> $OBJ-&gt;error_field_exist($field);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> }</pre>
</p></div>
</div>
<p><strong>adding following code to libraries/MY_Form_validation.php</strong></p>
<div>
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">function</span> error_field_exist($field){</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>             <span style="color:#0000ff;">if</span>(isset($<span style="color:#0000ff;">this</span>-&gt;_field_data[$field][<span style="color:#006080;">'error'</span>]) &amp;&amp; $<span style="color:#0000ff;">this</span>-&gt;_field_data[$field][<span style="color:#006080;">'error'</span>] != <span style="color:#006080;">''</span>)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>             {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>                 <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">true</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>             }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>             <span style="color:#0000ff;">else</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>             {<span style="color:#0000ff;">return</span> <span style="color:#0000ff;">false</span>;}</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> }</pre>
</p></div>
</div>
<p>&#160;</p>
<p><strong>redirect web page (after successful process of saving)</strong></p>
<p>0 theory <a href="http://www.stevenhargrove.com/redirect-web-pages/">how to redirect web page(no meta,no js)</a></p>
<p>1 adding following code to helper/MY_url_helper.php</p>
<div>
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">if</span> (!function_exists(<span style="color:#006080;">'redirect'</span>)) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>   <span style="color:#0000ff;">function</span> redirect($uri = <span style="color:#006080;">''</span>, $method = <span style="color:#006080;">'location'</span>, $http_response_code = 302, $time=0) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     <span style="color:#0000ff;">switch</span> ($method) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>       <span style="color:#0000ff;">case</span> <span style="color:#006080;">'refresh'</span> : header(<span style="color:#006080;">&quot;Refresh:$time;url=&quot;</span> . site_url($uri));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>         <span style="color:#0000ff;">break</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>       <span style="color:#0000ff;">default</span> : header(<span style="color:#006080;">&quot;Location: &quot;</span> . site_url($uri), TRUE, $http_response_code);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>         <span style="color:#0000ff;">break</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     exit;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> }</pre>
</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=28&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/19/ci-form-validation-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql datatable design basics</title>
		<link>http://yicao.wordpress.com/2010/08/18/mysql-datatable-design-basics/</link>
		<comments>http://yicao.wordpress.com/2010/08/18/mysql-datatable-design-basics/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 18:19:29 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Php&CI]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/18/mysql-datatable-design-basics/</guid>
		<description><![CDATA[sql query and cuid(create,update,insert,delete) quick mastering SQL basics use Navicat for Mysql can make datatable management a lot easier example of a person contact table in Navicat common table fields id -(int,auto increment,length-11,not null,primary key ) name -(varchar, length-75,not null,) website url &#8211; (varchar,length-150) date -(date,not null)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=21&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h5>sql query and cuid(create,update,insert,delete) quick mastering</h5>
<p> <a href="http://www.w3schools.com/sql/sql_insert.asp">SQL basics</a>
<p style="font-weight:bold;">use Navicat for Mysql can make datatable management a lot easier </p>
<p>example of a person contact table in Navicat    <br /><a href="http://yicao.files.wordpress.com/2010/08/image.png"><img title="image" style="display:inline;border-width:0;" height="201" alt="image" src="http://yicao.files.wordpress.com/2010/08/image_thumb.png?w=480&#038;h=201" width="480" border="0" /></a></p>
<h3>common table fields</h3>
<ul>
<li>id -(int,auto increment,length-11,not null,primary key ) </li>
<li>name -(varchar, length-75,not null,) </li>
<li>website url &#8211; (varchar,length-150) </li>
<li>date -(date,not null) </li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=21&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/18/mysql-datatable-design-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>

		<media:content url="http://yicao.files.wordpress.com/2010/08/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>CI web project configuration &amp; prep</title>
		<link>http://yicao.wordpress.com/2010/08/18/ci-web-project-configration/</link>
		<comments>http://yicao.wordpress.com/2010/08/18/ci-web-project-configration/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 07:23:04 +0000</pubDate>
		<dc:creator>yicao</dc:creator>
				<category><![CDATA[Php&CI]]></category>

		<guid isPermaLink="false">https://yicao.wordpress.com/2010/08/18/ci-web-project-configration/</guid>
		<description><![CDATA[CI config manual setting before update to host Mod rewrite How to remove index.php from Codeigniter URL @.htaccess change &#8216;RewriteBase /beg/&#8217; to &#8216;RewriteBase /&#8217; when updated to host after days of searching,this is the one that I found truly works adding an extra line to .htaccess, so following files are not going to use CI’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=18&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h5>CI config manual setting before update to host</h5>
<ul>
<li><strong>Mod rewrite</strong> <a href="http://codeigniter.com/wiki/mod_rewrite/">How to remove index.php from Codeigniter URL</a>       <br />@.htaccess change &#8216;RewriteBase /beg/&#8217; to &#8216;RewriteBase /&#8217; when updated to host       <br />after days of searching,this is the one that I found truly works       </p>
<p>adding an extra line to .htaccess, so following files are not going to use CI’s route structure and can be visited from your view files directly       <br /> 
<div>
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> RewriteCond $1 !^(index\.php|images|img|temp|download|css|js|captcha|CVS|robots\.txt|favicon\.ico)</pre>
</p></div>
</p></div>
<p>    <font color="#63565f"></font></li>
<li><strong>base_url()</strong> $config['base_url'] = &quot;http://localhost/beg/&quot;
<p><strong>index_page()</strong> $config['index_page'] = &quot;index.php&quot;; </p>
<p>@application/config/config.php </li>
<li><strong>default controller</strong> $route['default_controller'] = &quot;main&quot;; @application/config/routes.php </li>
<li><strong>autoload libraries,helper and plugin</strong>
<p>$autoload['libraries'] = array(&#8216;database&#8217;,'email&#8217;,'form_validation&#8217;,'session&#8217;);//&#8217;unit_test&#8217; </p>
<p>$autoload['helper'] = array(&#8216;url&#8217;,'form&#8217;,'text&#8217;,'date&#8217;,'security&#8217;); </p>
<p>@application/config/autoload.php </li>
<li><strong>database connection</strong>
<p>$db['default']['hostname'] = &quot;localhost&quot;; </p>
<p>$db['default']['username'] = &quot;root&quot;; </p>
<p>$db['default']['password'] = &quot;&quot;; $db['default']['database'] = &quot;lifebegin&quot;; </p>
<p>@application/config/database.php </li>
<li><strong>firephp debugging enabled/disabled</strong> $config['fireignition_enabled'] = TRUE;
<p>@application/config/fireignition.php </li>
</ul>
<h5>a must read before hands-on coding</h5>
<p><a href="http://www.rendervault.com/2008/08/01/codeigniter-best-practices-controller/">CI codeing best practice</a> </p>
<h5>turns off PHP &quot;notice Undefined index&quot;</h5>
<p>this error is caused because using $_POST['midname'] which might not be filled by user.<br />
  <br /><span style="color:red;">solution:</span> 1 isset($_POST['midname']){}; 2 turn off error_reporting =E_ALL &amp; ~E_NOTICE or adding this line to your php page </p>
<p>&lt;?php error_reporting (E_ALL ^ E_NOTICE); ?&gt;</p>
<p><strong>use absolute url as href attrbute inside the view pages</strong></p>
<p>&lt;link href=&quot;&lt;?php echo base_url();?&gt;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;</p>
<p><strong>redirect 3s delay function/custom (MY_url_helper.php)</strong></p>
<div>
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#039;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;?php   redirect(<span style="color:#006080;">''</span>, <span style="color:#006080;">'refresh'</span>, <span style="color:#006080;">''</span>, <span style="color:#006080;">'3'</span>);//3s delay?&gt;</pre>
</p></div>
<p>  <a title="http://codeigniter.com/forums/viewthread/86374/" href="http://codeigniter.com/forums/viewthread/86374/">http://codeigniter.com/forums/viewthread/86374/</a></div>
<p>&#160;</p>
<h3>Upload your CI website to hosting server (Godaddy)</h3>
<ul>
<li>setup MySqlDatabase on your hosting account </li>
<li>after uploading your CI website ,you need to wait at least 1 hour for Godaddy to refresh your site’s .htaccess file<br />
    <br /><a href="http://zacvineyard.com/blog/2008/10/24/wordpress-godaddy-and-permalinks/comment-page-1/#comment-832">does godaddy ecnomic hosting support mod_rewrite , CI and WordPress?</a> </p>
<p><a href="http://www.cyphercoretech.com/article/view/getting-codeigniter-to-work-with-godaddy/20090604084455-9149">get CI to work with godaddy</a> </p>
<p><em><br />
      <br />the following one really works for my <a href="http://www.bandequitygroup.com/">Project</a> on godday 100% sure</p>
<p></em><a href="http://anon83.wordpress.com/2007/12/11/codeigniter-vs-godaddy-problems/">CI on Godaddy excluding index.php?</a></p>
</li>
<li>disable firephp debugging option in config/fireignition<br />
    <br />$config['fireignition_enabled'] = false; </li>
<li>change your local mysql connection to remote server Mysql in config/database.php </li>
<li>change your base_url in config/config.php<br />
    <br />$config['base_url']&#160;&#160;&#160; = <a href="http://example.com/">http://example.com/</a>; </p>
<p>$config['uri_protocol']&#160;&#160;&#160; = &quot;QUERY_STRING&quot;;//default AUTO </li>
<li>delete php.in file on the server root or change the content to php5.ini </li>
<li>after all these setting ,you just need patience and wait for 1hour for the godaddy to refresh all the settings on your web pages<br />
    </li>
</ul>
<ul></ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yicao.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yicao.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yicao.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yicao.wordpress.com&amp;blog=8628003&amp;post=18&amp;subd=yicao&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yicao.wordpress.com/2010/08/18/ci-web-project-configration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bafd3233ee3cc00a02609e8d7e66ff22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yicao</media:title>
		</media:content>
	</item>
	</channel>
</rss>
