Home  >  Article  >  Backend Development  >  CodeIgniter超链接传递参数,该如何处理

CodeIgniter超链接传递参数,该如何处理

WBOY
WBOYOriginal
2016-06-13 13:44:44953browse

CodeIgniter超链接传递参数
CodeIgniter框架中,超链接如何传递参数,以及获得这个参数?
?????

------解决方案--------------------
默认情况下是这样传递的:
http://localhost/index.php/controllerName/methodName/parameter1/parameter2

对应的controller.php

PHP code

class controllerName extends controller{
  //methods.....
  public function methodName($paremeter1,parameter2){
    
  }
} <div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn