Menu
Index > Cats: Helpers, Deals, Todo and TodoValues

viewEmail

viewEmail($id = null, $options = array())

Description:

Options:

Example:

	public function viewEmail($id = null, $options = array()) {
		//
		if (!$id) {
			//
			return	'';
		}
		//
		$defaults	= array(
					'escape'		=> false
					, 'link_content'	=> 'View Email Log'
					,
				);
		//
		$options	= am($defaults, $options);
		//
		$linkContent	= $options['link_content'];
		//
		unset($options['link_content']);
		// 
		return	$this->Html->link(
				$linkContent
				, array(
					'plugin'	=> 'tickets'
					, 'controller'	=> 'notifications'
					, 'action'	=> 'view'
					, 'dashboard'	=> true
					, '?'		=> array(
						'deal_id'	=> $id
						,
					)
					,
				)
				, $options
			);
	}