Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved from local vendor libraries to vendor git submodules
- Loading branch information
Showing
9 changed files
with
68 additions
and
59 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[submodule "vendor/Slim"] | ||
path = vendor/Slim | ||
url = https://Tieno@github.com/codeguy/Slim.git | ||
[submodule "vendor/Twig"] | ||
path = vendor/Twig | ||
url = https://Tieno@github.com/fabpot/Twig.git | ||
[submodule "vendor/php-activerecord"] | ||
path = vendor/php-activerecord | ||
url = https://Tieno@github.com/Tieno/php-activerecord.git | ||
[submodule "vendor/Slim-Extras"] | ||
path = vendor/Slim-Extras | ||
url = https://Tieno@github.com/Tieno/Slim-Extras.git |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
require_once ROOT.'/vendor/php-activerecord/ActiveRecord.php'; | ||
require_once ROOT.'/vendor/Slim/View.php'; | ||
require_once ROOT.'/vendor/Slim-Extras/TwigView.php'; | ||
require ROOT.'/vendor/Slim/Slim/Slim.php'; | ||
require ROOT.'/vendor/php-activerecord/ActiveRecord.php'; | ||
require ROOT.'/vendor/Slim/Slim/View.php'; | ||
require ROOT.'/vendor/Slim-Extras/Views/TwigView.php'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
<?php | ||
<?php | ||
/* | ||
$app->get('/route', $auth, function() use($app, $currentUser) { | ||
//GET route | ||
$app->get('/', function () use ($app) { | ||
echo 'This is a GET route'; | ||
}); | ||
//POST route | ||
$app->post('/post', function () { | ||
echo 'This is a POST route'; | ||
}); | ||
})->name(''); | ||
//PUT route | ||
$app->put('/put', function () { | ||
echo 'This is a PUT route'; | ||
}); | ||
//DELETE route | ||
$app->delete('/delete', function () { | ||
echo 'This is a DELETE route'; | ||
}); | ||
*/ |
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
Submodule Slim-Extras
added at
543ec2
Submodule php-activerecord
added at
66dcbf