I'm using CakePHP and I have a component I wrote that uses a component called "Users" to handle users login, logout, registration, etc. I would like to render that on the default.ctp layout in a sidebar. How can I do this?
I tried:
<div id="leftNav">
<div id="login-block" class="block">
<?php echo $this->element('loginblock', array('component' => 'user')); ?>
<ul>
<li><a href="/users/login">Login</a></li>
<li><a href="/users/register">Register</a></li>
<li><a href="/users/logout">Logout</a></li>
</ul>
</div>
</div>
but that was unsuccessful.