This is: First page based controller (MVC) multi language
This tutorial is built in parts, it is imperative to start from the begining, so it will be easier to understand the processes on this framework, since every part rely on the previous part. This demonstration is based on the files designated on "Files in use" in the middle of this page. to complete our knowledge it is recommended to look for the documents on limbercode.com
Because this page have to appear in other language and after all this is only a tutorial, to simulate multi
language page, we will use lang::getCurrentLanguage()
on the "view file (file number 1) for
checking the current language set for this page and with the result we can define what text appear when.
Files in use: (not including template files)
1 - View (a must): architecture/application/views/firstPageBasedController/index.php
2 - Controller (a must): architecture/application/controllers/firstPageBasedControllerController.php
3 - Model (optional): architecture/application/models/firstPageBasedControllerModel.php
4 - Model data (db like) (optional): source/data/demonstrationData/main.php
5 - Css (optional): public/css/demo.css
Navigate:
homePage - Home page
firstPageBasedView - First page based "view" firstPageBasedViewMu - For multi language support
pageNum2BasedView - Page number 2 based "view" pageNum2BasedViewMu - For multi language support
firstPageBasedController - First page based "controller" firstPageBasedControllerMu - For multi language support
pageNum2BasedController - Page number 2 based "controller" pageNum2BasedControllerMu - For multi language support