Understanding Genesis
Posted: Sat Nov 09, 2019 8:57 am
Dear Antonio,
I am using Genesis as Template for my program.
I insert some comments inside code for Ruth and Iris.
May I ask you help. Would you be so kind to look if this is correct what I write:
Can you please check the description of controller
Function of controller()
returns the args provided to Apache by the client if any if not default "browse"
Controller checks access:
cookies
user login and
requested content
depending on the AP_Method() GET or POSTan action is called ( cAction )
-----------------------------------------------------------
Controller calls view
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
|- Sends a value, converted into a string, to the client. Returns the number of bytes sent or -1 if there is an error
-----------------------------------------------------------
next step - ROUTER
state: user is logged in and made a valid request
Router() is used inside <body> to route to the selected view
here the program is routed to view - the "route" is passed through: cRoute parameter
-----------------------------------------------------------
Best regards
Otto
I am using Genesis as Template for my program.
I insert some comments inside code for Ruth and Iris.
May I ask you help. Would you be so kind to look if this is correct what I write:
Can you please check the description of controller
Function of controller()
returns the args provided to Apache by the client if any if not default "browse"
Controller checks access:
cookies
user login and
requested content
depending on the AP_Method() GET or POSTan action is called ( cAction )
-----------------------------------------------------------
Controller calls view
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
|- Sends a value, converted into a string, to the client. Returns the number of bytes sent or -1 if there is an error
-----------------------------------------------------------
next step - ROUTER
state: user is logged in and made a valid request
Router() is used inside <body> to route to the selected view
here the program is routed to view - the "route" is passed through: cRoute parameter
-----------------------------------------------------------
Best regards
Otto