Re: Modular: Fusebox & Classes/OOP
| From: | (Tom) | Date: | Fri, 24 Nov 2000 17:33:00 +0000 |
| Subject: | Re: Modular: Fusebox & Classes/OOP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26983@lists.php.net to get a copy of this message | ||
For my 4.03pl1 (Unix) installation
<?= $var?> syntax does work just fine, even with asp_tags OFF
but that syntax does require short_open_tags ON
HTH
geoff@britishgoldsmiths.com ("Geoff Caplan") wrote in
<000b01c05634$3e807cf0$0339a8c0@helios>:
>Michael Kimsal wrote:
>
>> > 5) So now we include() our screen templates, which have been set up
>> > with
>the
>> > usual {placeholders} for the dynamic_data, and the last step is to
>> > call
>the
>> > parser, substitute in the variables, and print() the results.
>> >
>>
>> Any reason why you don't just do <?=$data;?> instead of {placeholder}
>> in the templates?
>>
>
>In case anyone wants to try this the notation above does not work. So
>far as I can see, you have to set "On" in the php.ini line:
>
>asp_tags = On ; allow ASP-style <% %> tags
>
>This enables the variable-value printing shorthand of <%= $value %>.
>Note that there is no colon ;
>
>This seems to work fine. It took me a bit of time to track this down in
>the docs, so I thought I would pass it on.
>
>Once again, thanks to Michael for the suggestion
>
>Geoff Caplan
>British Goldsmiths
>-----------------------------------
>Tel: (+44) 121 515 1154
>email: geoff@britishgoldsmiths.com.
>
>