News Feed

News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Hasin Hayder's Blog:
Prelude to foundation Its time to go for a better PHP Framework
April 23, 2007 @ 15:54:07

In a new blog entry today, Hasin Hayder tells the reader a "little story" about a journey he made to get to framework happiness with CodeIgniter.

He walks through his thoughts and needs at different stages of the development process - a database abstraction library here, version control there - and ending up with the framework choice that faced him. Among his options were offerings by Prado, Seagull, Symfony, CakePHP and his pick - CodeIgniter.

Suddenly I got codeigniter and I was able to run a whole lot of controllers, templates and models in minutes (well not in minutes, but much less time than previous ones). A rich , pleasing to read, friendly set of documentation, a bunch of in built libraries and less autonomous control gives me full freedom over my application. It was easy to integrate my old friend smarty with it, in case it comes with it's own active record, but it gives me chance to add adoDB with it. I fall in love with code igniter soon after i realize that it comes with almost zero learning time (or i better say learning on demand)

He also mentions that, had the post been a bit more technical in nature, other factors would have been included. As it is, though, it flows a bit better this way.

0 comments voice your opinion now!
framework codeigniterframework story smarty adodb mysql framework codeigniterframework story smarty adodb mysql

Hasin Hayder's Blog:
Vulnerable bug in CodeIgniter which took us hours to fix our corrupted database
April 19, 2007 @ 13:11:00

PHP frameworks can make a developers life so much simpler with all of the tools and helpful functionality they bring along. There are, however, times when they can turn on you and cause bugs so bad you'll spend hours just to clean it up. Hasin Hayder had to deal with one such situation with his application using CodeIgniter.

We use codeigniter internally to develop our web solutions. Day before yesterday we suffered a terrible situation for an internal bug in code igniter which corrupted data inside some tables of our application database and then it took hours to find the origin of that bug, to fix it and to repair the corrupted data. Let me explain what happened.

He goes on to explain a sample setup that could cause the same issue - a users table where the framework makes an update of a user's password. Instead of limiting it in the WHERE of the generated query, it simply would put "where user_id" on the end, not equal to anything. This causes (in MySQL, not PostgreSQL) a massive update for all users in teh table, updating them all to this new password.

So we suggest the CodeIgniter team to fix the issue immediately and change their ORM code so that it creates the query like the following if the value of passed argument is null. because it will fail to execute in all db. Otherwise the fellow user's of code igniter, prepare for the dooms day.
0 comments voice your opinion now!
codeigniterframework error sql update generate codeigniterframework error sql update generate

Community Events

Don't see your event here?
Let us know!

framework interview language example opinion symfony community part2 series composer podcast list application configure laravel project introduction php7 api yii2

All content copyright, 2015 :: - Powered by the Solar PHP Framework