I have a /controller/controller.php file that runs this code:
include('../model/model.php');
print page_load();
The model/model.php loads correctly and the page_load() function gets loaded. However, the model.php file still ‘thinks’ that it is in the controller directory. So if I try and do any POST actions in the model.php, it looks in the controller directory rather than the model directory.
Can I please have some advice on how to fix this?
thanks
In model.php your need set
actionin form with correct path to post it to yourmodel.php