From dfd00c091ae00fa13c307e8a82aff0871b3d66ae Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Thu, 13 Dec 2012 22:14:43 +0100 Subject: [PATCH] hello world ! --- app/mods/hello/index.php | 10 ++++++++++ mw_hello.php | 19 ++----------------- out/dist/layouts/hello.xml | 10 ++++++++++ out/dist/views/hello/index.php | 1 + 4 files changed, 23 insertions(+), 17 deletions(-) create mode 100644 app/mods/hello/index.php create mode 100644 out/dist/layouts/hello.xml create mode 100644 out/dist/views/hello/index.php diff --git a/app/mods/hello/index.php b/app/mods/hello/index.php new file mode 100644 index 0000000..06b56df --- /dev/null +++ b/app/mods/hello/index.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/mw_hello.php b/mw_hello.php index 16580a4..dc385c3 100644 --- a/mw_hello.php +++ b/mw_hello.php @@ -7,26 +7,11 @@ } function description(){ - return "Un plugin qui affiche une page Hello World ! avec une citation aléatoire"; - } - - function install($env){ - return true; - } - - function uninstall($env){ - return true; - } - - function enable($env){ - return true; - } - - function disable($env){ - return true; + return "Un plugin qui affiche une page Hello World !"; } function init($env){ + $env->set_link("menu_top/hello", $env->url("hello"), "Hello"); return true; } diff --git a/out/dist/layouts/hello.xml b/out/dist/layouts/hello.xml new file mode 100644 index 0000000..64819b7 --- /dev/null +++ b/out/dist/layouts/hello.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/out/dist/views/hello/index.php b/out/dist/views/hello/index.php new file mode 100644 index 0000000..baaeb54 --- /dev/null +++ b/out/dist/views/hello/index.php @@ -0,0 +1 @@ +

Hello World !

\ No newline at end of file -- 2.1.4