Tag Archives: CodeIgniter

Best CodeIgniter Web Hosting

Best CodeIgniter Web Hosting

Unlike other PHP frameworks, CodeIgniter has a very light footprint and is more flexible in terms of web hosting requirements. As a result, CodeIgniter allows you to run off pretty much any standard PHP hosting package (running off either Linux or Windows). The only thing that you should consider is then your own site’s traffic [...]

Continue reading...

How To Customise URLs and Create SEO-Friendly URLs in CodeIgniter

How To Customise URLs and Create SEO-Friendly URLs in CodeIgniter

CodeIgniter, the PHP framework, allows for URL customization so that the URLs are more friendly to search engines. As a rule of thumb when you deal with URLs, it is best to avoid long URLs. To shorten your CodeIgniter URLs, for e.g. changing the default controller/method format in the URLs to just reflect the method [...]

Continue reading...

Difference Between Row, Result, and Result_array in CodeIgniter

Difference Between Row, Result, and Result_array in CodeIgniter

There are 3 methods that allow you to retrieve data from a database within CodeIgniter: row(), result(), and result_array(). However, there’s a difference as to how you should reference the values that you obtain with these methods, as row() and result() return objects, but result_array() returns an array. Here’s a typical example of how you [...]

Continue reading...

How To Load CSS Files in CodeIgniter

How To Load CSS Files in CodeIgniter

If you’re trying to call your CSS files from your root director in a PHP CodeIgniter application and are facing problems, check through the following items to see if you’ve missed out anything. Done correctly, the following steps will allow you to use base_url() to call your CSS files from your root directory, and not [...]

Continue reading...

How To Obtain CodeIgniter Query String or GET Data

CodeIgniter allows you to get variables from GET data. Typically, GET data is obtained from the URL, for e.g. the variable named “id” with a value of “1234″ can be obtained from this URL: http://yourdomain.com/index.php?id=1234. To obtain GET data in CodeIgniter, things are a bit different. CodeIgniter does not allow GET query strings because of [...]

Continue reading...