Phil Sturgeon
  • Home
  • About
  • Consulting
Sign in Subscribe

Latest

Access CodeIgniter helpers from Smarty templates

Access CodeIgniter helpers from Smarty templates

This article assumes you already have Smarty parsing your CodeIgniter views. If you have not done this, you can find out how to integrate Smarty with CodeIgniter here. To access your CodeIgniter helpers from Smarty, all you need to do is make a new file in your "smarty/plugins/
Phil Sturgeon May 17, 2009

How to: Support multiple production environments in CodeIgniter

To get this working is very easy. Constants can be seen all the way through CodeIgniter and can be set almost anywhere. To keep things neat and logical we will put this code into application/config/constants.php. For a simple 2 environment switch you can use the following: define(
Phil Sturgeon Jan 29, 2009
How to: Clean username URL's in CodeIgniter

How to: Clean username URL's in CodeIgniter

When most people start work on this, they think about using routes. You could do it this way, but then every time you enter a url such as http://example.com/controller then router would send the controller name off to check if it is a username. It's
Phil Sturgeon Jan 19, 2009
First Post

First Post

There are several reasons for starting this blog. Firstly as a way to keep track of all my tips, tutorials, code snippets and various web projects. I like to be active in the world of web development and have been knocking out sites and libraries for years. Secondly I wanted
Phil Sturgeon May 17, 2008

Subscribe to Phil Sturgeon

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
Phil Sturgeon © 2025. Powered by Ghost