php calling classes functions in separate pages
Posted
by
sys_debug
on Stack Overflow
See other posts from Stack Overflow
or by sys_debug
Published on 2012-11-22T04:55:59Z
Indexed on
2012/11/22
5:00 UTC
Read the original article
Hit count: 111
I've worked with J2EE recently and like the idea of struts.xml where I can handle the redirection to pages based on return string from action classes.
In PHP, in my new under-development site, I am trying to follow the MVC standards without an MVC framework used from the internet. So I create the controllers, models and views (empty now). The only thing I am really stuck at is when I submit the form in view (insert_product.php) then I will need to create another php page to handle the post data and pass them to controllers.
Anyway of avoiding creating those pages and maybe having something like struts.xml? Even if I can post data directly to controller class, that would be good.
Thanks,
© Stack Overflow or respective owner