Changes between Version 35 and Version 36 of Tutorials/HelloWorld

Show
Ignore:
Author:
spaycegirl (IP: 69.223.34.201)
Timestamp:
03/04/08 13:30:55 (5 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/HelloWorld

    v1 v36  
    2323|   |   `-- [templates] 
    2424}}} 
    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. 
     25The 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. 
    2626 
    2727Create the file !HelloWorldMgr.php in the classes folder, and in it create a class definition for !HelloWorldMgr, extending SGL_Manager