DavidHarperTwo - 14 November 2008 05:11 PM
Are you still on a path such that EE 2.0 will be a somewhat harmless upgrade from 1.6x?
Yes, absolutely. That critical point for us is another reason we are being so careful and meticulous with our work. Developers who write add-ons will be required to do some footwork to migrate to 2.0, but we want your data and templates to migrate without requiring any hands-on attention from yourself.
tristanbailey - 14 November 2008 07:17 PM
Can I ask why your using some older style or not recommended PHP coding styles?
<?php if (is_array($member_groups)):?>
<h3><?=lang('recipient_group')?></h3>
<ul class="shun">
<?php foreach ($member_groups as $group => $details): ?>
<li class="<?=alternator('even', 'odd')?>"><label><?=form_checkbox($details)?> <?=$group?></label></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
There’s nothing “older style” or not recommended about that. In view files, an important goal is keeping it legible and sensical for people with no scripting or programming knowledge. These are primarily HTML files, afterall, with PHP only where needed. Which is easier for a designer or markup guru to read? The code above? Or this?
<?php if (is_array($member_groups))
{?>
<h3><?php echo lang('recipient_group');?></h3>
?>
<ul class="shun">
<?php foreach ($member_groups as $group => $details)
{?>
<li class="<?php echo alternator('even', 'odd');?>"><label><?php echo form_checkbox($details);?> <?php echo $group;?></label></li>
<?php } ?>
</ul>
<?php } ?>
I find the former infinitely more readable. And:
Jesse B. - 14 November 2008 07:33 PM
I was surprised to find out that CI can automatically expand short tags. Who knew?
Precisely, spot on, Jesse B!