Created
June 14, 2015 22:54
-
-
Save andidp/7d69d459cbafa2dd1628 to your computer and use it in GitHub Desktop.
LinkHelper Grab From book.cakephp.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\View\Helper; | |
use Cake\View\Helper; | |
class LinkHelper extends Helper | |
{ | |
public $helpers = ['Html']; | |
public function makeEdit($title, $url) | |
{ | |
// Use the HTML helper to output | |
// Formatted data: | |
$link = $this->Html->link($title, $url, ['class' => 'edit']); | |
return '<div class="editOuter">' . $link . '</div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment