Archive for November, 2009

Top 20+ MySQL Best Practices

preview Nettuts+ just published my article!

http://net.tutsplus.com/tutorials/other/top-20-mysql-best-practices/

Database operations often tend to be the main bottleneck for most web applications today. It’s not only the DBA’s (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. Here are some MySQL optimization techniques for programmers.

Read more

Tags:

CodeIgniter and Doctrine from scratch
Day 7 – Fixtures & Forum List

Codeigniter Doctrine Today we will continue building our Message Board project. First we will start building the Home Page, which will be a Forum List. Then we will learn about Doctrine Data Fixtures. This will help us create some test data to play with.

ci_doctrine_day7_4

Tags: , ,

CodeIgniter and Doctrine from scratch
Day 6 – Models with Relationships

Codeigniter Doctrine In this episode of the series, we will continue building our Message Board project. First we will have a quick overview of Doctrine Model Relationships. Then we will create Models for our Message Board, such as: Forums, Threads, Posts etc… with proper relationships. Finally we will learn how to add data into such Models.

Tags: , ,

CodeIgniter and Doctrine from scratch
Day 5 – Database CRUD

Codeigniter Doctrine CRUD stands for Create, Read, Update and Delete, the basic operations performed on the database. With regular CodeIgniter setups, most developers would use the Active Record Class for performing such operations. But we are not going to be doing that.

In this episode of the series, I will show you how to perform CRUD with Doctrine.

Tags: , ,

Top 10 Reasons Why You Should Use a PHP Framework

frameworks

PHP Frameworks have been receiving a lot of attention in the past few years from the web development community. What’s this hype all about?

If you look at PHP Job listings, you will often see “MVC Framework Experience” as one of their requirements. It is becoming one of those must-have skill sets for web developers.

There are pretty good reasons behind all of this. In this article we will explore why you, as a PHP programmer, should be using a PHP Framework.

Tags: ,

CodeIgniter and Doctrine from scratch
Day 4 – User Login

Codeigniter DoctrineIn this episode we are going to build a User Signup Form following these steps:

- We build a Login Form View and a Login Controller.
- Learn about some URL Helpers.
- Change the Default Controller.
- Implement User Authentication.
- Learn about Singleton Pattern and use it to improve our code design.
- Learn about the Sessions Library.
- Implement User Logout.

ci_doctrine_day4_1

Tags: , ,

CodeIgniter and Doctrine from scratch
Day 3 – User Signup Form

codeigniter_doctrineIn this episode we are going to build a User Signup Form following these steps:

- We build a “User” Model with Doctrine.
- Learn about Mutators.
- Create tables using Doctrine.
- Remove index.php from CodeIgniter urls
- Build and Style the Signup Form.
- Learn about Helpers, Libraries and how to extend them.
- Form Validation and checking for duplicates.

ci_doctrine_day3_3

Tags: , ,