[eluser]Dhanapal MCA[/eluser]
[quote author="vincej" date="1329329445"]Hi - I'm sending out standard emails with the CI email class - it all works very well. My emails have a link at the bottom which allows the customer to un-subscribe. The link calls a delete()function within a controller which in turn talks to the DB via a model. All Good. Everything works.
The only problem is that when it calls the delete()function, the customer web browser opens a blank page ! Is it becasue it is inside a CI_ Controller ?? What should I be doing in order that it deletes quietly in the background without opening a page in the browser ??
Many thanks for all your ideas !
web page link: (for some curious reason this site will not reproduce: '$list['id']' in the link below ! )
Code:
<a href='". site_url()."/admin/customer/delete/".$list['>Unsubscribe and De-activate Account </a>
Controller:
Code:
class Customer extends CI_Controller {
public function Customer(){
parent::__construct();
}
function delete($id){
$this->MCustomer->deletecustomer($id);}
[/quote]
Check