Ticket #496: patch-496-3.diff
| File patch-496-3.diff, 4.6 kB (added by bastnic, 10 months ago) |
|---|
-
build/manifests/jelix-dev.mn
old new 116 116 command.class.php 117 117 utils.lib.php 118 118 cd lib/jelix-scripts/templates 119 main.tpl.tpl 120 myHtmlResponse.class.php.tpl 119 121 module.xml.tpl 120 122 dao.xml.tpl 121 123 form.xml.tpl -
lib/jelix-scripts/commands/createapp.cmd.php
old new 91 91 $this->createFile(JELIX_APP_CONFIG_PATH.'dbprofils.ini.php','var/config/dbprofils.ini.php.tpl',$param); 92 92 $this->createFile(JELIX_APP_CONFIG_PATH.'index/config.ini.php','var/config/index/config.ini.php.tpl',$param); 93 93 94 $this->createFile(JELIX_APP_PATH.'responses/myHtmlResponse.class.php','myHtmlResponse.class.php.tpl',$param); 95 94 96 $param['rp_temp']= jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_TEMP_PATH, true); 95 97 $param['rp_var'] = jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_VAR_PATH, true); 96 98 $param['rp_log'] = jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_LOG_PATH, true); … … 111 113 $cmd = jxs_load_command('createmodule'); 112 114 $cmd->init(array(),array('module'=>$GLOBALS['APPNAME'])); 113 115 $cmd->run(); 116 $this->createFile(JELIX_APP_PATH.'modules/'.$GLOBALS['APPNAME'].'/templates/main.tpl', 'main.tpl.tpl',$param); 114 117 } 115 118 116 119 if ($this->getOption('-withcmdline')) { -
lib/jelix-scripts/templates/main.tpl.tpl
old new 1 <h1 class="apptitle">{@jelix~jelix.newapp.h1@} : {$appname}</h1> 2 3 {{$MAIN}$MAIN} -
lib/jelix-scripts/templates/myHtmlResponse.class.php.tpl
old new 1 <?php 2 require_once (JELIX_LIB_RESPONSE_PATH.'jResponseHtml.class.php'); 3 4 class myHtmlResponse extends jResponseHtml { 5 6 protected function _commonProcess() { 7 $this->bodyTpl = '{$appname}~main'; 8 $this->body->assignIfNone('MAIN','<p>no content</p>'); 9 10 } 11 } 12 ?> -
lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl
old new 1 1 ;<?php die(''); ?> 2 2 ;for security reasons , don't remove or modify the first line 3 ;this file doesn't list all possible properties. See lib/jelix/core/defaultconfig.ini.php for that 3 4 4 5 locale = "fr_FR" 5 6 charset = "UTF-8" … … 25 26 ;nom = nom_fichier_ini 26 27 27 28 [responses] 29 html=myHtmlResponse 28 30 29 30 31 [error_handling] 31 32 messageLogFormat = "%date%\t[%code%]\t%msg%\t%file%\t%line%\n" 32 33 logFile = error.log -
lib/jelix/core-modules/jelix/locales/en_EN/jelix.UTF-8.properties
old new 1 1 framework.name=Jelix 2 2 framework.slogan=Jelix, a framework for PHP 3 newapp.h1=Welcome in your new jelix application -
lib/jelix/core-modules/jelix/locales/en_US/jelix.UTF-8.properties
old new 1 1 framework.name=Jelix 2 2 framework.slogan=Jelix, a framework for PHP 3 newapp.h1=Welcome in your new jelix application -
lib/jelix/core-modules/jelix/locales/fr_FR/jelix.UTF-8.properties
old new 1 1 framework.name=Jelix 2 2 framework.slogan=Jelix, framework pour PHP 3 3 newapp.h1=Bienvenue dans votre nouvelle application Jelix
