Choice.php 575 B

123456789101112131415161718192021222324
  1. <?php defined('BASEPATH') OR exit('No direct script access allowed');
  2. class Choice extends Start_Controller {
  3. public function __construct(){
  4. parent::__construct();
  5. }
  6. //定义方法的调用规则 获取URI第二段值
  7. public function _remap($arg,$arg_array)
  8. {
  9. if($arg == 'Choices')
  10. {
  11. $this->_Choices($arg_array);
  12. }
  13. else
  14. {
  15. $this->_Choice($arg);
  16. }
  17. }
  18. public function _Choice($arg)//查找重复
  19. {
  20. $this->data['arg'] = $arg;
  21. $this->_Template('choice',$this->data);
  22. }
  23. }