Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tweak to Absolute URL generation#3693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits into2.3fromabsolute-urls
Mar 19, 2014
Merged

Tweak to Absolute URL generation#3693

weaverryan merged 2 commits into2.3fromabsolute-urls
Mar 19, 2014

Conversation

weaverryan
Copy link
Member

QA
Doc fixyes
New docsno
Applies to2.3
Fixed tickets#3573

This updates how we describe URL generation. After#3573, it occurs to me that if you're looking here for a reference, you'll look for the first spot where absolute URLs are discussed and try to use it. So why not put the controller/PHP version and template version of doing this in the same spot.

Cheers!

This is so we have the controller/PHP version and template version in the same spot. See#3573I also made a few other tweaks, including using generateUrl (like we did earlier) to generatethe absolute URL, not going through the router service directly.
@weaverryanweaverryan mentioned this pull requestMar 18, 2014
a controller, simply pass ``true`` to the third argument of the ``generateUrl()``
method::

$this->getgenerateUrl('blog_show', array('slug' => 'my-blog-post'), true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Remove theget fromgetgenerateUrl

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

hmm, are you sure? Just kidding - thanks for catching that ;)

@xabbuh
Copy link
Member

👍

@weaverryan
Copy link
MemberAuthor

Thanks for the sanity check as always@xabbuh :)

weaverryan added a commit that referenced this pull requestMar 19, 2014
This PR was merged into the 2.3 branch.Discussion----------Tweak to Absolute URL generation| Q | A ||----------------|------|| Doc fix | yes || New docs | no || Applies to | 2.3 || Fixed tickets |#3573  |This updates how we describe URL generation. After#3573, it occurs to me that if you're looking here for a reference, you'll look for the first spot where absolute URLs are discussed and try to use it. So why not put the controller/PHP version and template version of doing this in the same spot.Cheers!Commits-------007a54f Fixing typo thanks to@xabbuh873706c Moved the section about generating absolute URLs down
@weaverryanweaverryan merged commit007a54f into2.3Mar 19, 2014
@wouterjwouterj deleted the absolute-urls branchMarch 19, 2014 15:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@weaverryan@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp