From fffc7dd99071df370d108c7cb0bff6ef97e24809 Mon Sep 17 00:00:00 2001 From: Joanhey Date: Mon, 11 Mar 2024 13:20:51 +0100 Subject: [PATCH 1/4] Fuel use Hello Controller --- .../fuel/app/classes/controller/{helloworld.php => hello.php} | 2 +- fuelphp-1.9/_benchmark/hello_world.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/{helloworld.php => hello.php} (76%) diff --git a/fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/helloworld.php b/fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/hello.php similarity index 76% rename from fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/helloworld.php rename to fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/hello.php index cf50f4e..acbb1ba 100644 --- a/fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/helloworld.php +++ b/fuelphp-1.9/_benchmark/fuel/fuel/app/classes/controller/hello.php @@ -3,7 +3,7 @@ PHP-Frameworks-Bench this is a simple hello world controller to make benchmark */ -class Controller_HelloWorld extends Controller { +class Controller_Hello extends Controller { public function action_index() { return 'Hello World!'; } diff --git a/fuelphp-1.9/_benchmark/hello_world.sh b/fuelphp-1.9/_benchmark/hello_world.sh index 87247b6..2d69368 100644 --- a/fuelphp-1.9/_benchmark/hello_world.sh +++ b/fuelphp-1.9/_benchmark/hello_world.sh @@ -1,2 +1,2 @@ #!/bin/sh -url="$base/$fw/public/index.php/helloworld/index" \ No newline at end of file +url="$base/$fw/public/index.php/hello/index" \ No newline at end of file From 3b83eb6083c77ce419b8ee6fe885559d50a152d3 Mon Sep 17 00:00:00 2001 From: Joanhey Date: Mon, 11 Mar 2024 13:22:10 +0100 Subject: [PATCH 2/4] Ubiquity use Hello Controller --- ubiquity-2.4.x.dev/_benchmark/hello_world.sh | 2 +- .../{HelloWorldController.php => HelloController.php} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/{HelloWorldController.php => HelloController.php} (71%) diff --git a/ubiquity-2.4.x.dev/_benchmark/hello_world.sh b/ubiquity-2.4.x.dev/_benchmark/hello_world.sh index 51c4f0e..2355c1a 100755 --- a/ubiquity-2.4.x.dev/_benchmark/hello_world.sh +++ b/ubiquity-2.4.x.dev/_benchmark/hello_world.sh @@ -1,2 +1,2 @@ #!/bin/sh -url="$base/$fw/public/index.php?c=HelloWorldController/index" \ No newline at end of file +url="$base/$fw/public/index.php?c=HelloController/index" \ No newline at end of file diff --git a/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloWorldController.php b/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloController.php similarity index 71% rename from ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloWorldController.php rename to ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloController.php index 5ae506d..54e9dd7 100644 --- a/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloWorldController.php +++ b/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/controllers/HelloController.php @@ -5,7 +5,7 @@ */ namespace controllers; -class HelloWorldController extends \Ubiquity\controllers\Controller { +class HelloController extends \Ubiquity\controllers\Controller { public function index() { echo "Hello World!"; } From 77914e9963cc7cc5f1b33f656624d1b155125904 Mon Sep 17 00:00:00 2001 From: Joanhey Date: Mon, 11 Mar 2024 13:22:56 +0100 Subject: [PATCH 3/4] Yii2 use Hello Controller --- yii-2.0-basic/_benchmark/hello_world.sh | 2 +- .../{HelloworldController.php => HelloController.php} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename yii-2.0-basic/_benchmark/yii2/controllers/{HelloworldController.php => HelloController.php} (85%) diff --git a/yii-2.0-basic/_benchmark/hello_world.sh b/yii-2.0-basic/_benchmark/hello_world.sh index 519292c..41bf027 100644 --- a/yii-2.0-basic/_benchmark/hello_world.sh +++ b/yii-2.0-basic/_benchmark/hello_world.sh @@ -1,2 +1,2 @@ #!/bin/sh -url="$base/$fw/web/index.php?r=helloworld/index" \ No newline at end of file +url="$base/$fw/web/index.php?r=hello/index" \ No newline at end of file diff --git a/yii-2.0-basic/_benchmark/yii2/controllers/HelloworldController.php b/yii-2.0-basic/_benchmark/yii2/controllers/HelloController.php similarity index 85% rename from yii-2.0-basic/_benchmark/yii2/controllers/HelloworldController.php rename to yii-2.0-basic/_benchmark/yii2/controllers/HelloController.php index 7085a66..f40a506 100644 --- a/yii-2.0-basic/_benchmark/yii2/controllers/HelloworldController.php +++ b/yii-2.0-basic/_benchmark/yii2/controllers/HelloController.php @@ -8,7 +8,7 @@ use yii\web\Controller; // such simple controller -class HelloworldController extends Controller { +class HelloController extends Controller { public function actionIndex() { return 'Hello World!'; } From fa1597a7e5a0f6fe9f8d2966d6b361713d76c3ba Mon Sep 17 00:00:00 2001 From: Joanhey Date: Mon, 11 Mar 2024 13:29:34 +0100 Subject: [PATCH 4/4] Fix Fuel --- fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php b/fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php index b616f8e..961c82b 100644 --- a/fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php +++ b/fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php @@ -13,7 +13,7 @@ return array( /* *** PHP-Frameworks-Bench *** */ - 'helloworld/index' => 'helloworld/index', + 'hello/index' => 'hello/index', /** * -------------------------------------------------------------------------