Fetch Data From Database In Descending In CodeIgniter
To fetch data in descending order from the database in CodeIgniter you need to use the order_by() along with get() method. Below is the sample
To fetch data in descending order from the database in CodeIgniter you need to use the order_by() along with get() method. Below is the sample
RewriteEngine On #This bit rewrites your host name to include www RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC,L] #This bit does the codeigniter magic
$ci =& get_instance(); // instance of the CI super variable $ci->router->fetch_class(); // for controller name $ci->router->fetch_method(); // for method name I hope you like this
Using the below methods you get controllers and action names in the CodeIgniter. You can access with below since the above methods are deprecated. I