묻고답하기

같은 소스를 2개의 다른 호스팅에 설치를 했는데 한곳은 정상인데 다른 한곳이 안되고 있네요

모듈의 controller에서 콜백 함수가 호출이 안되네요..
아래는 작성한 소스인데요..
filter에서 controller에 함수까지

filter/00.xml
<filter name="insert_purchase" module="eshipping" act="insertPurchase" confirm_msg_code="confirm_submit">
    <form>

    </form>
    <parameter>

    </parameter>
    <response callback_func="completeInsertPurchase">
        <tag name="error" />
        <tag name="message" />
        <tag name="document_srl" />
    </response>
</filter>

tpl/js/00.js

// Shop 주문 후
function completeInsertPurchase(ret_obj)
{
    var error = ret_obj['error'];
    var message = ret_obj['message'];
    var document_srl = ret_obj['document_srl'];
var url = current_url.setQuery('act','dispEshippingPayment').setQuery('document_srl',document_srl);
    location.href = url;
}
 
insertPurchase()
{

$this->add('mid', Context::get('mid'));
$this->add('document_srl', $obj->document_srl);
$this->setMessage($msg_code);
}

디버깅을 하면 insertPurchase가 모두 끝나고 다음에 callback fuction이 호출이 안됩니다.
js파일에 alert가 호출이 안되는걸로 봐서는

무엇이 문제일까요?



질문 한가지 더

모듈의 controller에서  아래 두개의 차이점을 알고 싶습니다.

$this->add('mid', Context::get('mid'));
$this->add('document_srl', $obj->document_srl);
return new Object(0, 'success');


$this->add('mid', Context::get('mid'));
$this->add('document_srl', $obj->document_srl);
$this->setMessage($msg_code);