PRO Members Only
This video requires a PRO membership. You can upgrade your account to a PRO membership at anytime.
Tutorial Notes
This tutorial helps us get started on writing a barebones controller / language and view file. The following topics are covered:
Controller File
- Creating a controller file.
- Naming your controller class and extending the base controller.
- Loading OpenCart language files.
- Loading header / navigation and footer controllers in your controller.
- Rendering out from your controller.
Language File
- Adding entries to your language file.
- Format of the language file.
View Templates
- Displaying header content.
- Displaying navigation content.
- Displaying footer content.
Outcome
By the end of this tutorial you will have working controller / language and view files that will output the basic OpenCart header / navigation and footer content.
Download module files