EthnaのプロジェクトルートディレクトリはEthna_Backend::getBaseDirメソッドで取れる。
ViewクラスやActionクラスで、
$this->backend->getBaseDir();
とすれば、「 /home/httpd/doc/ethna_root 」の様な形式で取得可能。
あと、etc/project_name-ini.phpで定義していある$configを丸ごと取りたいとき*1
$config = $this->config->config
と取るのはありなのだろうか?
*1:この様なことをするのがそもそもありえないのかもしれない。。。
(Visited 1 times, 1 visits today)