Jump to content

generate view to controller


gajofe
 Share

Recommended Posts

hi there to all.... :D i wanna make the follow : in the backoffice

....../adminxxxxxx/index.php?controller=AdminSend&viewmyview&token=7..............

i generate that url using

 

class AdminSendController extends ModuleAdminController {
.
.
.
public function __construct() {
  $this->context->smarty->assign(array(
.
.
.

            'href' => 'index.php?controller=AdminSend' . AdminControllerCore::$currentIndex . '&view' . $this->table . '&token=' . Tools::getAdminTokenLite('AdminSend')
        ));
}
//on the tpl
<a href="{$href}" class="btn btn-primary btn-lg"><i class="icon icon-search"></i>CLICKME</a> 

and how i can trigger a new view o how i set the view to that url. or another solution how i can create a custom button, when i clicked that load a tpl or view thk a lot.. 

pd.. sorry to the english.... :$

Edited by gajofe (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More