partial.js logo
Latest version
v1.3.1 (RC2)

FrameworkPath


This class helps with getting all framework paths. All paths reads from the framework configuration.

Methods


framework.path.contents([name])framework.path.controllers([name])framework.path.databases([name])framework.path.definitions([name])framework.path.logs([name])framework.path.modules([name])framework.path.public([name])framework.path.resources([name])framework.path.root([name])framework.path.temp([name])framework.path.templates([name])framework.path.tests([name])framework.path.views([name])framework.path.workers([name])
framework.path.contents([name]);
return String;

Get the contents path from framework.config['directory-contents'].

framework.path.controllers([name]);
return String;

Get the controllers path from framework.config['directory-controllers'].

framework.path.databases([name]);
return String;

Get the public path from framework.config['directory-databases'].

framework.path.definitions([name]);
return String;

Get the definitions path from framework.config['directory-definitions'].

framework.path.logs([name]);
return String;

Get the logs path from framework.config['directory-logs'].

framework.path.modules([name]);
return String;

Get the modules path from framework.config['directory-modules'].

framework.path.public([name]);
return String;

Get the public path from framework.config['directory-public'].

framework.path.resources([name]);
return String;

Get the resources path from framework.config['directory-resources'].

framework.path.root([name]);
return String;

Get the root path.

framework.path.temp([name]);
return String;

Get the temp path from framework.config['directory-temp'].

framework.path.templates([name]);
return String;

Get the templates path from framework.config['directory-templates'].

framework.path.tests([name]);
return String;

Get the tests path from framework.config['directory-tests'].

framework.path.views([name]);
return String;

Get the views path from framework.config['directory-views'].

framework.path.workers([name]);
return String;

Get the workers path from framework.config['directory-workers'].