Posts Tagged ‘CodeIgniter’

Winters coming, WrapUp!

Tags: , , , , , , ,
Posted in Code, CodeIgniter, PHP

I’ve been using this library, or iteration of, for about a year now and have finally had time to document it properly. WrapUp is a CodeIgniter Library to manage your sites <head> element.

Defining the doctype
Setting the page title
Adding meta data
Adding CSS
Addming Javascript files

This saves alot of time getting a site up and running. Its also extremly handy for large sites as you can define your default meta data, css & javascript in a __constructor so its is inhereted by all pages on the site.

A few examples of WrapUp can be found after the jump.

Read the rest of this entry »

Oi, Mind your Messages

Tags: , , ,
Posted in Code, CodeIgniter, PHP

Often, I find I need to send notifications to the user (webpage) during server code. This may be a warning, notification, or a message that an action has hapend. If you’re using a MVC framework it’s not practical to exit running code or echo out the message. From a User Interface perspective it is also imperative that the user knows where to look for these notifications and what they mean.

Read the rest of this entry »

Shortie v1.0 Released

Tags: , , ,
Posted in Code, CodeIgniter, PHP, Uncategorized

Recently I needed code to shorten URLS and tweet said url as a twitter update. This all needed to happen in their existing CMS built using Codeigniter.

Turns out the twitter part was easy, thanks to simonmaddox’s nice twitter CI library. I got a few whiffs of a url shortening CI library around the web, but it looks like the code was no longer available. Oh well, a good excuse to knock up a new library!

Read the rest of this entry »