Created
October 20, 2012 06:01
-
-
Save williamn/3922242 to your computer and use it in GitHub Desktop.
CakePHP - avoid HTML tags in your helper
This file contains hidden or 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