Write a program to show the function of action helper?



Write a program to show the function of action helper?..

Answer / Shekhar Kumar

"Here's an example in Zend Framework to create and use an Action Helper:n$helper = new Application_Helper_MyHelper(); // Define your helper class first.n$view = $this->getHelper('view'); // Access the view helper from within an action.n$view->myFunction($arg1, $arg2); // Call the function defined in MyHelper."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

Difference between javascript ajax request vs jquery $.ajax?

1 Answers  


What is the way in which the html can be used to form elements?

1 Answers  


How to check request is ajax in zend framework?

1 Answers  


Zend framework forms, decorators and validation: should I go back to plain html?

1 Answers  


What is autoloader?

1 Answers  


Why are in-built libraries used for the web services?

1 Answers  


What are the features of mvc in zend framework?

1 Answers  


Explain what is the function of action helper in zend?

1 Answers  


Tell me what is the function of model in mvc architecture?

1 Answers  


What is the use of bootstrap?

1 Answers  


How to protect your website from sql injection in zend using select query?

1 Answers  


How we can redirect to another page from controller in zend framework?

1 Answers  


Categories