Apply for Zend Framework Certification Training

Zend Framework 1

In this Blog we will see How to pass value from controller to Views

Step 1 In Controller  You Have to assign value  to object

$this->view->users = "Rajesh";
$this->view->address = "Faridabad";

Step 2 In Views  You Have to  write code To retrieve Value

echo $this->users                                    

< Assign value in session in zf1 How To Create Modules In Zend Framework 1 >

Ask a question

  • Question:
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question

Back to Top