edoceo

Radix PHP Front Controller


<?php
/**
    @brief Radix Front Controller Example
    Typically ./webroot/index.php
*/

header('Cache-Control: no-cache, must-revalidate');

// Engage Radix
$opt = array(
    'theme'=>'2011-xhtml'
);

radix::init($opt);

// Run the Controller
radix::exec();
// radix::exec('/user/login'); // Run Specific Controller

// render the view
radix::view();
// radix::view('/dashboard'); // Show Specific View

// Flush and Exit
radix::send();

Loading Comments from Disqus...