Warning: session_start(): open(/var/php_session//sess_aae5f83acbc4363151f050606f119f31, O_RDWR) failed: Read-only file system (30) in /home/exponent/docs_html/framework/core/subsystems/expSession.php on line 132
cycle
Topics

cycle function

This isn't Exponent specific, but if you haven't visited the Smarty Docs yet, you should really know about it. Here's a sample piece of code:

{foreach name=items from=$items item=item}          
   <div class="item {cycle values="column-left,column-right"}">
     <h2>{$item->title}</h2>      
     <div class="bodycopy">{$item->body}</div>   
   </div>
{/foreach}        
{clear}

The "cycle values" expression lets you tell Exponent, through the Templating Engine, to output alternating values for your div classes in this case. This can be used with table rows and other HTML.

Loading Help

Warning: Unknown: open(/var/php_session//sess_aae5f83acbc4363151f050606f119f31, O_RDWR) failed: Read-only file system (30) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_session/) in Unknown on line 0