davej Posted November 11, 2013 Share Posted November 11, 2013 It seems to me that you could mix HTML files with Php files or you could just use Php files. Which approach is more interesting? Link to comment Share on other sites More sharing options...
justsomeguy Posted November 11, 2013 Share Posted November 11, 2013 If you're talking about filenames, I always name the files .php files even if they don't have any PHP code in them, so that if I do add PHP code I don't have to change filenames and links. 1 Link to comment Share on other sites More sharing options...
davej Posted November 11, 2013 Author Share Posted November 11, 2013 Yes, if I keep the "view" pages as HTML then I'm forced to use AJAX to obtain every last detail. Link to comment Share on other sites More sharing options...
Sora Posted November 11, 2013 Share Posted November 11, 2013 If you're talking about filenames, I always name the files .php files even if they don't have any PHP code in them, so that if I do add PHP code I don't have to change filenames and links. This is what I do as well, and what I would recommend. Link to comment Share on other sites More sharing options...
Mudsaf Posted November 12, 2013 Share Posted November 12, 2013 Yea i usually use .PHP also, unless i have to work with styling and i don't have apache server nearby. I love the PHP include so i don't have to write same code dozen times to every page. 1 Link to comment Share on other sites More sharing options...
thescientist Posted November 12, 2013 Share Posted November 12, 2013 I have come to loath mixing markup in backend code. API-centric design all the way. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now