Welcome Guest, Not a member yet? Register   Sign In
View file extension php; can it be html?
#4

[eluser]Colin Williams[/eluser]
EDIT: I was wrong. The file extension does not matter because the PHP parser is already running for the given request. It could be filename.monkeyface if you wanted, but the loader class will look for .php if no extension is provided. Glaringly obvious but I had a slight lapse in memory there.

Quote:
Quote:to recognize template code within template files (very similar to view file in CodeIgniter)

View files are just PHP files.

Quote:The ‘standard’ ‘out of the box’ Apche + php set-up does guarantee to parse php content within html files.

Really? Because I think I have an 'out of the box' apache 2 install, and it has DefaultType set to text/plain, and I don't see "AddType application/x-httpd-php .html" anywhere in it.


Messages In This Thread
View file extension php; can it be html? - by El Forum - 08-31-2008, 02:43 PM
View file extension php; can it be html? - by El Forum - 08-31-2008, 04:17 PM
View file extension php; can it be html? - by El Forum - 09-01-2008, 03:16 AM
View file extension php; can it be html? - by El Forum - 09-01-2008, 03:25 AM
View file extension php; can it be html? - by El Forum - 09-01-2008, 03:36 AM
View file extension php; can it be html? - by El Forum - 09-01-2008, 04:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB