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 8869913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:35:38+00:00 2026-06-14T17:35:38+00:00

I created a bundle backend/main/: my app/routing.yml backendmain: resource: @backendmainBundle/Resources/config/routing.yml prefix: /main my backend/Bundle/mainBundle/config/routing.yml:

  • 0

I created a bundle backend/main/:

my app/routing.yml

backendmain:
    resource: "@backendmainBundle/Resources/config/routing.yml"
    prefix:   /main

my backend/Bundle/mainBundle/config/routing.yml:

backendmain_homepage:
    pattern:  /hello/{name}
    defaults: { _controller: backendmainBundle:Default:index }

my backend/Bundle/mainBundle/DefaultController.php:

namespace backend\Bundle\mainBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

    class DefaultController extends Controller
    {
        public function indexAction($name)
        {
            return $this->render('backendmainBundle:Default:index.html.twig', array('name' => $name));
        }

            public function testAction($name)
        {
            return $this->render('backendmainBundle:Default:test.html.twig', array());
        }
    }

How can I call the action test in my browser?

Sorry, but was Fabien on drugs, when he created Symfony2? Symfony 1.4 was so freaking easy!

  • 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-14T17:35:40+00:00Added an answer on June 14, 2026 at 5:35 pm

    There isn’t any match in your routes definition for the test action. The only route you added is for the index action. So you need to add something like,

    backendmain_test:
        pattern:  /test
        defaults: { _controller: backendmainBundle:Default:test }
    

    In your backend/Bundle/mainBundle/config/routing.yml file so that you can make a call to your test action.

    Update:
    Using annotations

    app/config/routing.yml

    backendmain:
        resource: "@backendmainBundle/Controller/DefaultController.php"
        prefix:   /main
        type:     annotation
    

    DefaultController.php

    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
    // ...
    
    class DefaultController extends Controller
    {
        /**
         * @Route("/test", name="backendmain_test")
         */
        public function testAction()
        {
            // ...
        }
    
        // ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a wildcard App ID and have some questions about bundle ID
I've created one main bundle in which one I've installed the equinox p2. Then
I created a settings bundle for my iOS app and tried to edit the
I've created a static library and a resource bundle for reusing code and assets
I've just realised that I've created my app ID bundle indentifier with a lower
i set my in app purchase creating two bundle id's .i created a test
I have created a Settings bundle for my iPhone app, with a multivalue specifier
I have created a setting.bundle in my iPhone app project. Its working fine. An
I have created a custom Settings.app bundle using the standard root.plist approach for the
I've created an app with external settings in the Settings Bundle. Everything works perfectly.

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.