Well, when you access /users/add - where or what is supposed to be putting
content in the "sidebar" content block? There's nothing in the add view to
do that; the contents of your index.ctcp file are irrelevant because your
add.ctp file neither references it nor extends it.
AD
On Monday, 27 August 2012 16:29:37 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.