fixed vie errors.
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View Names & Composers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Named views give you beautiful syntax when working with your views.
|
||||
|
|
||||
| Here's how to define a named view:
|
||||
|
|
||||
| 'home.index' => array('name' => 'home')
|
||||
|
|
||||
| Now, you can create an instance of that view using the expressive View::of
|
||||
| dynamic method. Take a look at this example:
|
||||
|
|
||||
| return View::of_layout();
|
||||
|
|
||||
| View composers provide a convenient way to add common elements to a view
|
||||
| each time it is created. For example, you may wish to bind a header and
|
||||
| footer partial each time the view is created.
|
||||
|
|
||||
| The composer will receive an instance of the view being created, and is
|
||||
| free to modify the view however you wish. Here is how to define one:
|
||||
|
|
||||
| 'home.index' => function($view)
|
||||
| {
|
||||
| //
|
||||
| }
|
||||
|
|
||||
| Of course, you may define a view name and a composer for a single view:
|
||||
|
|
||||
| 'home.index' => array('name' => 'home', function($view)
|
||||
| {
|
||||
| //
|
||||
| })
|
||||
|
|
||||
*/
|
||||
|
||||
'home.index' => array('name' => 'home', function($view)
|
||||
{
|
||||
//
|
||||
}),
|
||||
|
||||
);
|
||||
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Filters provide a convenient method for attaching functionality to your
|
||||
| routes. Filters can run either before or after a route is exectued.
|
||||
|
|
||||
| The built-in "before" and "after" filters are called before and after
|
||||
| every request to your application; however, you may create other filters
|
||||
| that can be attached to individual routes.
|
||||
|
|
||||
| Filters also make common tasks such as authentication and CSRF protection
|
||||
| a breeze. If a filter that runs before a route returns a response, that
|
||||
| response will override the route action.
|
||||
|
|
||||
| Let's walk through an example...
|
||||
|
|
||||
| First, define a filter:
|
||||
|
|
||||
| 'simple_filter' => function()
|
||||
| {
|
||||
| return 'Filtered!';
|
||||
| }
|
||||
|
|
||||
| Next, attach the filter to a route:
|
||||
|
|
||||
| 'GET /' => array('before' => 'simple_filter', function()
|
||||
| {
|
||||
| return 'Hello World!';
|
||||
| })
|
||||
|
|
||||
| Now every requests to http://example.com will return "Filtered!", since
|
||||
| the filter is overriding the route action by returning a value.
|
||||
|
|
||||
| To make your life easier, we have built authentication and CSRF filters
|
||||
| that are ready to attach to your routes. Enjoy.
|
||||
|
|
||||
*/
|
||||
|
||||
'before' => function($method, $uri)
|
||||
{
|
||||
// Do stuff before every request to your application.
|
||||
},
|
||||
|
||||
|
||||
'after' => function($response, $method, $uri)
|
||||
{
|
||||
// Do stuff after every request to your application.
|
||||
},
|
||||
|
||||
|
||||
'auth' => function()
|
||||
{
|
||||
return ( ! Auth::check()) ? Redirect::to_login() : null;
|
||||
},
|
||||
|
||||
|
||||
'csrf' => function()
|
||||
{
|
||||
return (Input::get('csrf_token') !== Form::raw_token()) ? Response::error('500') : null;
|
||||
},
|
||||
|
||||
);
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'previous' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
);
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Error Messages
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"accepted" => "The :attribute must be accepted.",
|
||||
"active_url" => "The :attribute does not exist.",
|
||||
"alpha" => "The :attribute may only contain letters.",
|
||||
"alpha_dash" => "The :attribute may only contain letters, numbers, dashes, and underscores.",
|
||||
"alpha_num" => "The :attribute may only contain letters and numbers.",
|
||||
"between" => "The :attribute must be between :min - :max.",
|
||||
"confirmed" => "The :attribute confirmation does not match.",
|
||||
"email" => "The :attribute format is invalid.",
|
||||
"image" => "The :attribute must be an image.",
|
||||
"in" => "The selected :attribute is invalid.",
|
||||
"integer" => "The :attribute must be an integer.",
|
||||
"max" => "The :attribute must be less than :max.",
|
||||
"mimes" => "The :attribute must be a file of type: :values.",
|
||||
"min" => "The :attribute must be at least :min.",
|
||||
"not_in" => "The selected :attribute is invalid.",
|
||||
"numeric" => "The :attribute must be a number.",
|
||||
"required" => "The :attribute field is required.",
|
||||
"size" => "The :attribute must be :size.",
|
||||
"unique" => "The :attribute has already been taken.",
|
||||
"url" => "The :attribute format is invalid.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| The following words are appended to the "size" messages when applicable,
|
||||
| such as when validating string lengths or the size of file uploads.
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"characters" => "characters",
|
||||
"kilobytes" => "kilobytes",
|
||||
|
||||
);
|
||||
0
application/libraries/.gitignore
vendored
0
application/libraries/.gitignore
vendored
0
application/models/.gitignore
vendored
0
application/models/.gitignore
vendored
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is the public API of your application. To add functionality to your
|
||||
| application, you just add to the array located in this file.
|
||||
|
|
||||
| Simply tell Laravel the HTTP verbs and request URIs it should respond to.
|
||||
| You may respond to the GET, POST, PUT, or DELETE verbs. Enjoy the simplicity
|
||||
| and elegance of RESTful routing.
|
||||
|
|
||||
| Here is how to respond to a simple GET request to http://example.com/hello:
|
||||
|
|
||||
| 'GET /hello' => function()
|
||||
| {
|
||||
| return 'Hello World!';
|
||||
| }
|
||||
|
|
||||
| You can even respond to more than one URI:
|
||||
|
|
||||
| 'GET /hello, GET /world' => function()
|
||||
| {
|
||||
| return 'Hello World!';
|
||||
| }
|
||||
|
|
||||
| It's easy to allow URI wildcards using the (:num) or (:any) place-holders:
|
||||
|
|
||||
| 'GET /hello/(:any)' => function($name)
|
||||
| {
|
||||
| return "Welcome, $name.";
|
||||
| }
|
||||
|
|
||||
*/
|
||||
|
||||
'GET /' => function()
|
||||
{
|
||||
return View::make('home.index');
|
||||
},
|
||||
|
||||
);
|
||||
@@ -1,87 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 - Not Found</title>
|
||||
|
||||
<link href="http://fonts.googleapis.com/css?family=Quattrocento&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="http://fonts.googleapis.com/css?family=Ubuntu&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href='http://fonts.googleapis.com/css?family=Lobster+Two' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #eee;
|
||||
color: #6d6d6d;
|
||||
font-family: 'Ubuntu';
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #7089b3;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1.laravel {
|
||||
font-family: 'Lobster Two', Helvetica, serif;
|
||||
font-size: 60px;
|
||||
margin: 0 0 15px -10px;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Quattrocento', serif;
|
||||
font-size: 30px;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0 0 0;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
#header {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 20px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<?php
|
||||
$messages = array("We're lost.", "This doesn't look familiar.", "We need a map.");
|
||||
$message = $messages[mt_rand(0, 2)];
|
||||
?>
|
||||
|
||||
<h1 class="laravel"><?php echo $message; ?></h1>
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
<?php
|
||||
$apologies = array("This is embarrassing.", "Don't give up on us.", "We're really sorry.");
|
||||
$apology = $apologies[mt_rand(0, 2)];
|
||||
?>
|
||||
|
||||
<h2><?php echo $apology; ?></h2>
|
||||
|
||||
<p>We couldn't find the resource you requested. Would you like go to our <a href="<?php echo Laravel\Config::get('application.url'); ?>">home page</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,87 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>500 - Internal Server Error</title>
|
||||
|
||||
<link href="http://fonts.googleapis.com/css?family=Quattrocento&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="http://fonts.googleapis.com/css?family=Ubuntu&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href='http://fonts.googleapis.com/css?family=Lobster+Two' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #eee;
|
||||
color: #6d6d6d;
|
||||
font-family: 'Ubuntu';
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #7089b3;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1.laravel {
|
||||
font-family: 'Lobster Two', Helvetica, serif;
|
||||
font-size: 60px;
|
||||
margin: 0 0 15px -10px;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Quattrocento', serif;
|
||||
font-size: 30px;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0 0 0;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
#header {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 20px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<?php
|
||||
$messages = array('Whoops!', 'Oh no!', 'Ouch!');
|
||||
$message = $messages[mt_rand(0, 2)];
|
||||
?>
|
||||
|
||||
<h1 class="laravel"><?php echo $message; ?></h1>
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
<?php
|
||||
$apologies = array("It's not your fault.", "Don't give up on us.", "We're really sorry.");
|
||||
$apology = $apologies[mt_rand(0, 2)];
|
||||
?>
|
||||
|
||||
<h2><?php echo $apology; ?></h2>
|
||||
|
||||
<p>Something failed while we were handling your request. Would you like go to our <a href="<?php echo Laravel\Config::get('application.url'); ?>">home page</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,102 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Laravel - <?php echo $severity; ?></title>
|
||||
|
||||
<link href="http://fonts.googleapis.com/css?family=Quattrocento&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="http://fonts.googleapis.com/css?family=Ubuntu&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href='http://fonts.googleapis.com/css?family=Lobster+Two' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #eee;
|
||||
color: #6d6d6d;
|
||||
font-family: 'Ubuntu';
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
h1.laravel {
|
||||
font-family: 'Lobster Two', Helvetica, serif;
|
||||
font-size: 60px;
|
||||
margin: 0 0 15px -10px;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Quattrocento', serif;
|
||||
font-size: 30px;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0 0 0;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
pre.context {
|
||||
margin: 0; padding: 0;
|
||||
}
|
||||
|
||||
pre.highlight {
|
||||
font-weight: bold;
|
||||
color: #990000;
|
||||
}
|
||||
|
||||
#header {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 20px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#wrapper h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<h1 class="laravel"><?php echo $severity; ?></h1>
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
<h2>Message:</h2>
|
||||
|
||||
<p><?php echo $message; ?></p>
|
||||
|
||||
<h2>Stack Trace:</h2>
|
||||
|
||||
<pre><?php echo $trace; ?></pre>
|
||||
|
||||
<h2>Snapshot:</h2>
|
||||
|
||||
<p>
|
||||
<?php if (count($contexts) > 0): ?>
|
||||
|
||||
<?php foreach($contexts as $num => $context): ?>
|
||||
<pre class="context <?php echo ($line == $num) ? 'highlight' : ''; ?>"><?php echo htmlentities($num.': '.$context); ?></pre>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else: ?>
|
||||
Snapshot Unavailable.
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,79 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome To Laravel!</title>
|
||||
|
||||
<link href="http://fonts.googleapis.com/css?family=Quattrocento&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="http://fonts.googleapis.com/css?family=Ubuntu&v1" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href='http://fonts.googleapis.com/css?family=Lobster+Two' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #eee;
|
||||
color: #6d6d6d;
|
||||
font-family: 'Ubuntu';
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #7089b3;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1.laravel {
|
||||
font-family: 'Lobster Two', Helvetica, serif;
|
||||
font-size: 60px;
|
||||
margin: 0 0 15px -10px;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Quattrocento', serif;
|
||||
font-size: 30px;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
text-shadow: -1px 1px 1px #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0 0 0;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
#header {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 20px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.wrapper h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<h1 class="laravel">Laravel</h1>
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<h2>Installation Complete!</h2>
|
||||
|
||||
<p>Ready to dig in? Start building your application in the <strong>application/routes.php</strong> file.</p>
|
||||
|
||||
<p>Need to learn more? Peruse our <a href="http://laravel.com">wonderful documentation</a>.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user