[Solar-talk] Tutorial: Solar App from Scratch (part 1)
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Jun 13 07:17:20 PDT 2007
On 6/13/07, anselm bradford wrote:
> In the part where you have:
>
> // Load, build and run Tipos.
> require 'Tipos.php';
> $tipos = new Tipos();
> $tipos->run('config.php');
>
> Where does the config.php file reside?
By the way, it's nice that you asked because I had the same doubt
once, so it may be a nice idea for a wiki page. I wanted to understand
where Solar would look for the file, and the answer is in
Solar::fetchConfig():
http://solarphp.com/class/Solar/fetchConfig()
As listed above, Solar::start() can receive different parameter types.
When it is a string like 'config.php', it will use Solar::run() to
fetch the file looking for it in the include path:
http://solarphp.com/class/Solar/run()
Btw, about the docs: it's nice to be able to reference specific
methods, but if the method code was linked in some way it could help.
-- rodrigo
More information about the solar-talk
mailing list