Quick Tip: Laravel 3.2.0 Auth Driver

I am upgrading a current project to Laravel 3.2 and had a bit of confusion with the (newly implemented) Auth drivers. I’m sure a lot of developers are able to use the Auth class as-is, but because I need some custom stuff returned when logging in/retrieving a user, I needed to figure out how to [...]

Holy Smokes!

I just realized that I haven’t posted anything in just over a year! Color me embarrassed O.O Been extremely busy with other projects. I could use some ideas, so, what all would you guys like to read about here? Let me know in the comments, and Thanks to those who are still reading!

Extending CodeIgniter’s Database Forge Class

UPDATED 2/13: Added License (MIT) Info to code UPDATED 1/13: Changed ‘required’ ‘required_once’ to avoid errors of redeclaring CI_DBforge I am working on a project in CodeIgniter that requires use of the database forge class to create/modify/delete database tables. Because the project makes use of database transactions, creating tables with the MYISAM engine was not [...]

Bespin Theme for Geany IDE

I love the Bespin theme that can be found for Textmate, Notepad++, and Gedit. Recently I started using the Geany IDE (http://www.geany.org/) as it’s a lot lighter than Eclipse/Netbeans/etc. I spent the better part of an afternoon using the Online Theme Editor found at (http://geany.pdarko.co.cc/filetypes/) to recreate (to the best of my abilities) this theme [...]

A Follow-Up on Kohana 3 & CodeIgniter 2 – The Flip Side

The other day I wrote about my experiences/opinions with Kohana 3 and CodeIgniter 2. I’ve received feedback from both sides of the debate, and want to share some follow up thoughts and some of (IMO) CI2′s downsides. Shadowhand commented: …This is typical of pretty much all programming tools. For example, look at Python right now… [...]

Kohana 3 & CodeIgniter 2

For the last month or so I’ve been developing an app side-by-side with Kohana 3 and CodeIgniter 2 to see which framework fits my programming style better. Nothing terribly fancy; just a simple CMS. I’ve been using frameworks to develop since 2006, back around CI 1.5.x. The differences between CI 1.7.x (the latest version as [...]

CakePHP 1.3, Smarty 3, and Theming. Woohoo!

There are various solutions out there for integrating Smarty with CakePHP. I’m here to introduce another one, that I feel is a little leaner than the other solutions I’ve found. Jump to the code: https://gist.github.com/672398 Requirements: Cake 1.3.2 (No idea if it will work on < 1.3.2) Smarty 3 Just place this in your /app/views [...]

CakePHP, Using Edit For Add/Edit Functions, & Plugins (Oh My!)

When I work on a project I usually combine my add/edit functions into just edit. This saves some space in my controllers and makes maintenance a lot easier as I have only one function to edit instead of 2. To accomplish this in Cake, you’d just do something like this: Router::connect(‘/:prefix/:controller/add’, array(‘action’ => ‘edit’, “admin” [...]

Quick Little Tip Regarding Cakephp forms

Occasionally when I am coding something in Cake that requires a form, I run into a problem if I use something like If there is another method that posts to the URL that the above code rests on (an Auth class trying to preserve the page the person was trying to reach, for example), then [...]

New Source for Code Snippets

I’ve signed up at Github, and will from now on be posting code snippets and such there. CodeIgniter + Smarty w/Layout Capabilities – http://gist.github.com/264823

Follow

Get every new post delivered to your Inbox.

Join 90 other followers