Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:25:57+00:00 2026-06-09T22:25:57+00:00

We can easily embed a controller within a template in twig: {% render AcmeGolferBundle:Golfer:showGolfersList

  • 0

We can easily embed a controller within a template in twig:

{% render "AcmeGolferBundle:Golfer:showGolfersList" %}

When we basically use a controller like this:

 /**
 * Lists all golfers.
 *
 * @Route("/golfersList", name="golfers_list")
 * @Template()
 */
public function showGolfersListAction()
{
    //....doStuff
}

In that case, the only use of the controller will be in that template. Is there a way to avoid the user to trigger the url directly, meaning /golferList on its own?

EDIT

The point I am trying to make is the following:
I need the user to use the controller through the template it is embedded in, but not directly via the url. I realise this might not be possible, but because the controller is embedded, it doesn’t have a proper css structure. Therefore, if it is triggered via the url directly, it will look pretty ugly on the page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:25:59+00:00Added an answer on June 9, 2026 at 10:25 pm

    Securing route by IP might be useful for you:

    security: 
        # ...
        access_control:
            - { path: ^/golferList, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You can easily use exec() or shell_exec() to execute a system command, like ls
We can easily alert anything in java script. Is it possible to get this
In Bash I can easily do something like command1 && command2 || command3 which
Using scons I can easily set my include paths: env.Append( CPPPATH=['foo'] ) This passes
In VB.NET I can easily embed strings into XML literals using <xml><%= my string
Users can easily rename special folders like Computer, Network etc. to whatever they like.
I can easily get the unread notifications with this query: https://graph.facebook.com/USER_ID/notifications?access_token=ACCESS_TOKEN Is it possible
I can easily upload a file delimited by ^ It looks something like... CN^others^2012-05-03
I can easily create and object in a lot of different. For example like
I can easily do this in C#...but I need the equivalent in VB.Net. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.