Showing posts with label Codeignitor framework. Show all posts
Showing posts with label Codeignitor framework. Show all posts

Monday, June 27, 2011

CodeIgniter from Scratch Day 7: Pagination

Author: Jeffrey Way

In these last two weeks, I’ve received bunches of requests for a CodeIgniter pagination screencast; so that’s what we’ll be reviewing today! As a bonus, we’ll also take a look at the super convenient HTML Table class.

Day 7: Pagination

Sunday, June 26, 2011

CodeIgniter From Scratch: Day 6 – Login

Author: Jeffrey Way

In today’s hour long video tutorial, we’ll be doing a lot! We’ll implement a login and signup form that will allow us to lock down certain sections of our fictional site. As you’ll find, working with sessions in CodeIgniter is a cinch!

Day 6

Watch the video here!


P.S. The Logout Button
I forgot to add the “logout” button during the screencast. There was so much to cover, that I was bound to forget something! Luckily, it’s really easy. Simply add a link, to the “members” area, which links to the login class, and a “logout” method (login/logout). Then, all we must do is destroy the user’s session, and redirect them back to the login form. Download the source code if confused.

function logout()
{
$this->session->sess_destroy();
$this->index();
}

Hope you Enjoy it!
Keep in mind that we’re just scratching the surface, in terms of flexibility and security. We can – and very well may – take things much further. But this should get you started!

Friday, June 24, 2011

CodeIgniter From Scratch: Day 3. Sending Emails

Author: Jeffrey Way
source: http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-3/

At the request of some of our readers, this week, we’ll examine just how easy it is to send emails with attachments using Gmail. With raw PHP, this would be a long and tedious task. However, with CodeIgniter, it’s a cinch! I’ll show you how in this eighteen minute video tutorial.

Day 3