如何工作在Yii中记住我的功能。
我的编码。
在Config / Main.php中
linkLast
UserIdentity.php
<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="ui-id-2" aria-labelledby="ui-id-1" aria-selected="true" aria-expanded="true"><a href="/community_users_form/profile_edit/2568/" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">Profile</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-3" aria-selected="false" aria-expanded="false"><a href="#tabs-2" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-3">Communities</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="ui-id-5" aria-labelledby="ui-id-4" aria-selected="false" aria-expanded="false"><a href="/community_users_form/roles_edit/2568/" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-4">Roles</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-4" aria-labelledby="ui-id-6" aria-selected="false" aria-expanded="false"><a href="#tabs-4" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-6">Admin</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-5" aria-labelledby="ui-id-7" aria-selected="false" aria-expanded="false"><a href="#tabs-5" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-7">Delegation</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-6" aria-labelledby="ui-id-8" aria-selected="false" aria-expanded="false"><a href="#tabs-6" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-8">Payments</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-7" aria-labelledby="ui-id-9" aria-selected="false" aria-expanded="false"><a href="#tabs-7" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-9">Email</a></li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-8" aria-labelledby="ui-id-10" aria-selected="false" aria-expanded="false"><a href="#tabs-8" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-10">Activity</a></li>
</ul>
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
模型类
Document unsaveDocument = getUnsaveDocument();
if (unsaveDocument.isModified()) {
QMessageBox *alert = new QMessageBox;
alert->setWindowTitle("File is modified");
alert->setText("Do you want to save your changes?");
alert->setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
alert->setDefaultButton(QMessageBox::Save);
int ret = alert->exec();
alert->deleteLater();
if (ret == QMessageBox::Save) {
saveDocument();
} else {
doSomeThing(); //When discard or cancel
}
}
我的代码中的错误,为什么还记得我不工作。
还有什么区别浏览器记住我和在那个网站记得我在yii.once我记得我检查然后登录,并注销site.Again我运行登录网址意味着用户名和密码都放置我是正确?