Skip to content
eachcan edited this page Feb 12, 2015 · 1 revision

AtomCode::$config

也就是你配置文件里指明的 $config,在这里完全一致的可以得到值

AtomCode::addConfig($name)

加载 app/config/ENVIRONMENT/name.php 文件或 app/config/name.php,如果里面有 $config 则合并到 AtomCode::$config 中

AtomCode::registerAutoloadDir($dir)

把目录加到框架自动搜索目录。便于自动加载类。类的命名必须为 类名.php

AtomCode::registerAutoloadDirs(array $dirs)

批量添加自动加载目录

AtomCode::start()

启动应用,不知道运行多次什么样。不管了,反正你运行一次就行了。

Clone this wiki locally