index.tpl.php

1 lines ASCII Unix (LF)
1
<h1>Module Manager</h1>


<h2>About</h2>
<p><strong>Module Manager</strong> displays information on modules and enable managing of all Lydia modules. Lydia is made up of modules. Each module
has its own subdirectory in the <code>src</code>-directory.</p>


<h2>Manage Lydia modules</h2>
<p>A module can implement the interface <code>IModule</code>
which makes it a manageable module. Lydia provides a administrating interface for these
modules. You can perform the following actions through this interface:</p>

<ul>
  <?php foreach($actions as $action => $description): ?>
  <li><a href='<?=create_url("module/action/$action")?>'><?=$action?></a>: <?=$description?></li>
  <?php endforeach; ?>
</ul>


<h2>Load database through SQL</h2>
<p>Use this procedure to import a previous exported database, or parts of it.</p>

<ul>
  <li><a href='<?=create_url('module/execute-sql')?>'>Execute SQL</a></li>
</ul>


<h2>Enabled controllers</h2>
<p>The controllers make up the public API of this website. Here is a list of the enabled 
controllers and their methods. You enable and disable controllers in 
<code>site/config.php</code>.</p>

<ul>
<?php foreach($controllers as $key => $val): ?>
  <li><a href='<?=create_url($key)?>'><?=$key?></a></li>

  <?php if(!empty($val)): ?>
  <ul>
  <?php foreach($val as $method): ?>
    <li><a href='<?=create_url($key, $method)?>'><?=$method?></a></li> 
  <?php endforeach; ?>        
  </ul>
  <?php endif; ?>
  
<?php endforeach; ?>        
</ul>