
Yaf_View_Interface::render 메서드는 뷰 파일의 경로를 문자열로 인자로 받습니다.
예를 들어, 뷰 파일이 'views/user/index.phtml' 이라고 가정할 때, render 메서드의 인자로 다음과 같이 넘겨야 합니다.
#hostingforum.kr
php
$view->render('views/user/index.phtml');
또는, 뷰 파일의 경로를 변수로 지정할 수도 있습니다.
#hostingforum.kr
php
$path = 'views/user/index.phtml';
$view->render($path);
이러한 방법으로 뷰 파일의 경로를 지정하여 render 메서드를 호출할 수 있습니다.
2025-05-07 00:05