Skip to content
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 or testAction

Or in some special cases:

  • Lower case chars + upper case char + lower case chars + "Action"
    e.g.: loginDoAction or loginFailAction
    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
    }
    ...
}