CodeBehind Pages


CodeBehind pages are special pages that are loaded and served by the TextSide engine. These pages have access to all global variables of the TextSide engine as well as any utility classes. For example, code behing pages have access to a mysql connection, user accounts, the security system, a template engine, utility classes and more.

CodeBehind pages are ussually the primary way of adding customized content to your site when parts are not enough.

For an introduction to CodeBehind pages and the types of pages supported by the TextSide engine, please see the Engine Overview page. Here you'll find detailed information on how to create CodeBehind pages and the code behind them.

Creating a CodeBehind Page


Introduces how to create a new CodeBehind page and the types of CodeBehind pages.

Resources


Convers how to organize resources such as images, templates, files, javascript, and css that will be used for a CodeBehind page.

Templates


Explains how to use the built in template system to help render CodeBehind pages. Templates are a method that allows you to seperate your pages logic from its design.

View Handlers


Introduces the idea of View Handlers within a CodeBehind page. View Handlers allow a single page to render differently based on the value of the variable $view in the query string. This allows you to have a single file contain multiple pages when they are closely related.

Event Handlers


Introduces Event Handlers. These are methods within your CodeBehind page that are used to handle form submitals and various events triggered by the user on page refresh.

AJAX Handlers


Introduces AJAX Handlers. These are methods within your CodeBehind page that are used to handle AJAX events. This allows you to easily perform events on your page as a result of user actions without needing a page refresh.