本文整理汇总了PHP中AppController::manage_edit方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::manage_edit方法的具体用法?PHP AppController::manage_edit怎么用?PHP AppController::manage_edit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppController
的用法示例。
在下文中一共展示了AppController::manage_edit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: manage_edit
public function manage_edit($id = null)
{
if (!empty($this->data)) {
if ($this->data["User"]["password"] !== $this->data["User"]["password"]) {
$this->User->validationErrors["passwordMisMatch"] = "Passwords don't match";
}
$this->request->data["User"]["created_by_organization_id"] = $this->Session->read("CurrentOrganization.id");
$this->request->data["User"]["created_by_user_id"] = $this->Session->read("CurrentUser.id");
}
$subscriptions = $this->User->Subscription->find("all", array("conditions" => array("Subscription.user_id" => $id, "Container.organization_id" => $this->Session->read("CurrentOrganization.id")), "contain" => array("Container")));
$this->set("subscriptions", $subscriptions);
$userGroupMemberships = $this->User->UserGroupMembership->find("all", array("conditions" => array("UserGroupMembership.user_id" => $id), "contain" => array("UserGroup")));
$this->set("userGroupMemberships", $userGroupMemberships);
parent::manage_edit($id);
}