DOWN LOAD
In the previous post I wrote a basic method how to use captcha plug-in with Codeigniter.
Today I am going to write a simple but practical newsletter subsciption page using captcha.
We will use CI’s form_validation class.
ci_captcha
Please read the previous post to customize it.
You need to create a folder called captcha as the same level as system.
Continue reading How to use Codeigniter captcha plug-in Part 2
You can find many php classes at http://www.phpclasses.org/.
This time I’d like to add a new class called BBQQ calendar to library. I know that there is a calendar class for CodeIgniter, but this will show you how simple is to add a third party php class to CI.
Files
Download a zip file from http://www.phpclasses.org/browse/package/5743.html#download. You need to register and sign-in in order to see a download link. Unzip it somewhere in your desktop.
Open calendar.php and replace <?php with the following code at the top and save it as BBQQ_Calendar.php in application/libraries/ directory.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Continue reading Adding a third party class to CodeIgniter library
Class names must have the first letter capitalized with the rest of the name lowercase in cotoller and model.
class Blog extends Controller { function index() { echo ‘Hello World!’;} } class Model_name extends Model { function Model_name() { parent::Model(); } }
However you don’t need to have a capital letter for [...]