views:

53

answers:

2

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.

A: 

i also organize actions in one script with parameter passing info about what action should be run.

dusoft
+1  A: 

How about using an minimal mvc framework to handle your actions? Checkout: Cupcake php framework it needs documentation but it's really minimal.

fernyb