Load view from Controller issue |
Hi Dave,
In fact I had to put as below in the controller while redirecting back to contact us form. PHP Code: /*1*/ $this->load->view('templates/header'); If I only add line#2 then contact us form does not include header and footer views in the final rendering of the view. So I had to do it that way. I find it annoying. Is there any better way so I will not have to include header and footer templates while loading view from the controller? With above code I manage to load contact-us view but then in the address bar it does not show contact-us (http://localhost:8080/42patidarsamaj-staging/contact-us) rather it shows controller name (http://localhost:8080/42patidarsamaj-staging/sendemail). Please advise. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |