Outils pour utilisateurs

Outils du site


om_etape3

Ceci est une ancienne révision du document !


Créer la maquette

tutorial openMairie

Dans allons dans ce chapitre créer le menu et créer les objets de l'application métier pour avoir une première maquette de l'application.

créer le menu d'accès à l'application

Nous allons créer le menu en surchargeant la méthode ci dessous dans la classe framework_openmairie.class.php de la manière suivante :

/var/www/html/formation/f1/app# nano framework_openmairie.class.php
    protected function set_config__menu() {
        parent::set_config__menu();
        $parent_menu = $this->config__menu;
		// {{{ Rubrique APPLICATION
		//
		$rubrik = array(
			"title" => _("application"),
			"class" => "application",
		);
		//
		$links = array();
		//
		// ---> 
		//
		$links[] = array(
			"href" => OM_ROUTE_TAB."&obj=adherent",
			"class" => "adherent",
			"title" => _("adherent"),
			"right" => array("adherent", "adherent_tab", ),
			"open" => array(
				"tab.php|adherent",
				"index.php|page[module=tab]",
				"form.php|page",
				"index.php|page[module=form]",
			),
		);	
		$rubrik['links'] = $links;
		//
		$menu[] = $rubrik;
		// }}}
		// {{{ Rubrique PARAMETRAGE
		//
		$rubrik = array(
			"title" => _("parametrage metier"),
			"class" => "parametrage",
		);
		//
		$links = array();
		//	 
		$links[] = array(
			"href" => OM_ROUTE_TAB."&obj=conference",
			"class" => "conference",
			"title" => _("conference"),
			"right" => array("conference", "conference_tab", ),
			"open" => array(
				"tab.php|conference",
				"index.php|conference[module=tab]",
				"form.php|conference",
				"index.php|conference[module=form]",
			),
		);
		//
		$rubrik['links'] = $links;
		//
		$menu[] = $rubrik;
		// }}}

        $this->config__menu = array_merge(
            $menu,
            $parent_menu
        );
	}

Création des répertoires pour la génération d'objet

arborescence

gen/obj/
    sql/pgsql/
    dyn/gen.inc
## creation des repertoires de génération
/var/www/html/formation/f1# mkdir gen
/var/www/html/formation/f1/gen# mkdir obj
/var/www/html/formation/f1/gen# mkdir sql
/var/www/html/formation/f1/gen# mkdir dyn 
/var/www/html/formation/f1/gen/sql# mkdir pgsql
om_etape3.1590134909.txt.gz · Dernière modification : 2020/05/22 08:08 de fraynaud