mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-03-08 01:56:14 +00:00
Sähköpostiviestin esikatselu
This commit is contained in:
@@ -55,6 +55,7 @@ $route['ecards'] = $route['default_controller']."/ecards";
|
|||||||
$route['ecards/(:any)'] = $route['default_controller']."/ecards/$1";
|
$route['ecards/(:any)'] = $route['default_controller']."/ecards/$1";
|
||||||
$route['info'] = $route['default_controller']."/info";
|
$route['info'] = $route['default_controller']."/info";
|
||||||
$route['preview/(:any)'] = $route['default_controller']."/preview/$1";
|
$route['preview/(:any)'] = $route['default_controller']."/preview/$1";
|
||||||
|
$route['mail/(:any)'] = $route['default_controller']."/mail/$1";
|
||||||
|
|
||||||
/* End of file routes.php */
|
/* End of file routes.php */
|
||||||
/* Location: ./application/config/routes.php */
|
/* Location: ./application/config/routes.php */
|
||||||
|
|||||||
@@ -233,6 +233,16 @@ class Welcome extends CI_Controller
|
|||||||
redirect(site_url('ecards/' . $entry['hash']));
|
redirect(site_url('ecards/' . $entry['hash']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function mail($card_id = null)
|
||||||
|
{
|
||||||
|
$data = $this->ecard->get_by('hash', $card_id);
|
||||||
|
|
||||||
|
$data->websiteurl = site_url('ecards/' . $card_id);
|
||||||
|
$data->imageurl = site_url('assets/cards/' . $card_id . '.png');
|
||||||
|
|
||||||
|
$this->load->view('email_template', $data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End of file welcome.php */
|
/* End of file welcome.php */
|
||||||
|
|||||||
Reference in New Issue
Block a user