![]() |
Question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Question (/showthread.php?tid=2258) |
Question - El Forum - 07-25-2007 [eluser]Unknown[/eluser] I starting coding on CodeIgniter framework. My first project is change language page. -This is my code in View folder: Language_view.php: <html> <head> <title>Language</title> <meta http-equiv="Content_Type" content="text/html; charset=utf-8"> </head> <body> <p><?=anchor("hello/show_vietnam","vietnam");?> / <?=anchor("hello/show_english","English");?></p> <?php echo $langue ?> </body> </html> -This is my code in Controller folder: hello.php : <?php Class Hello extends Controller { function Hello() { Parent::Controller(); $this->load->helpers('url'); //$this->load->view('langguagechange'); } function index() { //$this->load->view('langguagechange'); $data['langue']=''; $this->load->view('languageView',$data); } function show_vietnam() { $this->lang->load('Hello', 'VietNam'); $data['langue']=$this->lang->line('chao'); $this->load->view('languageView',$data); } function show_english() { $this->lang->load('Hello', 'English'); $data['langue']=$this->lang->line('chao'); $this->load->view('languageView',$data); } } - and i identified two language in Language folder. Ưhen page Language_view.php is load at first time and i click a link(exp: VietNam) and Chao will show on page. But when i click another link or click old link again, "HTTP 404 - File not found" is show.Please help me to solve this problem. |