Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
96b43e90
Commit
96b43e90
authored
Jan 31, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show warning when key is not set.
parent
d20deb28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
39 deletions
+48
-39
index.php
application/views/home/index.php
+47
-25
laravel.php
laravel/laravel.php
+0
-13
license.txt
license.txt
+1
-1
No files found.
application/views/home/index.php
View file @
96b43e90
...
@@ -69,6 +69,14 @@
...
@@ -69,6 +69,14 @@
padding
:
10px
;
padding
:
10px
;
}
}
#main
div
.warning
{
background-color
:
#feefb3
;
border
:
1px
solid
;
border-radius
:
5px
;
color
:
#9f6000
;
padding
:
10px
;
}
#main
ul
{
#main
ul
{
margin
:
10px
0
;
margin
:
10px
0
;
padding
:
0
30px
;
padding
:
0
30px
;
...
@@ -81,41 +89,55 @@
...
@@ -81,41 +89,55 @@
</head>
</head>
<body>
<body>
<div
id=
"main"
>
<div
id=
"main"
>
<h1>
Welcome To Laravel
</h1>
<?php
if
(
Config
::
get
(
'application.key'
)
==
''
)
:
?>
<h1>
Whoops!
</h1>
<br>
<div
class=
"warning"
>
Please set an application key in
<strong>
application/config/application.php
</strong>
!
</div>
<?php
else
:
?>
<h1>
Welcome To Laravel
</h1>
<h2>
A Framework For Web Artisans
</h2>
<h2>
A Framework For Web Artisans
</h2>
<p>
You have successfully installed the Laravel framework. Laravel is a simple framework
that helps web artisans create beautiful, creative applications using elegant, expressive
syntax. You'll love using it.
</p>
<p>
<h3>
Learn the terrain.
</h3>
You have successfully installed the Laravel framework. Laravel is a simple framework
that helps web artisans create beautiful, creative applications using elegant, expressive
syntax. You'll love using it.
</p>
<h3>
Learn the terrain.
</h3>
<p>
You've landed yourself on our default home page. The route that
is generating this page lives at:
</p>
<p>
<pre><code>
APP_PATH/routes.php
</code></pre>
You've landed yourself on our default home page. The route that
is generating this page lives at:
</p>
<pre><code>
APP_PATH/routes.php
</code></pre
>
<p>
And the view sitting before you can be found at:
</p
>
<p>
And the view sitting before you can be found at:
</p
>
<pre><code>
APP_PATH/views/home/index.php
</code></pre
>
<pre><code>
APP_PATH/views/home/index.php
</code></pre
>
<h3>
Create something beautiful.
</h3
>
<h3>
Create something beautiful.
</h3>
<p>
Now that you're up and running, it's time to start creating!
Here are some links to help you get started:
</p>
<p>
<ul>
Now that you're up and running, it's time to start creating!
<li><a
href=
"http://laravel.com"
>
Official Website
</a></li>
Here are some links to help you get started:
<li><a
href=
"http://forums.laravel.com"
>
Laravel Forums
</a></li>
</p>
<li><a
href=
"http://github.com/laravel/laravel"
>
GitHub Repository
</a></li>
</ul>
<ul>
<?php
endif
;
?>
<li><a
href=
"http://laravel.com"
>
Official Website
</a></li>
<li><a
href=
"http://forums.laravel.com"
>
Laravel Forums
</a></li>
<li><a
href=
"http://github.com/laravel/laravel"
>
GitHub Repository
</a></li>
</ul>
</div>
</div>
</body>
</body>
...
...
laravel/laravel.php
View file @
96b43e90
...
@@ -7,19 +7,6 @@
...
@@ -7,19 +7,6 @@
*/
*/
require
'core.php'
;
require
'core.php'
;
/**
* Verify that an application key has been set in the configuration.
* The key is used to do proper signature hashing on cookies, as
* well as keep various other parts of the framework secure, so
* it is a required configuration option.
*/
if
(
Config
::
$items
[
'application'
][
'application'
][
'key'
]
==
''
)
{
$path
=
'application/config/application.php'
;
die
(
"Please set an application key in <b>
{
$path
}
</b>."
);
}
/**
/**
* Register the default timezone for the application. This will be the
* Register the default timezone for the application. This will be the
* default timezone used by all date / timezone functions throughout
* default timezone used by all date / timezone functions throughout
...
...
license.txt
View file @
96b43e90
MIT License
MIT License
Copyright (c) <201
1
> <Taylor Otwell> <taylorotwell@gmail.com>
Copyright (c) <201
2
> <Taylor Otwell> <taylorotwell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
this software and associated documentation files (the "Software"), to deal in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment