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

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

WBOY
Release: 2016-06-13 10:04:36
Original
922 people have browsed it

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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template