That's right - this is a Zend_View helper.
Some code for example
Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
require_once 'Zend/Controller/Action.php';
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$View = new Zend_View();
$View->addHelperPath('../application/helpers/', 'Avlab_View_Helper_');
$View->addScriptPath('../application/views/');
echo $View->render('indexView.php');
}
public function componentAction()
{
echo "It's work!!!";
}
public function noRouteAction()
{
$this->_redirect('/');
}
}
indexView.php
Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
There are 3 component call:
<?echo $this->loadComponent('index', 'component');?>
<?echo $this->loadComponent('index', 'component');?>
<?echo $this->loadComponent('index', 'component');?>
We don't need to controll call chain in controller by using _forward(). In other way we should notify next controller2 about what controller3 it must forward to and then notify controller 3 what controller4 must forward to etc.
It very hard.
In other way we should modify _forward() to allow constructions like that:
Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
$this->_forward('controller', 'component1');
$this->_forward('controller', 'component2');
$this->_forward('controller', 'component3');
it's means, that next action is 'component1' and after it will execute action component2 will start etc.
But it isn't right alternative. I can't say rightly why, because I have troubles in my english
You may read symfony-book by this subject.
Assign to Matthew.