src/Ubiquity/controllers/crud/CRUDController.php
public function edit($modal = "no", $ids = "") {
		if (URequest::isAjax ()) {
			$instance = $this->getModelInstance ( $ids, false );
			$instance->_new = false;
			$this->_edit ( $instance, $modal );
		} else {
			$this->jquery->execAtLast ( "$('._edit[data-ajax={$ids}]').trigger('click');" );
			$this->index ();
		}
	}
public function edit($modal = "no", $ids = "") {
		if (URequest::isAjax ()) {
			$instance = $this->getModelInstance ( $ids, false );
			$instance->_new = false;
			$this->_edit ( $instance, $modal );
		} else {
			$this->jquery->execAtLast ( "$('._edit[data-ajax={$ids}]').trigger('click');" );
			$this->index ();
		}
	}
public function edit ( $ modal = "no" , $ ids = "" ) { if ( URequest :: isAjax ( ) ) { $ instance = $ this -> getModelInstance ( $ ids , false ) ; $ instance -> _new = false ; $ this -> _edit ( $ instance , $ modal ) ; } else { $ this -> jquery -> execAtLast ( "$('._edit[data-ajax={$ids}]').trigger('click');" ) ; $ this -> index ( ) ; } }
Edits an instance

@param string $modal Accept "no" or "modal" for a modal dialog
@param string $ids the primary value(s)
Edits an instance