'Letter', 'action' => 'view', 'id' => $this->id), TRUE), I18n::translate('Problems viewing this email? Click here.')); } public function get_content() { return Kostache::factory()->render($this->content); } public function unsubscribe() { return self::unsubscribe_link($this->id, $this->address, $this->token); } public static function unsubscribe_link($id, $address, $token) { return HTML::anchor( Route::url('default', array('controller' => 'Letter', 'action' => 'unsubscribe', 'id' => $id), TRUE).'?'.http_build_query(array( 'email' => $address, 'token' => $token )), I18n::translate('Tired of receiving these emails? Click this link to unsubscribe.') ); } }