);
}
- public function templateContext($request)
+ public function appList($request)
{
$app_list = array();
foreach (IPF_Project::getInstance()->appList() as $app) {
);
}
}
+ return $app_list;
+ }
+ public function templateContext($request)
+ {
return array(
'IPF_VER' => IPF::version(),
'ADMIN_MEDIA_URL' => IPF::get('static_url') . 'admin/',
'admin_title' => IPF::get('admin_title'),
'indexpage_url' => IPF::get('indexpage_url', '/'),
- 'app_list' => $app_list,
+ 'app_list' => F::bind(array($this, 'appList'), $request),
);
}
<div id="content" class="colMS dashboard">
<h1>{$page_title}</h1>
<div id="content-main">
- {foreach $app_list as $app}
+ {foreach $app_list() as $app}
<div class="module">
<table summary="">
<caption>{$app.name|escxml}</caption>