foreach (array_keys(\File::read_dir(APPPATH . DS . 'modules', 1)) as $module) { \Fuel::add_module ($module); \Config::load ($module . '::' . $module, $module); $data ['modules'] [$module] = \Config::get ($module); }
foreach($modules as $key => $info) { echo '<h2>'.ucfirst($key).'</h2>'; echo \Html::anchor($key, ucfirst($key)).' - '; echo \Html::anchor($key.'/admin', ucfirst($key).' Admin'); echo '<p>'; echo $info['name']; echo '<br />'; echo $info['description']; echo '<br />'; echo $info['author']; echo '<br />'; echo $info['version']; echo '<br />'; echo $info['installed'] ? 'true' : 'false'; echo '</p>'; echo '<hr />'; }
Phil Foulston wrote on Sunday 24th of July 2011:Yeah thought it was cool so I stole it Hope you don't mind? What do you think of CmsPage as a starting point? Need input. I was thinking of writing a module management package done some basic stuff:
foreach (array_keys(\File::read_dir(APPPATH . DS . 'modules', 1)) as $module) { \Fuel::add_module ($module); \Config::load ($module . '::' . $module, $module); $data ['modules'] [$module] = \Config::get ($module); }foreach($modules as $key => $info) { echo '<h2>'.ucfirst($key).'</h2>'; echo \Html::anchor($key, ucfirst($key)).' - '; echo \Html::anchor($key.'/admin', ucfirst($key).' Admin'); echo '<p>'; echo $info['name']; echo '<br />'; echo $info['description']; echo '<br />'; echo $info['author']; echo '<br />'; echo $info['version']; echo '<br />'; echo $info['installed'] ? 'true' : 'false'; echo '</p>'; echo '<hr />'; }
It uses a config file but could drive an installer etc... But thought I would wait to see if there is much interest in the CmsPage package first.
It looks like you're new here. If you want to get involved, click one of these buttons!