Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Missing _proxy route when embedding controller in SF2.2-beta1 #475

Closed
sudent opened this Issue · 2 comments

3 participants

@sudent

Unless I'm doing something wrong with my code, the following must be added in routing.yml to get the new {{ render(controller()) }} method working.

# app/config/routing.yml
_proxy:
    resource: "@FrameworkBundle/Resources/config/routing/proxy.xml"
    prefix:   /proxy

I think it's a matter of documentation since I found it under 'HTTP Cache' section of book, and not in the same section as 'Creating and using Templates'.

@lyrixx

Indeed, this block is missing.
But

_proxy:
    resource: "@FrameworkBundle/Resources/config/routing/proxy.xml"

Should be enough

@fabpot fabpot referenced this issue in symfony/symfony-docs
Merged

added a missing reference to the proxy route #2159

@fabpot fabpot closed this in 201ddd6
@fabpot
Owner

I've added the missing configuration and sent a PR for the documentation update.

@lsmith77 lsmith77 referenced this issue from a commit in liip-forks/symfony-standard
@lsmith77 lsmith77 Merge remote-tracking branch 'upstream/master' into techtalk
# By Fabien Potencier (16) and others
# Via Fabien Potencier
* upstream/master: (26 commits)
  updated branch-alias version
  updated branch-alias version
  added missing branch-alias in composer file
  enable chromephp logging
  fixed .gitignore to be more specific about exclusions
  Narrow paths being ignored by git
  implement feedback
  Update UPGRADE-2.2.md
  Update the security config with the latest Sf2.2 changes
  updated VENDORS for 2.2.0-BETA2
  updated deps
  added missing routing configuration for the proxy route (closes #475)
  updated VENDORS for 2.1.7
  updated VENDORS for 2.1.7
  Updated the DoctrineBundle version
  Updated DoctrineBundle to 1.1.*
  fixed security example configuration for the /_internal prefix
  Update monolog-bundle dependency to 2.2.*
  updated VENDORS for 2.2.0-BETA1
  update Swiftmailer dep
  ...

Conflicts:
	.gitignore
	composer.json
	composer.lock
5e37d77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.