When i call a renderElement function, it is generating Session related
issues.
Code:
<div class="store_menu">
<?php echo $this->renderElement('store_nav');?>
</div>
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app
\views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som
\cake\libs\session.php on line 154 Warning: session_start(): Cannot
send session cache limiter - headers already sent (output started at C:
\apache2triad\htdocs\sonsofmaxwell\som\app\views\helpers\fck.php:44)
in C:\apache2triad\htdocs\sonsofmaxwell\som\cake\libs\session.php on
line 154 Warning: Cannot modify header information - headers already
sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app
\views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som
\cake\libs\session.php on line 155
I didn't receive these errors until i moved the code over to an
Element:
<div id="store-navigation">
<?php $categories = $this->requestAction('categories/index');?>
<h2>Categories</h2>
<ul>
<?php foreach ($categories as $category): ?>
<li><?php echo $html->link($category['Category']['name'],'/products/
index/' . $category['Category']['id'])?></li>
<?php endforeach; ?>
</ul>
<h2>Cart Links</h2>
<ul>
<li><?php echo $html->link('View Cart', '/', array('title' => 'View
Cart')) ?></li>
<li><?php echo $html->link('My Account', '/', array('title' => 'My
Account')) ?></li>
</ul>
<h2>Customer Service</h2>
<ul>
<li><?php echo $html->link('Return Policy', '/', array('title' =>
'Return Policy')) ?></li>
</ul>
<h2>Shipping Information</h2>
<ul>
<li><?php echo $html->link('Shipping Rates', '/', array('title' =>
'Shipping Rates')) ?></li>
</ul>
</div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---