-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
view support multiple template engine
- Loading branch information
Showing
54 changed files
with
246 additions
and
219 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
namespace VM; | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
@@ -276,7 +276,7 @@ public function cli() | |
} | ||
|
||
/** | ||
* GET Varimax The Full Stack PHP Frameworks Version" | ||
* GET Varimax The Slim PHP Frameworks Version" | ||
* @return string | ||
*/ | ||
public function version() | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax.cn | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
@@ -89,10 +89,9 @@ protected function make($abstract, array $parameters = []) | |
*/ | ||
protected function view($template, $variable = []) | ||
{ | ||
return make('view')->show($template, $variable); | ||
return make('view')->display($template, $variable); | ||
} | ||
|
||
|
||
/** | ||
* [assign] | ||
* | ||
|
@@ -105,6 +104,7 @@ protected function assign($var, $val = null) | |
make('view')->assign($var, $val); | ||
} | ||
|
||
|
||
public function __destruct() | ||
{ | ||
$this->off(); | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,6 @@ | ||
<?php | ||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* Varimax The Full Stack PHP Frameworks. | ||
* Varimax The Slim PHP Frameworks. | ||
* varimax | ||
* FILE: 2020 | ||
* USER: 陶之11. <[email protected]> | ||
|
Oops, something went wrong.