This topic contains 1 reply, has 2 voices, and was last updated by wgozdzicki 5 years, 6 months ago.
-
Topic
-
I created new controller and new view
1234567891011121314151617181920<?phpnamespace My\ProductBundle\Controller;use Symfony\Bundle\FrameworkBundle\Controller\Controller;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;class ProductController extends Controller{/*** @Route("/GetProducts")*/public function GetProductsAction(){return $this->render('MyProductBundle:Product:get_products.html.twig', array());}}view:
1234567{% extends "::base.html.twig" %}{% block title %}MyProductBundle:Product:GetProducts{% endblock %}{% block body %}<h1>Welcome to the Product:GetProducts page</h1>{% endblock %}when try to access this action /GetProducts
I got the following error:
Variable “organization_name” does not exist.
12345678910Stack Tracein vendor\oro\customer-portal\src\Oro\Bundle\FrontendBundle\Resources\views\Organization\logo_frontend.html.twig at line 3 -{% set route = 'oro_frontend_root' %}{% if isDesktopVersion() %}{% if organization_name|length %}{% set logo = oro_theme_logo() %}<h1 class="logo logo-{{ logo ? 'image' : 'text' }}"><a href="{{ path(route) }}" title="{{ organization_name }}" rel="nofollow"></a>
arh922
The forum ‘OroCommerce’ is closed to new topics and replies.