This is my first approach to Zend.Having this index action:
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->variable="I'm testing my controller";
if($this->_request->isGet())
{
$name=$this->_request->getQuery('mykey');
$this->view->name=$name;
}
}
}
and this view index.phtml:
echo $this->variable;
if (isset($this->name))
{echo $this->name;}
If I type this URL :
http://localhost/index/index/mykey/2
Shouldn’t I see the “2” output in my index view??
I just see “I’m testing my controller”;
P.s. need explaination more than a solution =)
thanks
Luca
Use
instead.