Labinvent nouvelle version
Version 9 (Alexandre Cases, 04/19/2016 11:06 am) → Version 10/222 (Alexandre Cases, 04/19/2016 11:07 am)
h1. Labinvent nouvelle version
h2. Installation Labinvent 2.0 (Utilisateurs)
h3. A/ PRELIMINAIRES
h3. B/ INSTALLATION
h2. Migration CakePHP3 (Sous UBuntu)
h3. Création projet avec Composer
* Télécharger composer.phar :
"curl -s https://getcomposer.org/installer | php"
* Avec le Composer créer un nouveau projet :
"php composer.phar create-project --prefer-dist cakephp/app labinvent_2.0"
> Voir structure projet : http://book.cakephp.org/3.0/fr/intro/cakephp-folder-structure.html
* On rempli la base de données avec le fichier sql
* On indique la BD utilisé à CakePHP dans le fichier config/app.php, propriété "Datasources".
* On se place à la racine du projet
* On génère le code Scaffold :
"bin/cake bake all nom_table" --> ça génére les modeles, les vues, et les controlleurs.
> Commande (en une fois) :
> > bin/cake bake all categories && bin/cake bake all emprunts && bin/cake bake all groupes_metiers && bin/cake bake all groupes_thematiques && bin/cake bake all organismes && bin/cake bake all sites && bin/cake bake all sous_categories && bin/cake bake all suivis && bin/cake bake all sur_categories && bin/cake bake all type_suivis && bin/cake bake all documents && bin/cake bake all utilisateurs && bin/cake bake all materiel
h3. Modification de la base de données
* Table documents et fichiers en doublon
* Attribut organisme dans la table matériel à supprimer
h2. Installation Labinvent 2.0 (Utilisateurs)
h3. A/ PRELIMINAIRES
h3. B/ INSTALLATION
h2. Migration CakePHP3 (Sous UBuntu)
h3. Création projet avec Composer
* Télécharger composer.phar :
"curl -s https://getcomposer.org/installer | php"
* Avec le Composer créer un nouveau projet :
"php composer.phar create-project --prefer-dist cakephp/app labinvent_2.0"
> Voir structure projet : http://book.cakephp.org/3.0/fr/intro/cakephp-folder-structure.html
* On rempli la base de données avec le fichier sql
* On indique la BD utilisé à CakePHP dans le fichier config/app.php, propriété "Datasources".
* On se place à la racine du projet
* On génère le code Scaffold :
"bin/cake bake all nom_table" --> ça génére les modeles, les vues, et les controlleurs.
> Commande (en une fois) :
> > bin/cake bake all categories && bin/cake bake all emprunts && bin/cake bake all groupes_metiers && bin/cake bake all groupes_thematiques && bin/cake bake all organismes && bin/cake bake all sites && bin/cake bake all sous_categories && bin/cake bake all suivis && bin/cake bake all sur_categories && bin/cake bake all type_suivis && bin/cake bake all documents && bin/cake bake all utilisateurs && bin/cake bake all materiel
h3. Modification de la base de données
* Table documents et fichiers en doublon
* Attribut organisme dans la table matériel à supprimer