LemonStand Wiki

Programming Pages

Programming LemonStand pages is a simple process due to the API and programming techniques built into the system. The main component of the LemonStand page programming API is the Action. Another important component is the LemonStand AJAX implementation.

  • action - is a PHP code written by you or provided by LemonStand modules, executed before a page is displayed. Actions are used for preparing data to be displayed on a page and for processing page forms.
  • AJAX - allows you to process forms and update page content without reloading the whole page.

You can use HTML and PHP code in your pages. Using PHP code you can access the $this variable which refers to the controller object (Cms_Controller class variable). The controller object has useful fields and method, including the $page field, which gives you all information about a current page, including its title and meta data (keywords and description).

See also:

Next: Actions
Previous: Security
Return to Creating Pages

Comments

No comments posted so far.

Add your comment

Loading form...