mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Implement index action for member module
This commit is contained in:
parent
f97b67caf7
commit
3b265d5278
2 changed files with 22 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
<module>
|
<module>
|
||||||
<grants />
|
<grants />
|
||||||
<actions>
|
<actions>
|
||||||
|
<action name="dispMemberIndex" type="view" index="true" />
|
||||||
<action name="dispMemberSignUpForm" type="view" meta-noindex="true">
|
<action name="dispMemberSignUpForm" type="view" meta-noindex="true">
|
||||||
<route route="signup" />
|
<route route="signup" />
|
||||||
<route route="signup$document_srl:delete" />
|
<route route="signup$document_srl:delete" />
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,21 @@ class MemberView extends Member
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Module index
|
||||||
|
*/
|
||||||
|
public function dispMemberIndex()
|
||||||
|
{
|
||||||
|
if ($this->user->isMember())
|
||||||
|
{
|
||||||
|
$this->setRedirectUrl(getUrl(['mid' => $this->mid, 'act' => 'dispMemberInfo']));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->setRedirectUrl(getUrl(['mid' => $this->mid, 'act' => 'dispMemberLoginForm']));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Display member information
|
* @brief Display member information
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue