clean and simplify tree of the plugin
This commit is contained in:
parent
35c88400b0
commit
12a11611c6
18 changed files with 31 additions and 77 deletions
21
src/www/admin/entrees/index.php
Normal file
21
src/www/admin/entrees/index.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
|
||||
use Garradin\Plugin\Materiels\Equipment;
|
||||
use Garradin\Plugin\Materiels\Entry;
|
||||
|
||||
require_once __DIR__ . '/../_inc.php';
|
||||
|
||||
$eqmt = new Equipment;
|
||||
$entry = new Entry;
|
||||
|
||||
$entries = $entry->listAll();
|
||||
|
||||
foreach ($entries as $key => $value) {
|
||||
$entries[$key]->equipment = $eqmt->get($value->equipment_id);
|
||||
}
|
||||
|
||||
$tpl->assign(compact('entries'));
|
||||
|
||||
$tpl->display(PLUGIN_ROOT . '/templates/entrees/index.tpl');
|
||||
Loading…
Add table
Add a link
Reference in a new issue