From 321474e196ffab55dda4ea41c89a35fdfea5c57d Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Sun, 15 Jun 2014 20:34:30 +0200 Subject: [PATCH] =?utf8?q?syntaxe=20POO=20(visibilit=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- app/controllers/hello/index.php | 4 +--- mw_hello.php | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/controllers/hello/index.php b/app/controllers/hello/index.php index e317fe9..89bb6a3 100644 --- a/app/controllers/hello/index.php +++ b/app/controllers/hello/index.php @@ -2,9 +2,7 @@ class mw_hello_index extends mw_controller{ - function index(&$env){ + public function index(){ } } - -?> \ No newline at end of file diff --git a/mw_hello.php b/mw_hello.php index dc385c3..b95aa62 100644 --- a/mw_hello.php +++ b/mw_hello.php @@ -2,19 +2,17 @@ class mw_hello extends mw_plugin{ - function title(){ + public function title(){ return "Hello World !"; } - function description(){ + public function description(){ return "Un plugin qui affiche une page Hello World !"; } - function init($env){ + public function init($env){ $env->set_link("menu_top/hello", $env->url("hello"), "Hello"); return true; } } - -?> \ No newline at end of file -- 2.1.4