<?php class Template { var $strTemplateDir = './templates/testowy'; var $strBeginTag = '{'; var $strEndTag = '}'; function assign( $strVar, $strValue ) { $this->arrVars[] = $this->strBeginTag . $strVar . $this->strEndTag; $this->arrValues[] = $strValue; } function display( $strFile ) { } } ?>
wszystko dziala ok, ale chce zrobic mozliwosc podmiany templetow, i jak zrobie cos takiego:
<?php $wybranystyl = \"testowy\"; class Template { var $strTemplateDir = './templates/'.$wybranystyl; // tu jest cos nie tak var $strBeginTag = '{'; var $strEndTag = '}'; function assign( $strVar, $strValue ) { $this->arrVars[] = $this->strBeginTag . $strVar . $this->strEndTag; $this->arrValues[] = $strValue; } function display( $strFile ) { } } ?>
to wywala bledy :/