<?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/"
	>

<channel>
	<title>遨遊飛翔 &#187; CodeIgniter</title>
	<atom:link href="http://blog.shian.tw/tag/codeigniter/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.shian.tw</link>
	<description>學習筆記 For php、jQuery、MySql、Centos、Suse、Server、CodeIgniter</description>
	<lastBuildDate>Sun, 09 Oct 2011 16:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.shian.tw/?pushpress=hub'/>
		<item>
		<title>CodeIgniter Facebook Librarie</title>
		<link>http://blog.shian.tw/codeigniter-facebook-librarie.html</link>
		<comments>http://blog.shian.tw/codeigniter-facebook-librarie.html#comments</comments>
		<pubDate>Sun, 12 Dec 2010 16:00:02 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Facebook-api]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=754</guid>
		<description><![CDATA[Facebook Connect librarie 是將Facebook-api程式與CodeIgniter整合在一起的簡單程式，快速及簡單在CodeIgniter裡面使用Facebook提供api的程式。 準備 1. facebook api 2. fb_connect 建立設定檔 application/config/facebook.php ?View Code PHP1 2 3 &#60;?php $config&#91;'facebook_api_key'&#93; = 'your_facebook_api_key'; $config&#91;'facebook_secret_key'&#93; = 'your_facebook_secret_key'; Facebook API 下載Facebook-API放置下面目錄 application/libraries/facebook/facebook.php fb_connect.php 下載fb_connect.php放置下面目錄 application/libraries/fb_connect.php Demo ?View Code PHP1 2 3 4 5 6 &#8230; <a href="http://blog.shian.tw/codeigniter-facebook-librarie.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-facebook-librarie.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Codeigniter Compress HTML</title>
		<link>http://blog.shian.tw/codeigniter-compress-html.html</link>
		<comments>http://blog.shian.tw/codeigniter-compress-html.html#comments</comments>
		<pubDate>Sun, 05 Dec 2010 16:00:41 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=748</guid>
		<description><![CDATA[Compress HTML 主要是將空白、斷行、註解去掉後，進而減少html的大小並減少讀取網頁的時間，Compress HTML output with CodeIgniter 這篇則是在CodeIgniter使用hook來達成 Compress HTML 效果。 啟用hooks application/config/config.php ?View Code PHP1 $config&#91;'enable_hooks'&#93; = TRUE; 宣告hooks application/config/hooks.php ?View Code PHP1 2 3 4 5 6 7 // compress output $hook&#91;'display_override'&#93;&#91;&#93; = array&#40; 'class' =&#62; '', 'function' &#8230; <a href="http://blog.shian.tw/codeigniter-compress-html.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-compress-html.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CodeIgniter QUERY STRING GET</title>
		<link>http://blog.shian.tw/codeigniter-query-string-get.html</link>
		<comments>http://blog.shian.tw/codeigniter-query-string-get.html#comments</comments>
		<pubDate>Sun, 07 Nov 2010 16:00:51 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=723</guid>
		<description><![CDATA[CodeIgniter 本身不允許使用GET的方式取值，但是會有一些情況必須要用GET的方式來取值，而且有時我們會需要自帶GET的參數進去，使用原本的CodeIgniter方式實在是不好用，在討論區看到外國人寫的解決方式，很符合我要的需求，而且也很簡單使用。 需求 ?View Code HTML1 2 3 4 http://xxx.com/?page=1&#38;query=xxxx http://xxx.com/controller?page=1&#38;query=xxxx http://xxx.com/controller/method?page=1&#38;query=xxxx http://xxx.com/controller/method/?page=1&#38;query=xxxx MY_URI 將下面的程式存放在application/libraries/MY_URI.php ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 &#8230; <a href="http://blog.shian.tw/codeigniter-query-string-get.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-query-string-get.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeigniter captcha</title>
		<link>http://blog.shian.tw/codeigniter-captcha.html</link>
		<comments>http://blog.shian.tw/codeigniter-captcha.html#comments</comments>
		<pubDate>Sun, 29 Aug 2010 16:00:57 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=645</guid>
		<description><![CDATA[captcha 是現在防止機器人最常用的一種防止方式，而且現在很多都有提供class可以使用，本篇將實作cool-php-captcha和Captcha Numbers V2.1這二套captcha，並且使用的是Codeigniter framework。 .htaccess 將_images目錄排除rewrite ?View Code PHP1 2 3 RewriteEngine on RewriteCond $1 !^&#40;index.php&#124;_images&#124;_css&#124;_js&#124;robots.txt&#41; RewriteRule ^&#40;.*&#41;$ /index.php/$1 &#91;L&#93; cool-php-captcha 1. 下載 cool-php-captcha-0.3.zip 2. 解壓縮放置_images目錄下 3. 在view檔案裡面放置captcha images ?View Code PHP1 &#60;img src=&#34;&#60;?=base_url()?&#62;_images/cool-php-captcha-0.3/captcha.php&#34;&#62; Captcha Numbers V2.1 1. 下載 &#8230; <a href="http://blog.shian.tw/codeigniter-captcha.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-captcha.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter Memcached</title>
		<link>http://blog.shian.tw/codeigniter-memcached.html</link>
		<comments>http://blog.shian.tw/codeigniter-memcached.html#comments</comments>
		<pubDate>Sun, 20 Jun 2010 16:00:35 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=618</guid>
		<description><![CDATA[之前介紹過Memcached安裝及使用，現在如果要在CodeIgniter上使用Memcached，可以透過已經寫好的Library來快速簡單的使用。雖然一樣可以在 CodeIgniter 裡面直接寫對memcacheh操作，但是沒來的靈活及方便使用，也可以減少寫相同的東西，而且也將設定寫在config裡面，之後要修改位置也很快速及方便。 準備 下載 Memcached-Library 分別把 memcached.php、memcached_library.php放置 confilg、libraries目錄裡 修改 /config/memcached.php ?View Code PHP1 2 3 4 5 6 7 8 $memcached&#91;'servers'&#93; = array&#40; 'server_name' =&#62; array&#40; 'host' =&#62; 'localhot', 'port' =&#62; '11211', 'weight' =&#62; '1', 'persistent' =&#62; FALSE, &#41;, &#8230; <a href="http://blog.shian.tw/codeigniter-memcached.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-memcached.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CodeIgniter Cron</title>
		<link>http://blog.shian.tw/codeigniter-cron.html</link>
		<comments>http://blog.shian.tw/codeigniter-cron.html#comments</comments>
		<pubDate>Sun, 13 Jun 2010 16:00:05 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=614</guid>
		<description><![CDATA[當使用CodeIgniter開發web時，如需要用到cron排程定時去執行某php功能時，Cron job bootstrapper提供cron.php，透過這隻cron.php可以很簡單的在console下運作 CodeIgniter 所開發的功能。 準備 File:cron-1.1.zip 設置 將解壓縮後的cron.php放置專案目錄裡，並給予執行權限 ?View Code BASH1 chmod +x cron.php 修改 修改cron.php ?View Code PHP1 define&#40;'CRON_CI_INDEX', '專案目錄的index.php'&#41;; // Your CodeIgniter main index.php file 運行 ?View Code BASH1 ./cron.php --run=/controller/method 參數 ?View Code TEXT1 2 3 &#8230; <a href="http://blog.shian.tw/codeigniter-cron.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-cron.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter Curl library</title>
		<link>http://blog.shian.tw/codeigniter-curl-library.html</link>
		<comments>http://blog.shian.tw/codeigniter-curl-library.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 16:00:12 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=364</guid>
		<description><![CDATA[CodeIgniter Curl library 是將php的curl function 寫成一個library方便於在 CodeIgniter 上使用，雖然可以直接在CodeIgniter裡面寫curl function，但是Curl library已經打包好了不需要重覆寫相同的程式，另外後面是以登入plurk為範例，所以必須先取得 plurk api key喔! 準備 1. 下載 curl libraries 並放置 libraries 資料夾裡 2. 設定自動載入 curl libraries ?View Code PHP // 修改 config/autoload.php $autoload&#91;'libraries'&#93; = array&#40;'curl'&#41;; 範例 一 登入 PLURK ?View Code &#8230; <a href="http://blog.shian.tw/codeigniter-curl-library.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-curl-library.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter delicious api</title>
		<link>http://blog.shian.tw/codeigniter-delicious-api.html</link>
		<comments>http://blog.shian.tw/codeigniter-delicious-api.html#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:00:58 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=390</guid>
		<description><![CDATA[delicious是一個線上版的社群書籤網站，它也提供了api 出來讓開發者進行串接，PhpDelicious 這個libraries已經將delicious api 打包好了，可以透過PhpDeliciou很快的進行 delicious api 串接，接下來我們將在 CodeIgniter 裡面使用PhpDeliciou 這個libraries。 準備 1. 下載 PhpDelicious 2. 將 cache.inc.php, php-delicious.inc.php, xmlparser.inc.php 放置 libraries/delicious/ 裡面 使用 ?View Code PHPdefine&#40;'DELICIOUS_USER', 'xxx'&#41;; // 帳號 define&#40;'DELICIOUS_PASS', 'xxx'&#41;; // 密碼 define&#40;'CACHE_PATH', '/tmp/'&#41;; // cache位置 $this-&#62;load-&#62;file&#40;'libraries/delicious/php-delicious.inc.php'&#41;; $oDelicious &#8230; <a href="http://blog.shian.tw/codeigniter-delicious-api.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-delicious-api.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CodeIgniter layout</title>
		<link>http://blog.shian.tw/codeigniter-layout.html</link>
		<comments>http://blog.shian.tw/codeigniter-layout.html#comments</comments>
		<pubDate>Sun, 14 Mar 2010 22:00:00 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/codeigniter-layout.html</guid>
		<description><![CDATA[Codelgniter layout 就像是版型(templet)的概念，通常會變動的地方只有一塊，但是每一頁都要寫同樣的東西像是header or footer or menu 之類的，此時可以運用版型(templet)的概念，套上版型(templet)後只需要針對變動的區塊進行開發，可以省下不少時間。 安裝 1. Layout.php 至 http://codeigniter.com/wiki/layout_library/ 將 Source內容存至 /application/libraries/Layout.php 2. 設定自動載入 layout library ?View Code PHP1 2 // 修改 /application/config/autoload.php $autoload&#91;'libraries'&#93; = array&#40;‘layout’&#41;; 3. 新增layout(templet)檔案 ?View Code PHP1 2 3 4 create /application/views/layout_main.php &#8230; <a href="http://blog.shian.tw/codeigniter-layout.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-layout.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter HMVC</title>
		<link>http://blog.shian.tw/codeigniter-hmvc.html</link>
		<comments>http://blog.shian.tw/codeigniter-hmvc.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 13:56:17 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=353</guid>
		<description><![CDATA[CodeIgniter 本身就有MVC架構，但是如果當想要在不同的地方載入同樣的模組，這時候CodeIgniter HMVC 就是因應這種情況而產生的，在HMVC裡的Module裡有自己的controllers和views，完全不會跟原本的架構有互相衝突。 安裝: 1. 下載 hmvc 檔案 2. 解壓縮至 libraries 資料夾下 3. 修改 config/autoload.php 增加自動載入類別 $autoload['libraries'] = array(&#8216;modules&#8217;); 4. 建立 modules 資料夾 增加模組: (以test為例) 1. 建立 modules/test/controllers 及 modules/test/views 目錄 2. 增加 modules/test/controllers/test.php 及 modules/test/views/test.php controller 跟view檔案 載入模組: 在輸出頁(view/welcome_message.php)要載入模組地方寫入 &#8230; <a href="http://blog.shian.tw/codeigniter-hmvc.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-hmvc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter 設定個人首頁</title>
		<link>http://blog.shian.tw/codeigniter-portal-user.html</link>
		<comments>http://blog.shian.tw/codeigniter-portal-user.html#comments</comments>
		<pubDate>Sun, 31 May 2009 16:00:15 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=321</guid>
		<description><![CDATA[這個是使用CodeIgniter的 URI 路由 以及 URI 类 來達成依不同使用者有自己的首頁。 設定 假設網址為：http://www.shian.tw/user/shian 修改 application/config/routes.php ?View Code PHP1 2 //將任何的名稱的 function 都重導至自定義的 index $route&#91;'user/&#60;strong&#62;:any'&#60;/strong&#62;&#93; = &#34;user/index&#34;; 增加 application/controllers/user.php ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 class User &#8230; <a href="http://blog.shian.tw/codeigniter-portal-user.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-portal-user.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter 多個專案目錄配置</title>
		<link>http://blog.shian.tw/codeigniter-project.html</link>
		<comments>http://blog.shian.tw/codeigniter-project.html#comments</comments>
		<pubDate>Sun, 24 May 2009 16:00:36 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=316</guid>
		<description><![CDATA[CodeIgniter 預設可以設定多個專案目錄配置，但是它的配置方式跟我想要的不太一樣，我想配置的結構如下面的 目錄結構，CodeIgniter 核心就一個目錄位置，每個專案都有它自己的目錄、index.php、.htacess、以及自己的application目錄，所以改以下面這方式來重新配置 CodeIgniter 專案。 目錄結構 ?View Code TEXT1 2 3 4 5 6 7 8 9 10 11 [www/] [system/] [CodeIgniter 核心目錄] [project_1/] [CodeIgniter預設的application目錄] .htacess index.php [project_2/] [CodeIgniter預設的application目錄] .htacess index.php 修改 index.php 找到 $system_folder = "system"; 修改 $system_folder &#8230; <a href="http://blog.shian.tw/codeigniter-project.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/codeigniter-project.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

