Hi you experts
As a novice in all this I want to know if what I am doing is silly or bad-practice. You can place a chronoform in an article where you want it with
and it works fine BUT on looking at a tutorial about components I see that the writer stays in html as much as possible and only pops into php for a few bits and back out as soon as possible.
If he makes a table he has <td> <?php echo $myvalue ?> to get a value in the table then </td>. whereas I have written echo "<td> $myvariable </td> etc etc";
I think my way of staying in Php and echoing the html is a lot easier to read but is it wrong or bad practice. If so why ?...I am only learning!
--
Dave
As a novice in all this I want to know if what I am doing is silly or bad-practice. You can place a chronoform in an article where you want it with
{chronocontact} formname {/chronocontact}
. But since I am in php I have putecho "{chronocontact}hiredates5{/chronocontact}";
and it works fine BUT on looking at a tutorial about components I see that the writer stays in html as much as possible and only pops into php for a few bits and back out as soon as possible.
If he makes a table he has <td> <?php echo $myvalue ?> to get a value in the table then </td>. whereas I have written echo "<td> $myvariable </td> etc etc";
I think my way of staying in Php and echoing the html is a lot easier to read but is it wrong or bad practice. If so why ?...I am only learning!
--
Dave