Skip to content

Instantly share code, notes, and snippets.

@williamn
Created October 20, 2012 06:01
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