CodeIgniter

PHP

CodeIgniter 在 Server 上無法正確執行 Cron Job

狀況 使用 cron job 執行 CodeIgniter 的檔案, 總是跑出 default controller 的內容。 官方文件的 cli 使用方式: $ php /CI路徑/index.php controller名稱 funct...
PHP

CodeIgniter中helper與library的差異

前言 最近使用CodeIgniter開發時, 發現不同controller中會用到同一支function, 難道每個controller都要加入這支function嗎── 當然不是。