All posts in CodeIgniter

CodeIgniter has a built in 404 catch, however it displays a pretty plain page of just some text …

404

CodeIgniter has a built in 404 catch, however it displays a pretty plain page of just some text in a box. It would be much nice if you were able to display your own custom 404 page that was in your sites styling.

There is an option to edit the routes file and updated the $route['404_override'] variable to point to a custom 404 page of your own, however this is only ever called if it the controller isn’t found. If the controller is found, but a method in it isn’t, the plain looking default 404 is used. Here’s a quick workaround. Read more…

I recently created a complete site that is a link shortening tool which allows you to run your own public link shortener that keeps statistics on user clicks, and also displays a feed of what is ‘hot’ right now, based on the communities use / click throughs. This article is a quick rundown on how to set it up, and where to view a running demo.

This application is built using the CodeIgniter base and the MVC approach, and comes with the CodeIgniter userguide, which is located in the user_guide directory. For more information on CodeIgniter, please visit www.codeigniter.com

A full demo of the tool is at http://mls.subooa.com (the admin area is still private as this is a running site, you’ll have access to your own admin area when you setup your site)

First of all, you’ll need to download the package which you can get from Themeforest at the following location:

http://themeforest.net/item/my-link-shortener/51104

So lets get started…

Create a new database called mls (you can change this if you like, however you’ll need to edit the database.php file to suit)
Run the database.sql file on that database using your preferred method (import using phpmyadmin for example).

The following files need to be modified to match your environment:

application/config/database.php
application/config/config.php
application/config/site_config.php

You will also need to change the about and terms page content to reflect your own site.
The files are located in the application/views folder as about.php and terms.php respectively.

Finally, you’ll need to edit template.htaccess, if you want to run this in a folder you’ll need to place the folder name before index.php (e.g., /folder/index.php ), otherwise the entry should read just /index.php. Rename template.htaccess to .htaccess

And that’s all there is to it! You now have your very own link shortening tool setup and running. If you have any questions / issues with the app, please post them on the discussion page on the item on Themeforst, not here as other people will also be able to benefit from the responses.

Threw this on ShopTank tonight for Matt, looks very impressive. A way to create and load modules in …

Threw this on ShopTank tonight for Matt, looks very impressive. A way to create and load modules in code igniter… can’t be bothered explaining it, the details on their info page do a good job of it. Stupidly easy to install and get going, just add the libaries to your installation and you’re away.

Might write something up another day on integrating this into a template manager (ala subooa.com)

http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/

CodeIgniter Version 1.7 has been released. This version contains a number of new features and enhancements, as well …

CodeIgniter Version 1.7 has been released. This version contains a number of new features and enhancements, as well as many small improvements and bug fixes. For a list of all changes please see the Change Log.

If you are currently running Code Igniter please read the update instructions.

Note: If your browser does not display the 1.7 user guide please clear your cache and reload the page.

Posted by Rick Ellis on October 23, 2008

Only because I know I’m gonna have to use this… well I already am, but apparently not with …

Only because I know I’m gonna have to use this… well I already am, but apparently not with the right setup, here’s a post on CodeIgniter.com on how to setup your project best in SVN.

http://codeigniter.com/news/codeigniter_community_voice_howto_set_up_a_codeigniter_project_in_subversio/