How should I organize my ajax actions files
-
10-07-2019 - |
Question
I would like to know what's the best way to organize my php project with ajaxActions files.
At the moment I have a few ./process/ajaxAction_pagename.php
files containing my actions like this:
if ($action=="actionName")
{
//code
}
I'm just wondering if there is a better (or more standard) way to do it.
Solution
How about using an minimal mvc framework to handle your actions? Checkout: Cupcake php framework it needs documentation but it's really minimal.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow