Blog tutorial/Index file
From PRADO Wiki
[edit]
Creating the basic index.php file
The index.php is the entry script of the PRADO application.
This file is required by all PRADO applications and is the only script file that is directly accessible by end-users.
Content in index.php mainly consists of the following three lines,
The first line is to include the PRADO script
require_once('path/to/prado.php'); // include the prado script
We need to create a new TApplication instance
$application=new TApplication; // create a PRADO application instance
Now we can run the application by calling TApplication::run method
$application->run(); // run the application
Ok, our basic index.php file is finished,
<?php /** * Prado basic - index.php */ require_once('path/to/prado.php'); // include the prado script $application=new TApplication; // create a PRADO application instance $application->run(); // run the application ?>
now save this file into the blog directory as index.php.

