Welcome to the Cookbook

loading...

3.10.4.6 uuid()

Todavia no hay una traducion de este texto. Por favor ayudanos y traducirla.. Mas info sobre traduciones

uuid(string $object, mixed $url)

Generates a unique non-random DOM ID for an object, based on the object type and url. This method is often used by helpers that need to generate unique DOM ID's for elements such as the AjaxHelper.

	$uuid = $this->uuid('form', array('controller' => 'posts', 'action' => 'index'));
	//$uuid contains 'form0425fe3bad'
  1. $uuid = $this->uuid('form', array('controller' => 'posts', 'action' => 'index'));
  2. //$uuid contains 'form0425fe3bad'