I have two views view1.php and view2.php in CodeIgniter and I have included view2.php in view1.php and I want to use the value of variable $user_update in view2.php which I have defined in view1.php.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are loading view2 within view1.. you can use the following code.
Within view1.php: