PHP and HTML arrangement
Posted: Fri Jun 10, 2005 2:36 am
hello, i am new here. i've found this forum very recently and i already noticed some nice and intelligent discussions here.
i am a true beginner at PHP, although programming is not something totally new for me (been using Pascal (which i didn't like actually), C/C++, Java (didn't enjoy this one much either)). anyways, i have a few questions regarding php and html code organization in projects. form what i found on the net (tutorials etc), i got the impression that many mix php with html quite a lot, and it can get really messy after some time. so the things i wanted to find out:
what is the preferrable way to organize the actual code that "does things", and html (+ a bit of php maybe) which displays them? is this what is called templating? is this what templating programs do (Smarty?)? well, atm, i'm not sure i would want to use any 3rd party software to organize my project code. what i am interested in is how it is done. bascially, i recieve site design in html from a designer, and then what? do i start coding inside the htmls?? i was told it is done this way by one dev, but i would want some separation and organization. there were some discussions here regarding the same, but i still fail to understand how i should start, probably because i lack any examples. if some of you could drop a little example that would definately help me a lot. a link to a correct tutorial could do as well i think, but at first i would need it really simple.
what is the preferrable way to organize the actual code that "does things", and html (+ a bit of php maybe) which displays them? is this what is called templating? is this what templating programs do (Smarty?)? well, atm, i'm not sure i would want to use any 3rd party software to organize my project code. what i am interested in is how it is done. bascially, i recieve site design in html from a designer, and then what? do i start coding inside the htmls?? i was told it is done this way by one dev, but i would want some separation and organization. there were some discussions here regarding the same, but i still fail to understand how i should start, probably because i lack any examples. if some of you could drop a little example that would definately help me a lot. a link to a correct tutorial could do as well i think, but at first i would need it really simple.