Mixture of php shorttags

Posted by drpcken on Stack Overflow See other posts from Stack Overflow or by drpcken
Published on 2011-01-14T22:39:04Z Indexed on 2011/01/14 22:53 UTC
Read the original article Hit count: 235

Filed under:
|
|

I'm taking over a codeigniter project and notice the original dev uses a mixture of short tag and php tags in the views. For example:

<div id="content">

        <?=show_header()?>

        <ul id="products">
            <?php if (count($products) > 0) : ?>
            <?php foreach($products as $product) : ?>
             ...
</div>

Is this bad practice to inherit? I think it is already causing me problems in my dev environment.

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter