XHTML.net

Technology talks by Loïc d’Anterroches

News, articles, PHP, scripts, XHTML/CSS, …

  1. Home
  2. PHP: Hypertext Preprocessor
  3. Pluf - Framework en PHP5

Administration automatique pour Pluf, cela avance

The 2008-04-14 at 11:38 by Loïc d'Anterroches filed under Pluf - Framework en PHP5.

Liste des choses à faire via l'admin

Ajouter quelque chose à faire via l'admin

Comme vous pouvez le voir, les modèles de l’application de test peuvent être directement utilisés dans l’interface d’administration. Pour les déclarer dans l’administration, seul un fichier papp.php suffit. Voici le contenu de ce fichier :

return array('path' => 'todo',
            'name' => __('Todo Manager'),
            'models' => array('list' => 
                              array('model' => 'Todo_List',
                                    ),
                              'item' =>
                              array('model' => 'Todo_Item',
                                    'list_display' => 
                                    array('item', 
                                          'completed',
                                          ),
                                    ),
                              ),
            );

Vraiment tout simple…

Comments from readers

loïc m. said:

Je sens qu'on va vraiment s'amuser avec Plume 2 :D
Miam !

Voice your ideas

It is painless and I try not to kill electrons in the process.


Your email is required but will not be shared nor displayed.


Do you think your comment will force me to write even better stuff next time? If so, you simply rock.


Logo of Plume CMS