class templates extends smarty{
var $smarty;
var $tags = array();
var $stringToTags = array();
var $inputTags = "";
var $inputStrings = "";
var $fetch = array();
var $options = array(parseType=>"",
templateURL=>"",
query=>"",
dynamicVariableEnable=>0,
dynamicVariable=>0,
breakToNUll=>0
);
function startParse(){
//rastavlja ulazne varijable u jedan niz
$this->tags = explode(",", $this->inputTags);
$this->stringToTags = explode(",", $this->inputStrings);
//selektira statično ili dinamično
switch($this->options[parseType]){
case "static":
$this->parseStatic();
break;
case "dynamic":
$this->parseDynamic();
break;
}
}
Ovako, to je dio koda klase koja se zasniva na smartyu... klasa
napravi ono što treba... znači ispiše tagove i vrijednosti koje smarty
treba pridružiti... ali je problem u tome što smarty ne pridruži vrijednost kako treba.. uvijek pridruži samo prvi tag i prvu vrijednost...a
ostalo ne..
Pls Help... dal' moram nešto sa constructorom napraviti ili?
class templates extends smarty{
var $smarty;
var $tags = array();
var $stringToTags = array();
var $inputTags = "";
var $inputStrings = "";
var $fetch = array();
var $options = array(parseType=>"",
templateURL=>"",
query=>"",
dynamicVariableEnable=>0,
dynamicVariable=>0,
breakToNUll=>0
);
function startParse(){
//rastavlja ulazne varijable u jedan niz
$this->tags = explode(",", $this->inputTags);
$this->stringToTags = explode(",", $this->inputStrings);
//selektira statično ili dinamično
switch($this->options[parseType]){
case "static":
$this->parseStatic();
break;
case "dynamic":
$this->parseDynamic();
break;
}
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum