URL: https://www.overclockers.at/coding-stuff/brauche_hilfe_bei_der_smartphp_template_engine_103723/page_1 - zur Vollversion wechseln!
Jo... vom system her hab ich sie schon überrissn wie sie geht
NUR ICH BIN ZU BLÖD das ding richtig zu konfiguriern...
das ist die page (mit configuration)...
http://www.smartphp.net/content/sma...figuration.html
Ich hab jetzt einfach die 3 ".class" files und die php in einem ordner, die .html (eigentlich ists ne template file) im unterordner /tpl
bei mir schaut die config jetzt so aus:
/**
* Whether to store compiled php code or not (for debug purpose)
*
* @access public
*/
var $reuse_code = true;
/**
* Directory where all templates are stored
* Can be overwritten by global configuration array $_CONFIG['template_dir']
*
* @access public
*/
var $template_dir = '/tpl/';
/**
* Where to store compiled templates
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_compiled']
*
* @access public
*/
var $temp_dir = '/tmp/';
/**
* Temporary folder for output cache storage
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_cache']
*
* @access public
*/
var $cache_dir = '/tmp/';
Das "programm" das ich mal zum testn laufen haben möchte ist dieses:
http://www.smartphp.net/Examples/Te...rld.php?menu=44
die 2 files schauen 1:1 bei mir so aus..
ich bekomm jetzt imma den fehler:
Warning: fopen(/tmp/Hello_World_html.php): failed to open stream: No such file or directory in D:\Webserver\xampp\htdocs\smart\class.smarttemplateparser.php on line 206
SmartTemplate Compiler Error: Could not write compiled file.
Da das offizielle forum fürn hugo ist, hoffe ich, dass mir hier wer helfn kann 
tia
versuch es einmal so
/**
* Whether to store compiled php code or not (for debug purpose)
*
* @access public
*/
var $reuse_code = true;
/**
* Directory where all templates are stored
* Can be overwritten by global configuration array $_CONFIG['template_dir']
*
* @access public
*/
var $template_dir = 'tpl/';
/**
* Where to store compiled templates
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_compiled']
*
* @access public
*/
var $temp_dir = 'tmp/';
/**
* Temporary folder for output cache storage
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_cache']
*
* @access public
*/
var $cache_dir = 'tmp/';
hth
existieren die angegebenen dirs? hat tmp/ chmod 777?
MIK
gib die pfade so "D:\\Webserver\\xampp\\htdocs\\tpl\\". an.
hth
sorry es wurde ned angezeigt, dass neue posts dazukamen
ich werds gleich ausprobiern
wie ändert ich bei nem ordner den chmod?
Zitat von XaTeeMversuch es einmal so
/**
* Whether to store compiled php code or not (for debug purpose)
*
* @access public
*/
var $reuse_code = true;
/**
* Directory where all templates are stored
* Can be overwritten by global configuration array $_CONFIG['template_dir']
*
* @access public
*/
var $template_dir = 'tpl/';
/**
* Where to store compiled templates
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_compiled']
*
* @access public
*/
var $temp_dir = 'tmp/';
/**
* Temporary folder for output cache storage
* Can be overwritten by global configuration array $_CONFIG['smarttemplate_cache']
*
* @access public
*/
var $cache_dir = 'tmp/';
hth
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026