Tags: CMS, Code, CodeIgniter, notifications
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 »
Tags: CSS, typography
Posted in CSS

Here’s a quick HTML template to organise your CSS typography.
Nothing fancy, just an HTML file containing the most common elements to start your CSS, and a basic typography stylesheet. I used the 960 grid system to reset browser CSS and control the template layout.
I find this helpful as a starting point for any site. Before I start knocking a CSS class together to style an element up for a specific page, I refer to the sites CSS template to see if a similar base element already defined.
I would encourage keeping this typography stylesheet as basic as possible. Then use general css classes to add extra style later on.
Both the HTML and CSS files are included in the zip after the jump.
Tags: Code, CodeIgniter, shortie, urls
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!