
- You are not logged in. | Login
February 20, 2007 12:50 pm
- Conker
- Member


Question concerning output of a site
I have a question. Up to the moment I??™ve been making sites like these:
include"file with heading"; // Put out with script upper navigation include" file with the beginning of the left column ( something like <table> <tr><td ... > )"; // Put out content into the left column include" file with </td><td ...> ... "; // Put out the rest of content include"file closing table??™s tags and with footer"
Of course, I??™ve simplified this code on purpose having left only the basic constructions and so you shouldn??™t blame me for some ???constructions??™.
The fact is that I??™m not satisfied with such approach any more. And so I??™d like to ask you for advice how to put out the final result (a page) immediately into the user??™s browser.
February 20, 2007 12:53 pm
- biopd42
- Member


Re: Question concerning output of a site
What??™s the problem? I still keep doing like this and I??™m satisfied. Why aren??™t you satisfied?
February 20, 2007 12:56 pm
- Conker
- Member


Re: Question concerning output of a site
It??™s nothing especially inconvenient for me but maybe someone has something more advanced? I have been doing like this for three years. It could become out of date.
February 20, 2007 12:58 pm
- shadow122
- Member


Re: Question concerning output of a site
There is nothing principally new except for contents of the linked up files. Your contents are just on the elementary level but such variant is still capable of working.
February 20, 2007 1:03 pm
- biopd42
- Member


Re: Question concerning output of a site
Conker, I do it in other way
include"settings"; // code which receives page??™s contents. include"file with heading "; include"page??™s template"; include"file closing table??™s tags with footer "
February 20, 2007 1:07 pm
- franzkafka
- Member


Re: Question concerning output of a site
As soon as you use tabular making-up you??™d better keep the entire skeleton of a site within one cabinet instead of hiding its bones in different drawers
include "settings.php"; include "controller.php "; ?><table><? ?><tr><? ?><td colspan=2>include "up.php";</td><? ?></tr><tr><? ?><td>include "left.php";</td><? ?><td>include "right.php";</td><? ?></tr><tr><? ?><td colspan=2>include "down.php";</td><? ?></tr><? ?></table><?
February 20, 2007 1:12 pm
- bandlist12
- Member


Re: Question concerning output of a site
franzkafka, we don??™t need any includes within template at all??¦
February 20, 2007 1:16 pm
- biopd42
- Member


Re: Question concerning output of a site
bandlist12, from my point of view, include is one of the constructions which should be present in template. But a template itself isn??™t presented here. It is substituted with some ???skeleton??™ which matter I cannot realize.
February 20, 2007 1:20 pm
- franzkafka
- Member


Re: Question concerning output of a site
biopd42, a table distributed among files creates big problems for the future. If you don??™t want to follow my example, you can make something like this
include "settings.php"; include "controller.php"; ?><table> <tr> <td colspan=2><? include "up.php"; ?></td> </tr><tr> <td><? include "left.php";?></td> <td><? include "right.php";?></td> </tr><tr> <td colspan=2><? include "down.php";?></td> </tr> </table><?
February 20, 2007 1:25 pm
- mdwb
- Member


Re: Question concerning output of a site
include "settings.php"; include "controller.php";
Template should perform passive role towards the controller if there are no any considerable reasons for the other.
Don't be afraid of life, it is yours!
February 20, 2007 1:27 pm
- biopd42
- Member


Re: Question concerning output of a site
???Active template??? is considered to be very convenient.
February 20, 2007 1:31 pm
- mdwb
- Member


Re: Question concerning output of a site
biopd42, I really don??™t know but five years ago PHP-programming was on the different level and the sites were simpler.
Don't be afraid of life, it is yours!


