Skip to content

Instantly share code, notes, and snippets.

View byjujohn's full-sized avatar

Byju John byjujohn

View GitHub Profile
<?php
echo "Connecting to MySQL Server ... ";
mysql_connect(
"localhost",
"admin",
"pass123")
or die(mysql_error());
echo "[OK]<br />";
@byjujohn
byjujohn / Laravel 4 - Passing parameters to class based filters
Last active August 29, 2015 14:13
Laravel 4 - Passing parameters to class based filters
<?php
// app/roues.php
Route::group(array('before' => 'myfilter.filtername:value1,value2'), function() {
// Routing logic
});
// app/filters.php
Route::filter('myfilter.filtername', 'MyCustomFilterClassNameFilter@filtermethodFilter');