<?php
if (!defined('BASEPATH', ''))
exit('no direct script access allowed');
class Hello extends CI_Controller {
public function index() {
echo "this is my index function";
}
public function one() {
$this->load->view('one');
}
}
?>
我codeIgniter.First的新用戶我下載代碼點火器軟件,然後將它放在XAMPP/htdocs.Then我創建一個簡單的笨代碼顯示在此above.I唐「T明白的地方這串代碼是save.I這段代碼保存在Codeignitor/appilication.but它給我下面的回答:瞭解基本笨
沒有直接的腳本允許訪問
是什麼fault.please幫我任何人。
閱讀文檔這裏http://ellislab.com/codeigniter/user-guide/general/controllers.html –