I am new to Zend framework and I have installed zend frameworkd 1.12. It seems to be running find except for the fact the the views don't read the command specify in the action controller.
I have tested this with two controllers one is the index controller and second a created controller through zf command. here is the code.
<?php
class TestController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
//echo "Please read this";
}
public function indexAction()
{
echo 1;
}
}
Here is the link to the view for this controller (just to be sure that not the problem)
Zend_Projects/test1/application/views/scripts/test/index.phtml
and the output of the controller:
-->> View script for controller Test and script/action name index
It does not add the 1 or any string from the echo command
Can anyone tell me why the controller action is not be read by the view?
Please any sort of help is appreciated and I apologize in advance if this is a stupid question.
Best of Regards