Quickstart Guide
Installation
- Make sure your environment meets the requirements (PHP5).
- Download latest LightVC release.
- Unzip/extract the download.
- Point the web server's document root to the webroot folder. Need help with this step? Check out the web server config examples.
Start Building
Add a controller and action (
controllers/test_lightvc.php):<?php
class TestLightvcController extends AppController {
public function actionTestAction($one = null, $two = null) {
if (is_null($one)) {
$one = 'NULL';
}
if (is_null($two)) {
$two = 'NULL';
}
$this->setVar('one', $one);
$this->setVar('two', $two);
}
}
?>Add a view (
views/test_lightvc/test_action.php):<h1>Test LightVC</h1>
<p>One = "<?php echo htmlentities($one) ?>" and two = "<?php echo htmlentities($two) ?>."</p>Visit
/test_lightvc/test_action/on your server.