
Yaf_Application::app를 사용하여 어플리케이션 객체를 얻는 방법은 다음과 같습니다.
#hostingforum.kr
php
$app = Yaf_Application::app();
어플리케이션 객체를 얻은 후에 설정값을 얻기 위해 사용할 수 있는 메서드는 다음과 같습니다.
#hostingforum.kr
php
$config = $app->getConfig();
또는
#hostingforum.kr
php
$config = $app->getConfiguration();
두 메서드는 동일한 결과를 반환합니다.
2025-05-12 20:54