
Principles
What is NOLOH?
What's so Bad About Markup?
Development and Philosophy
Features
Syntactical Sugars
Multiple Inheritance
Bookmarks and NOLOH
User State Management
Search Engine Friendly
Getting Started
PHP and NOLOH Syntax
Hello World
Constructors
Installing NOLOH
Crash Course
NOLOH and CSS
Layout in NOLOH
Databases
Data::$Links
Events in NOLOH
Moving and Resizing Your Objects
Multiple Inheritance
Bookmarks and NOLOH
Data Binding
Advanced Topics
Custom Events
Clientside Functions
Syntactic Sugars
Syntactical Sugars
Cascading
Coding Guidelines
Best Practices
NOLOH Naming ConventionsMost books on programming start out with an example of how to display a string, "Hello World." We wanted to do the same thing in NOLOH to give you an idea just how concise NOLOH programs can be and still be completely understandable.
We've included two versions of a Hello World application. The first version is uncommented so you can read through it without anything getting in your way. The second version is commented so you can get a clearer idea of how NOLOH programs are constructed.
<?php require_once("NOLOH/NOLOH.php"); class HelloWorld extends WebPage { function HelloWorld() { parent::WebPage('My First NOLOH Application'); System::Alert('Hello World'); } } ?>
<?php //Path to the NOLOH kernel require_once("NOLOH/NOLOH.php"); //Declare a HelloWorld class that extends the built-in NOLOH WebPage class class HelloWorld extends WebPage { //Declare a Constructor for the HelloWorld class function HelloWorld() { //Call the parent WebPage Constructor passing the title of the web page parent::WebPage('My First NOLOH Application'); //Call NOLOH's built-in Alert function and pass it a string to display System::Alert('Hello World'); } } ?>






classconstantpropertymethodarticle
