I created my own template for Joomla 3.0.
I'd like to display an edit button on any page (as the default template does) for every users with the right permission in order but I can't figure out how to enable it.
Any idea ?
Edit :
I tried to add this on my template index :
<?php if ($this->user->authorise('core.edit', 'com_content.article.'.$this->item->id)) : ?>
<li class="edit-icon"><?php echo JHtml::_('icon.edit', $this->item, $params); ?></li>
<?php endif; ?>
but I got the following error :
Fatal error: Call to a member function authorise() on a non-object