初期化の方法・案1

次のバージョンでは、より手軽に利用できるような形態に変更しようと思っている。
例えば、下記のようなindex.phpを用意すれば、

<?php
include_once '/path/to/Moony.php';
$settings = array(
    'action_dir'   => '/path/to/actions',
    'template_dir' => '/path/to/templates',
    'work_dir'     => '/path/to/work',
    'log_dir'      => '/path/to/log',
    'smarty_class' => '/path/to/Smarty.class.php'
);
$moony =& new Moony($settings);
$moony->activate();
?>

/index.php/foo.htmlにアクセスがあった場合、PATH_INFOを解析、FooActionクラスが実行されるものとする。mod_rewriteを利用すれば、URLを/foo.htmlに変更が可能(mod_rewriteの使用を前提としない)。