2
외부 사용을 위해 Magento 라우팅 외부에 블록로드 / 받기
외부 웹 페이지가 있는데이 외부 페이지에서 헤더로 사용하기 위해 Magento 프레임 워크에서 사이트 헤더 블록을 가져 오려고합니다. 이것이 내가 지금까지 가진 것입니다. // initialize Magento $rootPath = dirname(dirname(__FILE__)); $mageInc = $rootPath . "/app/Mage.php"; include_once $mageInc; Mage::app('admin')->setCurrentStore(0); $headerBlock = Mage::app()->getLayout()->createBlock('page/html_header'); //also tried //$headerBlock = Mage::app()->getLayout()->createBlock('page/html_header', 'header'); 그러나 실행이 중지되고 오류 메시지가 …