[Solar-talk] dumb question

Jeff Surgeson solar at 3hex.com
Thu Jul 27 02:51:17 PDT 2006


Hi Paul

This is possibly a realy dumb question, but why do you do this, for example in 
Solar_App_Bookmarks_View_Browse and a few other templates.

You have a if/else statement that will always returns true so the else will 
never be executed.

<?php if ($this->list): ?>
	blah de blah!
<?php else: ?>
	<p><?php echo $this->getText('NO_BOOKMARKS_FOUND') ?></p>
<?php endif ?>

I am taking for granted that the point of this is to execute the else if there 
are no bookmarks returned from db, correct? 

-- 
Jeff Surgeson


More information about the solar-talk mailing list