php - OpenCart URL redirect with query string not working -


hoping might able give me hand one.

i'm working on customer account area on opencart site , there's section people can delete pets have added inventory. delete functionality works , redirect, message shows in box confirm pet removed, when 1 added. achieve i've added query parameter of "remove=1" url redirect per opencart documentation not seem work.

here code in controller:

    $this->load->model('account/pet');      $pet_info = $this->model_account_pet->removepet($this->request->get['pet_id']);     if (!isset($pet_info['pet_id'])) {         $this->redirect($this->url->link('account/pets', '', 'ssl'));     }      $this->redirect($this->url->link('account/pets', 'remove=1', 'ssl')); 

but when redirects, query string doesn't appear , therefore message not show.

any appreciated,

michael


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -