From: dj3c1t Date: Sun, 15 Jun 2014 18:34:30 +0000 (+0200) Subject: syntaxe POO (visibilité) X-Git-Tag: mw_hello.0.5 X-Git-Url: http://git.dj3c1t.com/?p=mw_hello;a=commitdiff_plain;h=321474e196ffab55dda4ea41c89a35fdfea5c57d syntaxe POO (visibilité) --- 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