| 25 | | The first file we are going to create a class that will manage the !HelloWorld request, so let's call it ''!HelloWorldMgr.php''. In fact, all functionality which groups together a number of similar actions that display/modify data of a given type, occurs in classes called Managers. For example, if you want to create the functionality to add, edit and delete FAQs, the code will be managed in a file called !FaqMgr.php, with ''Mgr'' being the standard shorthand for ''Manager''. If this sounds to you like a Controller, you're absolutely right, and at some point in the near future managers may be renamed to controllers. |
|---|
| | 25 | The first file we are going to create is a class that will ''manage'' the !HelloWorld request, so let's call it ''!HelloWorldMgr.php''. In fact, all functionality which groups together a number of similar actions that display/modify data of a given type, occurs in classes called Managers. For example, if you want to create the functionality to add, edit and delete FAQs, the code will be managed in a file called !FaqMgr.php, with ''Mgr'' being the standard shorthand for ''Manager''. If this sounds to you like a Controller, you're absolutely right, and at some point in the near future managers may be renamed to controllers. |
|---|