Created
October 20, 2012 06:01
CakePHP - avoid HTML tags in your helper
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 | |
class MyCustomHelper extends AppHelper { | |
public function sayMessage($name) { | |
$view = new View; | |
return $view->element('path/to/element', array('name' => $name)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment