CSS
view.yml (under apps/frontend/config/) defines which css file to be used as default.
Multiple default css files could be included in view.yml.
To customize a specific css file for a specific module and action, we can create a view.yml file under apps/frontend/modules/"module name"/config/
For instance, we have a job module, to specify which css to be used, we can create the following view.yml in apps/frontend/modules/job/config/
How does the final html actually being generated and presented to the user? Here's the flow.
Request from user->routing based on the requested URL->action.class.php analyze which action to be taken->select the appropriate template-> combine the content through actiona nd template->page back to user.
If we take a look at the file actions.class.php, there are different functions like
executeIndex, executeShow, executeNew
The string after "execute" are the actual action, which usually refer to the URL sent by the user.
For instance, if you type http://localhost:8080/job/new
the executeNew function will be triggered, and the "newSuccess.php" template will be loaded.
No comments:
Post a Comment