Changes between Version 4 and Version 5 of DolphinTutorialMyFirstModule


Ignore:
Timestamp:
Jan 29, 2010, 5:46:08 AM (14 years ago)
Author:
AlexT
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DolphinTutorialMyFirstModule

    v4 v5  
    258258    * '''parseHtmlByName''' function outputs the '''main.html''' file by making all the substitutions. It accepts the array '''$aVars''' of server variables - in this case we declared the '''server_time''' template variable, which is used in the template as '''__server_time__'''. 
    259259 
     260Some other things which are good to know at this stage: 
     261 
     262Take note of the function name - '''actionHome'''. Every function which begins with the  '''action''' word is accessible from the browser, so be careful and make sure that you don't begin another function with the '''action''' keyword. Make other note too: the URL of the page is '''http://www.your-site.com/your-path/m/bloggie/home'''. The '''Home''' keyword in the function name is directly dependent on the URL. The trick is that the URL is transformed to the function name. For example - '''http://www.your-site.com/your-path/m/bloggie/test_page''' will be transformed to the '''actionTestPage''' function. Also, you maybe already noticed that '''http://www.your-site.com/your-path/m/bloggie/''' URL is working too. This is because '''actionHome''' is special function which is called when no one is pointed to the URL. Also, these '''action''' functions can accept parameters, but this will be described later. 
     263 
     264 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub