| 123456789101112131415161718192021222324 | 
							- <?php defined('BASEPATH') OR exit('No direct script access allowed');
 
- class Choice extends Start_Controller {
 
- 	public function __construct(){
 
- 		parent::__construct();
 
- 	}
 
- 	//定义方法的调用规则 获取URI第二段值
 
-     public function _remap($arg,$arg_array)
 
-     {
 
- 		 if($arg == 'Choices')
 
-         {
 
-              $this->_Choices($arg_array);
 
-         }
 
- 		else
 
-         {
 
-              $this->_Choice($arg);
 
-         }
 
-     }
 
- 	public function _Choice($arg)//查找重复
 
- 	{
 
- 		$this->data['arg'] = $arg;
 
- 		$this->_Template('choice',$this->data);
 
- 	}
 
- }
 
 
  |