diff --git a/helloworld.xml b/helloworld.xml index 2aeeba0..c40417d 100644 --- a/helloworld.xml +++ b/helloworld.xml @@ -1,4 +1,3 @@ - @@ -12,7 +11,7 @@ Copyright Info License Info - 0.0.1 + 0.0.3 Description of the Hello World component ... @@ -29,6 +28,8 @@ index.html helloworld.php + controller.php + views diff --git a/site/controller.php b/site/controller.php new file mode 100644 index 0000000..64bef6d --- /dev/null +++ b/site/controller.php @@ -0,0 +1,13 @@ +input; +$controller->execute($input->getCmd('task')); + +// Redirect if set by the controller +$controller->redirect(); \ No newline at end of file diff --git a/site/views/helloworld/index.html b/site/views/helloworld/index.html new file mode 100644 index 0000000..fa6d84e --- /dev/null +++ b/site/views/helloworld/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site/views/helloworld/tmpl/default.php b/site/views/helloworld/tmpl/default.php new file mode 100644 index 0000000..3e79da9 --- /dev/null +++ b/site/views/helloworld/tmpl/default.php @@ -0,0 +1,5 @@ + +

msg; ?>

\ No newline at end of file diff --git a/site/views/helloworld/tmpl/default.xml b/site/views/helloworld/tmpl/default.xml new file mode 100644 index 0000000..4f15edd --- /dev/null +++ b/site/views/helloworld/tmpl/default.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/site/views/helloworld/tmpl/index.html b/site/views/helloworld/tmpl/index.html new file mode 100644 index 0000000..fa6d84e --- /dev/null +++ b/site/views/helloworld/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site/views/helloworld/view.html.php b/site/views/helloworld/view.html.php new file mode 100644 index 0000000..fe7753a --- /dev/null +++ b/site/views/helloworld/view.html.php @@ -0,0 +1,22 @@ +msg = 'Hello World'; + + // Display the view + parent::display($tpl); + } +} \ No newline at end of file diff --git a/site/views/index.html b/site/views/index.html new file mode 100644 index 0000000..fa6d84e --- /dev/null +++ b/site/views/index.html @@ -0,0 +1 @@ + \ No newline at end of file