corporate » labs » forge
E29 Incorporated

E29 Product Documentation


Editing the Action Handler

So that our hello world app will actually print hello world, you'll need to edit the index handler for the application.

All action handlers will be created under the following directory:

/path/to/server/htdocs/applications/$APP_KEY

In this tutorial, the handler file will be:

/path/to/server/htdocs/applications/app_hello/app_index.php

Open the file in your favorite IDE ( E29 strongly recommends Eclipse ). You'll find the stub handler that we created on the last page:

<?php
class App implements serenity_application
{
 
	public function App()
	{	
 	 	//
                // Go for it
	}
}
?>

This is the very basic structure of every action handler in Serenity AP. For a very simple approach, enter the following directly under the Go for it comment:

print "Hello world!";

Save and visit http://your_web_host/ to view the results:

Hello World!

Not very exciting, but a good way to get your feet wet with the system. Continue to the next section to work with sGen, Serenity's powerful and fast style engine.

Next up: Add a bit of style to Hello World

 
developers/tutorials/serenity/hello-world-handler.html.txt · Last modified: 2008/07/21 18:03 (external edit)