diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-09 21:03:50 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-09 21:03:50 +0000 |
commit | 9e0955c96d888fc2e00014498d095a7d65ab48fb (patch) | |
tree | 72a08e21be4d61b7ea2ec56891652355c22c5e2c /h-source/Application/Controllers/HomeController.php | |
parent | f8f3c572e55c90ae13253eb8c910a030bf175e09 (diff) |
improved the way modules are taken from an xml configuration string
Diffstat (limited to 'h-source/Application/Controllers/HomeController.php')
-rw-r--r-- | h-source/Application/Controllers/HomeController.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/h-source/Application/Controllers/HomeController.php b/h-source/Application/Controllers/HomeController.php index 96479f3..eecb53f 100644 --- a/h-source/Application/Controllers/HomeController.php +++ b/h-source/Application/Controllers/HomeController.php @@ -37,14 +37,8 @@ class HomeController extends BaseController public function index($lang = 'en') { // get the news container - $data['htmlNewsBox'] = null; - $xml = $this->getBox(array('top_news')); - if ($xml) - { - $box_news = new BoxParser($xml); - $data['htmlNewsBox'] = $box_news->render(); - } - + $data['htmlNewsBox'] = $this->getModule(array('top_news')); + $this->append($data); $this->cleverLoad('left'); $this->right($lang); |