This piece of code is working fine with normal php:
<?php
function barber($type)
{
echo "You wanted a $type haircut, no problem\n";
}
call_user_func('barber', "mushroom");
call_user_func('barber', "shave");
?>
How do i implement the same stuff with in an Action of a Zend controller ? (I believe Zend wont allow to call a function with in quotes and $this and self are not possible in this matter)
Create a method in your controller, eg
Call it like this using
call_user_func()