mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Mise en place des dossiers pour les templates
This commit is contained in:
parent
a89b0c79ad
commit
79b2c47941
39 changed files with 63 additions and 136 deletions
|
@ -15,18 +15,9 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* Cette fonction est alias de showAll()
|
||||
* Cette fonction retourne toutes les commandes, sous forme d'un tableau permettant l'administration de ces commandess
|
||||
*/
|
||||
public function byDefault()
|
||||
{
|
||||
$this->showAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Cette fonction retourne toutes les commandes, sous forme d'un tableau permettant l'administration de ces commandess
|
||||
* @return void;
|
||||
*/
|
||||
public function showAll()
|
||||
{
|
||||
//Creation de l'object de base de données
|
||||
global $db;
|
||||
|
@ -34,7 +25,7 @@
|
|||
//Recupération des commandes
|
||||
$commands = $db->getFromTableWhere('commands');
|
||||
|
||||
$this->render('commands', array(
|
||||
$this->render('commands/default', array(
|
||||
'commands' => $commands,
|
||||
));
|
||||
|
||||
|
@ -67,7 +58,7 @@
|
|||
*/
|
||||
public function add()
|
||||
{
|
||||
$this->render('addCommand');
|
||||
$this->render('commands/add');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -79,7 +70,7 @@
|
|||
global $db;
|
||||
|
||||
$commands = $db->getCommandsIn($ids);
|
||||
$this->render('editCommands', array(
|
||||
$this->render('commands/edit', array(
|
||||
'commands' => $commands,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue