Category Archives: CodeIgniter

CodeIgniter Thoughts

I’m finding CodeIgniter a little frustrating right now.  I really wanted to use an MVC tool, but CI is not playing well with IIS.  Also, the documentation really isn’t that great, even for an open-source project.

Alas, like most PHP projects it just wasn’t designed or tested with IIS in mind.  Fortunately I’m discovering this relatively early in the project, but I’m a little frustrated that some of these things are coming up now.

I think given the choice, since the IIS setup was decided for me before, I might have push ASP.NET Forms (vs MVC) instead.  Something I’ll keep in mind for next time.

Of course, CodeIgniter does work much better on my local Apache development environment.  I don’t want to come down too hard on it.  I’m just not impressed with how it works on IIS.

PHP CodeIgniter vs. ASP.NET MVC – My Choice

I think it’s really great that they’re building an MVC product for ASP.NET at Microsoft!  I think it has the possibility to bring a lot of PHP, Python and Ruby guys onto the platform.

But it’s not ready to use yet so I’m going to use CodeIgniter.  Sure people are out there coding with the beta, or I could even use plain ol’ Web Forms, but long story short: it isn’t ready.  It’s going to be awesome when it’s done, it’s awesome now, but every new beta brings out breaking changes.

So even though it makes me sad to leave my beloved C# for one site, I’m gonna have to stick with PHP for this one.

PHP Best Practices

I’ve been coding in PHP for a new client lately, and while PHP doesn’t have all the glory associated with it that ASP.NET has, nor does it have the compiler or IDE that I love, it is still a fairly decent language to code a website in – but only if you do it right.

For some reason people LOVE to stick a ton of MySQL queries into the middle of their HTML templates, which are also embedded deeply among more PHP code.  Are you guys kidding me?  The people who do this have obviously never maintained their own code, it’s just ridiculous to look at or even contemplate maintaining.

OK, maybe this is sounding too angry of a rant, but this is the reason that PHP Programmers have as bad a reputation as VB Programmers.  I sure don’t want that kind of reputation.

Fortunately there ARE good PHP Programmers out there (no I admit, I’m not the only one!  😉 ).  Isn’t most of Yahoo’s website infrastructure based around PHP?  They must be writing maintainable, scalable code!  So it must be possible in PHP.

There are lots of good, lightweight frameworks like CodeIgniter or CakePHP available out there.  They’re easy to learn, easy to use and make your websites far more maintainable by you and people like me.  It should also give you a bit more developer cred, AND help you get your site out there and online faster to boot!

Sorry for the Code Rage, just trying to get the word out!  As with everything, there is a better, easier, faster way, you just have to look for it and use it!