Jump to content

How to return to the homepage


pippo67

Recommended Posts

Hello,

I created a module that I placed in the right column of the homepage with an input type text, two buttons and success message: the first Submit and the other  Back . The second button, Back  does not work. I'm using, in the hookLeftColumn ($params) method, Tools: redirect ('http://localhost:8080/…./’../) to go back to the homepage and in the tpl file this line <a href = "{$url}" class = "btn btn-default" = "button"> Back </a>

Please can you help me understand which instructions should I use?

Thank you

This is the hookLeftColumn method

public function hookLeftColumn($params) {           

             $this->smarty->assign(array( 
                   
'url' =>  Tools:redirect(‘http://localhost:8080/…./…/’)
              
)); 
          
//code

}       

 This is the file tpl

<div class="form-group"> <a href="{$url}" class="btn btn-default" role="button">Back</a> </div>

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...