27 posts

PHP

February 19, 2014

Laravel 4: Model Hydrate

Problem: While converting some older Laravel code, I ran into an issue where the hydrate method had been removed. My usage was similar to this: $raw_result = DB::query(...); $hydra

September 14, 2013

Dynamic Relative Date Range

About Dynamic Relative Date-time Range Dynamic Relative Date-time Range (also known as a Rolling Date Range) is a string formatted representation of a period of time relative to th

September 5, 2013

Migrating From Laravel 3 to Laravel 4

I apologize that this page is not well organized. It mainly exists to serve as notes for myself. If you can make sense of this, great! Changes I had to make to my code when updatin

June 10, 2013

Laravel 3 Documentation: Here it is!

Problem: With the recent release of Laravel 4, the documentation URLs for Laravel 3 have been completely changed and I haven't been able to find it. Solution: Found it: http://thre

May 15, 2013

Laravel 3: Unlimited routing arguments

Problem: I was working on a project in Laravel when I realized I really wanted to have 1 route rule for a specific controller but be able to allow a lot of different arguments. Sol

June 8, 2011

CodeIgniter 2.0+ is ajax check

Problem: In some instances, you may want to know if your request in the controller was ajax. Solution: Turns out CodeIgniter has added an is_ajax_request method to the input class.

January 25, 2010

Uploading a File in Symfony 1.4

Being new with Symfony, I decided to learn on their most recent stable version (1.4). For my work, I needed to be able to upload a file from the user when they submitted a form. Wh

November 8, 2009

Flash caching PHP response

Recently I ran into an issue where I would call a PHP file that would generate a unique id and return that to Flash (I am sure I could do the same thing from within flash but decid