Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

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

Who's Online

186 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits