Is it possible to replace the home.htm, master.htm, and user.htm with PHP versions in Xanthia? If so, what configuration changes should be made to a Xanthia theme to accomplish this?
If this is possible, is there a reason NOT to do this? Being something of a newbie to Xanthia, I'm not sure I understand why htm files are used in Xanthia anyway.
TIA
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
php home, master, and user files
-
- Rank: Freshman
- Registered: Dec 10, 2004
- Last visit: Oct 21, 2009
- Posts: 81
-
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
they are just template files and as far as i know, they cant be replaced with PHP files. Which of course would take away the whole idea of seperation of presentation and logic. Why are u wanting to use PHP files? Smarty is pretty powerful and you can use that within your templates when needed. -
- Rank: Freshman
- Registered: Dec 10, 2004
- Last visit: Oct 21, 2009
- Posts: 81
Thank you MACscr! I just needed some reassurance that PHP was at least an option.
I think I understand the reason for the htm now. Separation of presentation and logic... the same thing that alienated me from ASP when it went .NET! I guess because my stuff is pretty simple, I've never been able to see any benefit to such a seperation. Indeed, I find inline code much more intuitive to create and simpler to debug.
Cheers! -
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
Its just a theme, you dont HAVE to use templates for any module or blocks output. Using Xanthia and templates enables u to cache your themes and with pnrender, it can cache the data output too. Its definately worth it. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
there's really know good reason to put application logic in with output, apart from the few microseconds you gain in script execution time, which is removed anyway when you cache the output.
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide
- Moderated by:
- Support
