-
Notifications
You must be signed in to change notification settings - Fork 0
Action
LaCodon edited this page Dec 15, 2015
·
2 revisions
Every Controller of a Famework project consists of a few so called Actions. Normally, one Action gets called per request. The following naming conventions are important:
- Lower case letter string + "Action"
e.g.:indexAction
ortestAction
Or in some special cases:
- Lower case chars + upper case char + lower case chars + "Action"
e.g.:loginDoAction
orloginFailAction
Those actions are called via an URL as described here in example 3
Full exapmle:
...
class IndexController extends Famework_Controller {
...
public function testAction() {
// do some stuff here
}
...
}
- Home
- Getting Started
- Server Setup
- Configuration Files
- Application Structure
- Classes