Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] endif vs braces

Subject: COmanage Developers List

List archive

[comanage-dev] endif vs braces


Chronological Thread 
  • From: Marie Huynh <>
  • To: comanage-dev <>
  • Subject: [comanage-dev] endif vs braces
  • Date: Fri, 30 Mar 2012 16:51:39 -0700

As far as I know, there is no functional difference between using this:

<?php if(){ ?>
  stuff;
<?php } ?> 

and this:

<?php if() : ?>
  stuff;
<?php endif; ?>

Benn, have you given any thought to this or found any reason to go with one or the other since we talked about it?  I think it makes sense to use the latter for parts of the view with lots of html that are much cleaner with the controls split into different php tags, but unnecessary if they are in the same <?php ?>.  Does that sound like a good guideline?

Marie





  • [comanage-dev] endif vs braces, Marie Huynh, 03/30/2012

Archive powered by MHonArc 2.6.16.

Top of Page