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  
    116116  command.class.php 
    117117  utils.lib.php 
    118118cd lib/jelix-scripts/templates 
     119  main.tpl.tpl 
     120  myHtmlResponse.class.php.tpl 
    119121  module.xml.tpl 
    120122  dao.xml.tpl 
    121123  form.xml.tpl 
  • lib/jelix-scripts/commands/createapp.cmd.php

    old new  
    9191       $this->createFile(JELIX_APP_CONFIG_PATH.'dbprofils.ini.php','var/config/dbprofils.ini.php.tpl',$param); 
    9292       $this->createFile(JELIX_APP_CONFIG_PATH.'index/config.ini.php','var/config/index/config.ini.php.tpl',$param); 
    9393 
     94       $this->createFile(JELIX_APP_PATH.'responses/myHtmlResponse.class.php','myHtmlResponse.class.php.tpl',$param); 
     95 
    9496       $param['rp_temp']= jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_TEMP_PATH, true); 
    9597       $param['rp_var'] = jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_VAR_PATH,  true); 
    9698       $param['rp_log'] = jxs_getRelativePath(JELIX_APP_PATH, JELIX_APP_LOG_PATH,  true); 
     
    111113            $cmd = jxs_load_command('createmodule'); 
    112114            $cmd->init(array(),array('module'=>$GLOBALS['APPNAME'])); 
    113115            $cmd->run(); 
     116            $this->createFile(JELIX_APP_PATH.'modules/'.$GLOBALS['APPNAME'].'/templates/main.tpl', 'main.tpl.tpl',$param); 
    114117       } 
    115118 
    116119       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  
     2require_once (JELIX_LIB_RESPONSE_PATH.'jResponseHtml.class.php'); 
     3 
     4class 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  
    11;<?php die(''); ?> 
    22;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 
    34 
    45locale = "fr_FR" 
    56charset = "UTF-8" 
     
    2526;nom = nom_fichier_ini 
    2627 
    2728[responses] 
     29html=myHtmlResponse 
    2830 
    29  
    3031[error_handling] 
    3132messageLogFormat = "%date%\t[%code%]\t%msg%\t%file%\t%line%\n" 
    3233logFile = error.log 
  • lib/jelix/core-modules/jelix/locales/en_EN/jelix.UTF-8.properties

    old new  
    11framework.name=Jelix 
    22framework.slogan=Jelix, a framework for PHP 
     3newapp.h1=Welcome in your new jelix application 
  • lib/jelix/core-modules/jelix/locales/en_US/jelix.UTF-8.properties

    old new  
    11framework.name=Jelix 
    22framework.slogan=Jelix, a framework for PHP 
     3newapp.h1=Welcome in your new jelix application 
  • lib/jelix/core-modules/jelix/locales/fr_FR/jelix.UTF-8.properties

    old new  
    11framework.name=Jelix 
    22framework.slogan=Jelix, framework pour PHP 
    3  
     3newapp.h1=Bienvenue dans votre nouvelle application Jelix 
Download in other formats: Original Format