Kevin Stone wrote:
<?= is discouraged and is known to break some files, the full use if <?php is encouraged, they have been several threads discussing the use of <?= and where there is not a <?php=, search the archives for more information.
I used to program that way. The logic and presentation portions of my
scripts were combined into one or two monolithic files. That worked well
for small projects. But as I got involved in larger projects and had to
juggle many code files at once I found that I prefered to separate as much
of the HTML from the PHP code as possible.
Typically what I do now is set up my HTML in a template-like format using
<?= $var?> as the outputs.
Jason
$next_year $prev_year $cur_year $cur_month $cur_day $january $february $march $april $may $june $july $august $september $october $november $december $event_list $event_header
Each output contains a portion of the final calendar page. So I could take the months and put them into rows or columns, take the event list and put it on the top or the bottom, take the interface elements and place them where they work best. Or I can ignore half of the outputs and display only one month if I wanted to. Point being I could do this in a fraction of the time it would take me to do it in logic portion of the script.
Anyway.. just my two bits. Take it or leave it. :-)
- Kevin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php