| Re: HTML Code messed up in PHP source code (a beginner question) |
| by sottwell on 2004/7/11 7:36:09 hhttp://wiki.xoops.org/wakka.php?wakka=HomePage Some explanations and tutorials here. Also check links on left column of this page
|
| Re: HTML Code messed up in PHP source code (a beginner question) |
| by adwin on 2004/7/7 13:31:34 I just wonder, why admin part modules didnt use Smarty ? Imho, I think smarty help so much for separating view (design) and logic(code). May be some of you have a good reason for this decision :) ps: Where I can get the offline documentation of module development ? is there any ? thx adwin
|
| Re: HTML Code messed up in PHP source code (a beginner question) |
| by Dave_L on 2004/7/7 11:56:11 (duplicate post - ignore) |
| Re: HTML Code messed up in PHP source code (a beginner question) |
| by Dave_L on 2004/7/7 11:55:53 It's better to separate the presentation from the content, as you described, and you can do that if you're writing a new module. Some of the existing code doesn't do it correctly. Where did you see the echo '<br>';? P.S. An exception is the admin part of the module. It's possible to use Smarty templates for that, but the documentation doesn't really show you how. |
| HTML Code messed up in PHP source code (a beginner question) |
| by adwin on 2004/7/7 11:43:48 Hi... I am a new bie for XOOPS. I want to develop a new module for my web site. I have question regarding the codes in XOOPS (core ?). Why you guys put such as echo '<br>' ; (drawing HTML code) in php. Is it better to separate between display (html template) with the code (*.php) ? I use smarty for quite long time and I get used to make separate between php code (logic) with the display (html). In this way, I can do better coding while my web designer can do the page design without messing my code. And can I separate between code and display, for my module, with the XOOPS ? thx
|