-
Notifications
You must be signed in to change notification settings - Fork 0
require.php
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');
?>
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.
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.