Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [Opened] Comment récupérer $j_basepath dans le controlleur ?

Posted by pheromix on 04/26/2016 18:06

Il est facile de récupérer $j_basepath dans un template en écrivant simplement {$j_basepath}. Par contre comment le récupérer depuis un controlleur ?

  [Opened] Comment récupérer $j_basepath dans le controlleur ?

Reply #1 Posted by dlalleme on 04/29/2016 08:38

Bonjour,

La solution est peut être

Cordialement

Denis

  [Opened] Comment récupérer $j_basepath dans le controlleur ?

Reply #2 Posted by laurentj on 05/09/2016 12:07

l'équivalent est

jApp::urlBasePath();
 
Page
  1. Modifier le profile de connexion "à la volée" dans un jForms <datasource dao="testapp~config" ... >
  2. [MIGRATION] Jelix 1.2b1pre.1458 >
  3. [MIGRATION] Jelix 1.2b1pre.1458 >
  4. Affichage de formulaire utilisant Boostrap >
  5. [MIGRATION] Jelix 1.2b1pre.1458 >
  6. Comment récupérer $j_basepath dans le controlleur ?