Skip to content

Commit

Permalink
Merge pull request #56 from joanhey/hello-controller
Browse files Browse the repository at this point in the history
Use Hello controller in all frameworks
  • Loading branch information
myaaghubi committed Mar 16, 2024
2 parents 67a4a67 + fa1597a commit 61e7f40
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!';
}
Expand Down
2 changes: 1 addition & 1 deletion fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
return array(

/* *** PHP-Frameworks-Bench *** */
'helloworld/index' => 'helloworld/index',
'hello/index' => 'hello/index',

/**
* -------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion fuelphp-1.9/_benchmark/hello_world.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
url="$base/$fw/public/index.php/helloworld/index"
url="$base/$fw/public/index.php/hello/index"
2 changes: 1 addition & 1 deletion ubiquity-2.4.x.dev/_benchmark/hello_world.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
url="$base/$fw/public/index.php?c=HelloWorldController/index"
url="$base/$fw/public/index.php?c=HelloController/index"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace controllers;

class HelloWorldController extends \Ubiquity\controllers\Controller {
class HelloController extends \Ubiquity\controllers\Controller {
public function index() {
echo "Hello World!";
}
Expand Down
2 changes: 1 addition & 1 deletion yii-2.0-basic/_benchmark/hello_world.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
url="$base/$fw/web/index.php?r=helloworld/index"
url="$base/$fw/web/index.php?r=hello/index"
Original file line number Diff line number Diff line change
Expand Up @@ -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!';
}
Expand Down

0 comments on commit 61e7f40

Please sign in to comment.