Monday, 26 August 2013

Its possible to a static var recieve "require __DIR__.'/paths.php'"?

Its possible to a static var recieve "require __DIR__.'/paths.php'"?

workspace: php 5.4, apache 2.4
My code:
class Test{
private static $paths = array();
self::$paths = require __DIR__.'paths.php';
//another code
}
is it possible to use this? My objective is to create a variable to recive
an array that contain many paths for the app.

No comments:

Post a Comment