本文整理汇总了PHP中Renderer::setKeywords方法的典型用法代码示例。如果您正苦于以下问题:PHP Renderer::setKeywords方法的具体用法?PHP Renderer::setKeywords怎么用?PHP Renderer::setKeywords使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Renderer
的用法示例。
在下文中一共展示了Renderer::setKeywords方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
} else {
$passwordError = "Your passwords didn't match! Give it another shot.";
}
} else {
if ($mod && $mod === 'delete') {
if ($id && $token === $_SESSION['token'] && $user->getAttribute('user_id') === $id) {
if ($user->delete()) {
header('Location: ' . WEB_ROOT . '/logout');
exit;
}
}
$deleteError = 'There was a problem deleting your account.';
}
}
$renderer->setTitle('Your info here');
$renderer->setKeywords(array('your', 'info', 'here'));
$renderer->setDescription('Manage your account');
$renderer->addContent('account.tpl', array('user' => $user, 'filesCount' => count($files->getElements()), 'passwordError' => $passwordError, 'deleteError' => $deleteError, 'token' => $_SESSION['token'], 'passwordMessage' => $passwordMessage));
break;
case 'files':
$files = new Files();
$files->orderby('created DESC');
$files->getBy(array('_user_id' => $user->getAttribute('user_id')));
if ($mod && $mod === 'json') {
header('Content-Type: application/json');
echo $files->getJSON();
exit;
} else {
if ($mod && $mod === 'delete') {
header('Content-Type: application/json');
if ($token === $_SESSION['token']) {