Build a Twitter-like site with CodeIgniter and jQuery Part 2 Comments (0)
by Wez Pyke - February 14, 2010 in PHP, Text Tutorials, codeigniter, frameworks, jQuery, twitter

CodeIngiter + jQuery=twitter
Don't forget to check out part 1 if you have no read it.

In the second part of this 5 part tutorial series on how to build a Twitter-like website, we will be creating a signup form so that users can register to our website.

We will be adding records to the database that we created in part 1 and creating validation rules to make sure that the user didn't put any invalid data into the form.
(more...)

Build a Twitter-like site with CodeIgniter and jQuery Comments (2)
by Wez Pyke - February 12, 2010 in PHP, Text Tutorials, codeigniter, frameworks, jQuery, twitter

CodeIngiter + jQuery=twitter

This tutorial will be the first of a five part series where we will built a social network site similar to Twitter from scratch. We will be using the CodeIgniter framework for the core of the website and jQuery for the effects. In this first part we will be configuring CodeIgniter to display everything correctly and we will also set up a database and connect to it.

(more...)

Twitter-like pagination using CodeIgniter and jQuery Comments (0)
by Wez Pyke - December 18, 2009 in PHP, Text Tutorials, jQuery

twitter pagination icon Twitter like pagination using CodeIgniter and jQueryIf you use Twitter you'll notice that there is a more button at the bottom at the bottom of your timeline, when you click this more tweets appear. This is Twitters way of paginating a page. In this tutorial I'll show you how to create a pagination system using CodeIgniter and jQuery that is almost identical to Twitters.

First of all copy this SQL into your database to create a table that we will be using to grab rows from.

CREATE TABLE  `tutorials`.`twitter_messages` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`username` VARCHAR( 30 ) NOT NULL ,
`message` VARCHAR( 140 ) NOT NULL
) ENGINE = INNODB

(more...)

Ajax Helper For CodeIgniter [Video] Comments (0)
by Wez Pyke - December 16, 2009 in PHP, Video Tutorials

Blip.tv Page

Link to helper

Twitter

Adding security to CodeIgniter forms with a custom library class Comments (1)
by Wez Pyke - in PHP, Text Tutorials

The class that we are going to create within CI will simply add a math question that the user will have to enter correctly to continue. This is useful to stop bots from mass submitting information to your forms.

The class we are going to write is only very short and simple, but it will give you an idea of how to create classes for your own projects.

Creating the new class

First of all we need to create the file for the class, navigate to libraries then create a file called math_question.php.

All we are going to do within this class is generate two random numbers that will be added together.
(more...)

Useful websites and resources for learning CodeIgniter Comments (0)
by Wez Pyke - December 5, 2009 in PHP

Frameworks are becoming more and more popular because of the useful pre-built functions and organization of how files are meant to be stored and used.

Here is a shortlist of 10 resources that should be useful for beginners looking to learn CodeIgniter.

  1. CodeIgniter From Scratch
  2. From CodeIgniter to Ruby on Rails: A Conversion
  3. Smarty as a template engine in Code Igniter
  4. CodeIgniter Sample Auto-Complete Application
  5. Everything You Need to Get Started With CodeIgniter
  6. A Quick Code Igniter and JQuery Ajax Tutorial
  7. Speed Up your Web Application by CodeIgniter
  8. How to use CodeIgniter’s OpenID library to integrate OpenID in your existing user system.
  9. Pagination with Code Igniter
  10. CodeIgniter User Guide