Roch
Roch

Reputation: 22041

How should I organize my ajax actions files

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.

Upvotes: 1

Views: 201

Answers (1)

fernyb
fernyb

Reputation: 983

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

Upvotes: 1

Related Questions