-
Notifications
You must be signed in to change notification settings - Fork 0
Settings
loranger edited this page Sep 13, 2010
·
2 revisions
TaoSettings() si a singleton usually manipulated from the require.php file to alter the tao behaviour.
Here are the few methods provided:
-
TaoSettings()->useAutoload( true or false );
Enable or disable the autoload feature. -
TaoSettings()->addAutoloadPath( path );
Add a path to look up if a class is called but not loaded.
Setting a path automatically enables autoload.
Path can understand wildcards.TaoSettings()->addAutoloadPath( TAO_PATH . 'tao.*/' );
will look for classes inside all folders named tao.something stored into the tao folder. -
TaoSettings()->setFeaturing( feature or false);
Enable a global tao customization.
Not implemented yet. -
TaoSettings()->setLocale( locale );
Define the current locale for gettext support.
Not implemented yet. -
TaoSettings()->setLocalePath( path );
Define the po files path for gettext support.
Not implemented yet.