Re: associative arrays with template_flexy ?

From: Date: Wed, 28 May 2003 09:37:55 +0000
Subject: Re: associative arrays with template_flexy ?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5652@lists.php.net to get a copy of this message
>Well, i had the same problem , but i think using objects is the better >way, so you can then use a syntax like : {element->value}. > Thanks for the hint! Anyway, I still prefer to work with arrays so I don't need to declare a variable for each chunk in the element class. For example: class controller { var $chunks = array(); ... function set_chunk($key, $value) { $this->chunks[$key] = $value; } } Regards, Daniel

« previous php.pear.general (#5652) next »