Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-04-25 10:32:08

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,200
GitHub

Current official line on use of <txp:php>

Hi, developers and people much smarter than me.
I recently asked a question around the subject of using php (the Textpattern tag, not the language) in Textpattern.

My understanding was that the php tag is deprecated as it throws up a message to that effect whenever I use it in Testing mode. Jukka has corrected me and although I’m pleased php isn’t currently deprecated, it would be great to have some official clarification on its status.

Thank you in advance.

Offline

#2 2013-04-25 10:39:16

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Current official line on use of <txp:php>

The php tag is not deprecated, and is not going to be deprecated in the seeable future. There is no deprecation message in place for it either.

What you may be seeing is an error caused by the code wrapped in the tag, or depending on the Textpattern version, the warning could be about a raw PHP block (<?php ?>) which were deprecated ages a go, and are no longer with us.

Last edited by Gocom (2013-04-25 10:44:49)

Offline

#3 2013-04-25 10:45:08

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,200
GitHub

Re: Current official line on use of <txp:php>

Mea culpa – I had my wires crossed after a late night.

Thanks again for the clarification, Jukka.

Offline

Board footer

Powered by FluxBB