This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Headers should be stored as an object, arrays used for multiple values; e.g., | |
var headers = | |
{ 'Content-Type': 'text/html' | |
, 'Content-Length': 4096 | |
, 'Set-Cookie': | |
[ 'hits=1; Path=/' | |
, 'foo=; Max-Age=-1; Path=/' | |
] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure b/configure | |
index 7267f64..2273bb8 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -7,14 +7,12 @@ if [ ! -z "`echo $CC | grep ccache`" ]; then | |
exit 1 | |
fi | |
-CUR_DIR=$PWD | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Laravel; | |
class Form { | |
/** | |
* Magic method to handle opening of forms to named routes | |
* | |
* <code> | |
* // Open a form to the "login" named route | |
* Form::open_to_login(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Determine whether the given URL is handled by the current request | |
* | |
* @param string $url | |
* @param bool $https | |
* @return bool | |
*/ | |
function isActiveURL($url, $https = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* File | |
* | |
* Note: Remember to remove the "File" alias in APP_DIR/config/application.php | |
* | |
* @author Phill Sparks <me@phills.me.uk> | |
*/ | |
class File extends Laravel\File { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Snip extends Eloquent { | |
public static $timestamps = true; | |
static function install() | |
{ | |
DB::query('CREATE TABLE IF NOT EXISTS snips ( | |
id INTEGER PRIMARY KEY ASC, slug TEXT UNIQUE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/laravel/routing/router.php b/laravel/routing/router.php | |
index ad62ea1..0154441 100644 | |
--- a/laravel/routing/router.php | |
+++ b/laravel/routing/router.php | |
@@ -157,9 +157,11 @@ class Router { | |
{ | |
foreach (explode(', ', $keys) as $key) | |
{ | |
- if (preg_match('#^'.$this->wildcards($key).'$#', $destination)) | |
+ if (preg_match('#^'.$this->wildcards($key).'$#', $destination, $parameters)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Router::route('GET /test', function() | |
{ | |
return View::make('test'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE "attendee" ( | |
"id" INTEGER PRIMARY KEY, | |
"group_id" INTEGER, | |
"name" TEXT, | |
"saturday" TEXT, | |
"sunday" TEXT, | |
"extra" TEXT | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Laravel 3.0 | |
source: laravel | |
destination: api | |
main: Laravel | |
php: no | |
exclude: | |
- *stub.php |
OlderNewer