Jump to content

Hook::exec('displayPayment') return blank page


se1989rg

Recommended Posts

Hi, I develop a module and I need html, which returns display payment hook, to use in backoffice module configure page. In front office all good.

This is my code
 

       $displayPayment = Hook::exec('displayPayment');
 
        $html = str_get_html($displayPayment);
        $i = 0;
        foreach($html->find('a') as $a) {            
        
                $payment_methods[$i]['id_option'] = $i;           
                $payment_methods[$i]['payment_method'] = $a->plaintext;  
            
            
            $i++;
        }

I found that after calling 
$result = $this->getCurrentSubTemplate($template, $cacheId, $compileId)->fetch();
 
in class ModuleCore method display() showing blank page(debug mode enable).

Any help please?
Edited by se1989rg (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...