本文整理汇总了PHP中Tag::getTagOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Tag::getTagOptions方法的具体用法?PHP Tag::getTagOptions怎么用?PHP Tag::getTagOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tag
的用法示例。
在下文中一共展示了Tag::getTagOptions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editPhoto
public function editPhoto(Photo $photo)
{
$this->layout->title = trans('messages.Edit') . ' ' . Lang::choice('messages.Photos', 1);
$albums_opt = Album::getAlbumOptions();
$tag_opt = Tag::getTagOptions();
$this->layout->main = View::make('users.dashboard')->nest('content', 'photos.edit', compact('photo', 'albums_opt', 'tag_opt'));
}
示例2: listTag
public function listTag()
{
$tag_opt = Tag::getTagOptions();
$tags = Tag::getTagsOrdered();
$users = User::all();
$this->layout->title = trans('messages.Tag listings');
$this->layout->main = View::make('admin.dashboard')->nest('content', 'tags.list', compact('tags', 'users', 'tag_opt'));
}
示例3: showCommentAll
public function showCommentAll(Comment $comment)
{
$this->layout->title = trans('messages.COCC');
$users = User::all();
$tag_opt = Tag::getTagOptions();
$comments2comments = Comment::getComments2comments();
$recentPosts = Post::getPostsOrdered();
$tags = Tag::getTagsOrdered();
$this->layout->main = View::make('home', array('recentPosts' => $recentPosts, 'allTags' => $tags))->nest('content', 'comments.singleComment4c', compact('comment', 'users', 'comments2comments', 'tag_opt'));
}
示例4: editPost
public function editPost(Post $post)
{
$this->layout->title = trans('messages.Edit') . ' ' . Lang::choice('messages.Posts', 1);
$tag_opt = Tag::getTagOptions();
$this->layout->main = View::make('admin.dashboard')->nest('content', 'posts.edit', compact('post', 'tag_opt'));
}
示例5: editCraft
public function editCraft(Craft $craft)
{
$this->layout->title = trans('messages.Edit') . ' ' . Lang::choice('messages.Crafts', 1);
$tag_opt = Tag::getTagOptions();
$this->layout->main = View::make('users.dashboard')->nest('content', 'crafts.edit', compact('craft', 'tag_opt'));
}