From: dj3c1t Date: Thu, 13 Dec 2012 21:14:43 +0000 (+0100) Subject: hello world ! X-Git-Tag: mw_hello.0.1 X-Git-Url: http://git.dj3c1t.com/?p=mw_hello;a=commitdiff_plain;h=dfd00c091ae00fa13c307e8a82aff0871b3d66ae hello world ! --- 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