ActionController: commit missing helper method

This commit is contained in:
Thomas Gelf 2016-03-21 12:12:33 +01:00
parent 3fcb0d9849
commit 98b7b7be3f
1 changed files with 8 additions and 0 deletions

View File

@ -171,6 +171,14 @@ abstract class ActionController extends Controller
return $this;
}
protected function shorten($string, $length)
{
if (strlen($string) > $length) {
return substr($string, 0, $length) . '...';
}
return $string;
}
protected function setViewScript($name)
{
$this->_helper->viewRenderer->setNoController(true);