quelques modifications pour les test du Conduit
This commit is contained in:
parent
c3328c06b8
commit
21073bb54e
3
.idea/.gitignore
vendored
3
.idea/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
# Default ignored files
|
|
||||||
/workspace.xml
|
|
|
@ -1,22 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="WEB_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/../MVC-Modular-WindWalkerapplication/objets" isTestSource="false" packagePrefix="MVC\Objets\" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/../MVC-Modular-WindWalkerapplication/class" isTestSource="false" packagePrefix="MVC\Classe\" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/hybridauth/hybridauth" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/container" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/events" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/filesystem" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/view" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/neitanod/forceutf8" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/windwalker/renderer" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/windwalker/structure" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="JavaScriptSettings">
|
|
||||||
<option name="languageLevel" value="ES6" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/MVC---Objet.iml" filepath="$PROJECT_DIR$/.idea/MVC---Objet.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,19 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="PhpIncludePathManager">
|
|
||||||
<include_path>
|
|
||||||
<path value="$PROJECT_DIR$/vendor/windwalker/renderer" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/illuminate/view" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/illuminate/support" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/illuminate/events" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/illuminate/container" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/windwalker/structure" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/hybridauth/hybridauth" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/neitanod/forceutf8" />
|
|
||||||
</include_path>
|
|
||||||
</component>
|
|
||||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
|
||||||
</project>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -19,7 +19,6 @@ class Application
|
||||||
|
|
||||||
$dispacher = new Dispacher();
|
$dispacher = new Dispacher();
|
||||||
$this->route = $dispacher->route;
|
$this->route = $dispacher->route;
|
||||||
//$this->route = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function launch(){
|
public function launch(){
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Controlleur{
|
||||||
$conduitRoute = "\\" . $conduit[0];
|
$conduitRoute = "\\" . $conduit[0];
|
||||||
$method = strtolower($conduit[1]);
|
$method = strtolower($conduit[1]);
|
||||||
$class = new $conduitRoute();
|
$class = new $conduitRoute();
|
||||||
$class = $class->initialize($application->route);
|
$class->initialize($application->route);
|
||||||
$this->vue = new VueVide();
|
$this->vue = new VueVide();
|
||||||
$this->vue->ecran = $class->$method();
|
$this->vue->ecran = $class->$method();
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ class Dispacher
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
//echo $_SERVER['REQUEST_URI'];
|
|
||||||
//Avoid callback from empty homepage
|
//Avoid callback from empty homepage
|
||||||
if ($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '') {
|
if ($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '') {
|
||||||
$this->route = NULL;
|
$this->route = NULL;
|
||||||
|
|
|
@ -17,6 +17,6 @@ class Conduit extends Action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@
|
||||||
{{\MVC\Classe\ControlleurAction::inserer('default',[])}}
|
{{\MVC\Classe\ControlleurAction::inserer('default',[])}}
|
||||||
{{\MVC\Classe\ControlleurAction::inserer('default.default',[4,5,6])}}
|
{{\MVC\Classe\ControlleurAction::inserer('default.default',[4,5,6])}}
|
||||||
{{\MVC\Classe\ControlleurAction::inserer('default.variableSlug',['var1','var2','var3'])}}
|
{{\MVC\Classe\ControlleurAction::inserer('default.variableSlug',['var1','var2','var3'])}}
|
||||||
|
|
||||||
{{--\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[])--}}
|
{{--\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[])--}}
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<html>
|
@extends('body')
|
||||||
<head>
|
|
||||||
<title>App Name</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container">
|
@section('sidebar')
|
||||||
|
@parent
|
||||||
|
|
||||||
|
<p>This is appended to the master sidebar.</p>
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
Foo Controlleur
|
Foo Controlleur
|
||||||
@if (isset($id))
|
@if (isset($id))
|
||||||
{{$id}}
|
{{$id}}
|
||||||
@else
|
@else
|
||||||
id not exist
|
id not exist
|
||||||
@endif
|
@endif
|
||||||
</div>
|
@endsection
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in a new issue