Javatpoint Logo
Javatpoint Logo

Passing Parameters in CodeIgniter

Now we'll see an example to pass parameters from controller to view.

1) Download CodeIgniter and name it. We have named it as params.

2) Create a file para.php in application/controllers folder.

3) Create a file para_view.php in application/views folder.

4) Run the program on your browser with URL

http://localhost/params/index.php/para/tut

5) Following output will appear on the screen.

Codeigniter Passing parameters in codeigniter 1
Next TopicCodeIgniter Driver





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA