Skip to content

Instantly share code, notes, and snippets.

@williamn
Created October 20, 2012 06:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save williamn/3922242 to your computer and use it in GitHub Desktop.
CakePHP - avoid HTML tags in your helper
<?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