コード例 #1
0
ファイル: LookupAction.php プロジェクト: reekoheek/php-fw
	function doEdit() {
		$this->fetch("lookup");
		if (empty($this->lookup)) {
			$this->lookup = LookupDao::byId($this->id);
		}

		$allType = LookupDao::findAllType();
		$_REQUEST["lookup.type"] = array();
		if (!empty($allType)) {
			reset($allType);
			while(list(,$type) = each($allType)) {
				$_REQUEST["lookup.type"][] = $type["type"];
			}
		}
		$this->messages = Msg::fetch();
		Apu::dispatch("/todo/faces/lookup/lookup_edit.php");
		$this->remove("lookup");
	}
コード例 #2
0
ファイル: LoginAction.php プロジェクト: reekoheek/php-fw
	function doIndex() {
		$this->fetch("login");
		Apu::dispatch("/todo/faces/login/login.php");
		$this->messages = Msg::fetch();
		$this->remove();
	}