-
Book Overview & Buying
-
Table Of Contents
CodeIgniter 1.7
In this chapter, we have something different for you; we are going to see some examples of code from other programmers that you can use in your application. We hope it's a very entertaining chapter, so we can get some rest from theory before going ahead.
We've found these examples in CodeIgniter's Wiki at http://codeigniter.com/wiki, and other sources. We recommend you to take a look at the Wiki from time-to-time, you will find useful things and, who knows, maybe one day you could contribute too!
We are going to see:
How to use meta tags
A sitemap generator
Also we are going to see; how to use a Google charts plugin inside our CodeIgniter application, don't miss it!
The easiest way in which we can reuse our own code, or other's code, is by creating a helper and functions inside it. For example, take this code:
$user = "demo_user";
preg_match('/^[a-z\d_]{6,12}$/i', $user);
This is a useful piece of code, a regular expression...
Change the font size
Change margin width
Change background colour