$this->extend('/Users/add');
Cheers!
On Monday, August 27, 2012 4:29:37 PM UTC+2, Steve Babs wrote:
I have created .--
Views/Users/add.ctp
-----------------------------------
<h1><?php echo $this->fetch('title'); ?></h1>
<?php echo $this->fetch('content'); ?>
<div class="actions">
<h3>Related actions</h3>
<ul>
<?php echo $this->fetch('sidebar'); ?>
</ul>
</div>
Views/Users/index.ctp
-----------------------------------
<?php
$this->extend('/User/add');
$this->assign('title', $users['User']['0']['username']);
$this->start('sidebar');
?>
<li><?php
echo $this->Html->link('edit', array(
'action' => 'edit',
$users['User']['0']['id']
)); ?>
</li>
<?php $this->end(); ?>
while I am accessing http://localhost/cakesite/users/add .
I am getting blank space in sidebar content. anyone help me..
Thanks,
Steve Babs
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
No comments:
Post a Comment