Re: HTML_Template_Flexy private vars in controller
| From: | Alan Knowles | Date: | Wed, 02 Jul 2003 00:30:06 +0000 |
| Subject: | Re: HTML_Template_Flexy private vars in controller | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-6372@lists.php.net to get a copy of this message | ||
Didier Galland wrote:
Is Flexy skipping private vars in the controller and doesn't output them ? I mean vars that begins by an underscore. So if $_test in the controller and {_test} in the template, {_test} is outputed without modification ({test} from $test is outputed normally). I would like to know if this is an intended feature It was.and if this feature will
remains in future versions of flexy. I'm open to ideas on this.It is (would be ?) a nice feature, when
setting vars to output automatically (with get_object_vars($this) e.g.), the old version did do something like that, if you have not disabled php in code, at present you can do<script language="php"> print_r($t); </script> from what I remember, I did add it as a modifier in early versions - eg: {t:r} but have no made any decisisons on modifiers for the current version.
also providing a mean to set a nice api / doc for designers (hiding private vars). Not quite sure what you are getting at here - have you got an example?Regards Alan
Regards, Didier