new file: .gitconfig

modified:   .gitignore
	modified:   SRC/app/config/app.php
	new file:   SRC/app/controllers/testBd.php
	modified:   SRC/app/routes.php
	new file:   SRC/app/views/testBd.php
This commit is contained in:
www 2015-02-08 22:43:20 +01:00
parent 2fb8c09b8c
commit 2f1aa2d596
9 changed files with 44 additions and 19 deletions

14
.bash_history Normal file
View File

@ -0,0 +1,14 @@
ls
git commit -a
git config --global user.email www@37.187.101.7
git config --global user.name www
git commit -a
git push
ls
cd SRC/
ls
clear
ls
git pull
git pull
exit

3
.gitconfig Normal file
View File

@ -0,0 +1,3 @@
[user]
email = www@37.187.101.7
name = www

4
.gitignore vendored
View File

@ -5,3 +5,7 @@
*.aux
*.lof
*.pdf
SRC/app/config/local/database.php
SRC/app/config/database.php

View File

@ -13,7 +13,7 @@ return array(
|
*/
'debug' => false,
'debug' => true,
/*
|--------------------------------------------------------------------------

View File

@ -55,9 +55,9 @@ return array(
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'forge',
'username' => 'forge',
'password' => '',
'database' => 'moduleweb',
'username' => 'root',
'password' => 'l3miashs2015',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',

View File

@ -19,29 +19,17 @@ return array(
*/
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'homestead',
'username' => 'homestead',
'password' => 'secret',
'database' => 'moduleweb',
'username' => 'root',
'password' => 'l3miashs2015',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
'pgsql' => array(
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'homestead',
'username' => 'homestead',
'password' => 'secret',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
),
),
);

View File

@ -0,0 +1,9 @@
<?php
class testBd extends BaseController {
public function getS()
{
$r = DB::select('select s from test where id = 1');
return View::make('testBd', array('s' => $r[0]->s));
}
}

View File

@ -27,3 +27,5 @@ Route::get('home', function()
{
return View::make('home');
});
Route::get('testBd', 'testBd@getS');

5
SRC/app/views/testBd.php Normal file
View File

@ -0,0 +1,5 @@
<html>
<body>
<h1>S = <?php echo $s; ?></h1>
</body>
</html>