Databases Reference
In-Depth Information
AddController
Our AddController contains the following action methods (we discuss these
action methods later to explain important concepts):
- indexAction() to reroute users to the home page
- memberAction() to add new member data
- contactAction() to add a relationship between members
- __call() to handle the calls not defined by any action methods
viewController
Our viewController contains the following action methods:
-
indexAction() to reroute users to the home page
-
searchAction() to implement existing member searches
-
displayAction() to present the detailed member profile
-
__call() to handle the calls not defined by any action methods such as
other database action controls
Views
The application has the following major views:
index.php
This template presents the home page with two interfaces. The search allows
users to find members already in the database. The login window is also
provided on this page.
member.php
This template presents the logged in member's profile data and also a
searched member's profile data. This also presents the relationship
information under the member's contacts or my contacts.
searchResult.php
This template displays the search result for a member. The return search
result is clickable to get the detailed profile, if the user is logged in.
view.php
This template provides the interface to the user to create a new profile.
The other views, such as thanks.php and error.php, assist users with useful
information. There might also exist some views to display the user
agreement, privacy policy, customer support information, and other relevant
information as shown by the link in the footer.
Note: These might not be necessarily implemented in the code either
because they are not important conceptually or beyond the scope of this
chapter.
 
Search WWH ::




Custom Search