codeigniter Controller pass parameter route Function

codeigniter Controller pass parameter route Function

In this Post We Will Explain About is codeigniter Controller pass parameter route Function With Example and Demo.

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Codeigniter controller function And parameters Example

In this post we will show you Best way to implement Codeigniter controller function And parameters Example, hear for How to Codeigniter controller function And parameters with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

<?php
defined('BASEPATH') OR exit('here No direct any script you access allowed');

class personal extends CI_Controller {
function index(){

echo "Welcome to Pakainfo.com index function."; 

}

function live_profile(){
 echo "Welcome to live_profile function";
}

function message($uid=null,$username=null){
   echo "uid: ". $uid."<br>";
   echo "username: ". $username."<br>";
}
}   
?>       

In this post Codeigniter simple controller function with parameters The codeigniter simple controller contains the function inside it. as well as The simple all the parameters List passed in url more along with function name are quicly directly received all the data inside the function.

Also Read :  Pagination with jQuery Ajax PHP and MySQL

1. Call index() function using Codeigniter :

https://pakainfo.com/personal/index

2. Call live_profile() function using Codeigniter :

https://pakainfo.com/personal/live_profile

3. Call message() function with parameters using Codeigniter

commnts($id = null, $name = null)

https://pakainfo.com/personal/message/9/john

Example

I hope you have Got codeigniter Controller pass parameter route Function And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Recommended For You.

How to Add Google AdSense Code in Website or blog
How to Add Google AdSense Code in Website or blog In this Post We Will Explain About is How to Add