ActionController: commit missing helper method
This commit is contained in:
parent
3fcb0d9849
commit
98b7b7be3f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue