Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
2f98bc91
Commit
2f98bc91
authored
Jan 02, 2011
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete example.php, README contains a sufficient example
parent
5ecfcbe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
example.php
example.php
+0
-31
No files found.
example.php
deleted
100644 → 0
View file @
5ecfcbe1
<?php
require_once
__DIR__
.
'/silex.phar'
;
use
Symfony\Component\HttpFoundation\Request
;
use
Silex\Framework
;
$hello
=
function
(
$name
)
{
return
"Hello
$name
"
;
};
$goodbye
=
function
(
$name
)
{
return
"Goodbye
$name
"
;
};
$framework
=
new
Framework
(
array
(
'GET /hello/:name'
=>
$hello
,
'POST /goodbye/:name'
=>
$goodbye
,
));
// Simulate a hello request without a Client
//$request = Request::create('/hello/Fabien');
//$framework->run($request);
// Simulate a goodbye request without a Client
//$request = Request::create('/goodbye/Fabien', 'post');
//$framework->run($request);
$framework
->
run
();
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