Skip to content

Tag: codeigniter

CSS not applying if using PHP

I am using codeigniter and any data that is within the for loop doesn’t have the CSS applied. The file is pointed correctly as all the other css works fine, however I can’t find a solution to this anywhere HTML : CSS (I haven’t included all the css just the parts within the loop as my css fi…

CodeIgniter count too slow – pagination

I’m trying to make a search using CodeIgniter faster. I use the pagination library and I have to count the records returned from the query on a table which contains more than 1.2 million records. The num_rows() function is very slow ( takes approximately 3 seconds ) Any solutions? Answer As the comments…

How to rewrite url with htaccess?

I have to build up a bank search website. I want to rewrite url like below link bank Please see above link. In this when you select bank and all details the url is also changing. I want to use same url in codeigniter website which is the replica of this site. But all of you knows that codeigniter work

Codeigniter 3 redirection adds index.php to every redirect

this is a function in my controller function is deleting properly my record but it redirects the user to which gives me error 404 my .htaccess is like this: i have set the index_page in config.php Answer Removing the index.php file in Codeigniter By default, the index.php file will be included in your URLs: I…