I’ve watched video tutorial for a little MVC framework(if i can call it framework) – http://net.tutsplus.com/tutorials/php/create-your-first-tiny-mvc-boilerplate-with-php/
,i download the source code and changed a little bit the files but I can’t figure out how to call a specific method as CodeIgniter’s form_open() and make a simple login system.Thanks in advance!
So ,how to send POST data from a form to the controller?
PS:I don’t want to reinvent the wheel, just practicing
I’ve watched video tutorial for a little MVC framework(if i can call it framework)
Share
I also used this TinyMVC to learn MVC structure,
On your HMTL form:
Then in your controller or method just use
You have to post to index.php, and it will go to your controller for you to pick up with there. You can also pick it up in a method using the same example.