Welcome Guest, Not a member yet? Register   Sign In
How to display Root Controller Method View?
#1

[eluser]web_developer[/eluser]
Hello Everybody,

I am new user of this forum. And this is my first Post Smile

I have Home Class controller (It is root index class)

Now I have below links need to set (Mostly are static pages)

http://www.test.com/
http://www.test.com/contactus
http://www.test.com/feedback
http://www.test.com/aboutus

Now if some go to feedback page and submit the page then it should come back again to feedback page with "Thank you" Message.

class Home extends Controller {

function Home()
{
parent::Controller();
}

function index()
{
$this->load->view('home_message');
}

function contactus()
{
$this->load->view('contactus');
}

function aboutus()
{
$this->load->view('aboutus');
}

function feedback()
{
$this->load->view('feedback');
}
}


Now What I have to do in feedback method?
and in <form action="/feedback" method="post"> will work? Or I have to
write "/home/feedback" ? then URL will become different.

Can any one explain me? How to handle this thing?

Thanks in advance.


Messages In This Thread
How to display Root Controller Method View? - by El Forum - 10-31-2009, 07:35 AM
How to display Root Controller Method View? - by El Forum - 10-31-2009, 08:10 AM
How to display Root Controller Method View? - by El Forum - 10-31-2009, 08:17 AM
How to display Root Controller Method View? - by El Forum - 10-31-2009, 08:54 AM
How to display Root Controller Method View? - by El Forum - 10-31-2009, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB