The controller for URI {url} is not callable

  php, pimcore, symfony

currently I am learning Pimcore which is made with Symfony (and I am a Laravel guy :3 ) So I have his error:

The controller for URI "/article/1132/This%20is%20my%20first%20post%20in%20Pimcore" is not callable:
 Expected method "blogarticleAction" on class "AppBundleControllerDefaultController".

I am trying to get an object (of blogpost) based on its ID and then to display that blogpost to the user.

I have made that controller with blogarticleAction method:


namespace AppBundleController;

use PimcoreControllerFrontendController;
use SymfonyComponentHttpFoundationRequest;
use PimcoreModelDataObject;

class MyContentController extends FrontendController
    public function defaultAction(Request $request)
        //$this->view->blogpostList = new DataObjectBlogpostListing();
        $list = new DataObjectBlogpostListing();

        $paginator = new ZendPaginatorPaginator($list);
        $paginator->setCurrentPageNumber( $request->get('page') );
        $this->view->paginator  = $paginator;

    public function blogarticleAction(Request $request)
        $this->view->blogarticle = DataObjectBlogpost::getById($this->getParameter('id'));

Also, here is my static route from the Pimcore admin panel:

Links seem to be formed correctly:

but when I click on that link to go to a single blogpost I get this:

Source: Symfony Questions

One Reply to “The controller for URI {url} is not callable”