Skip to content
loranger edited this page Sep 13, 2010 · 2 revisions

The tao/require.php file is the tao entry point. Store the tao folder everywhere you want (behind your public document root is better than inside), call the require.php file from this place and you’re ready to go.

<?php
require_once('./tao/require.php');
?>

Require objects

All the tao php objects are “required once” by the require.php.
If you don’t use the autoload feature tao will of course work, but you have to require yourself your extended objects. You can use this require.php file if you want to manually regroup all your inclusions.
If you prefer autoloading your own pages or tao elements see below.

Autoload

Tao comes with a global setting to enable (or disable, if you don’t use the autoload feature) and manage your autoloaded files. See Settings documentation for more details.
Define your autoload preferences inside the require.php and it will apply to all your project.

Clone this wiki locally