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
$this->router->fetch_class(); // class = controller $this->router->fetch_method(); // action = method