Sylius에서 엔티티 판매자 관리를위한 라우팅을 정의하려고합니다. 내가 페이지 http://127.0.0.1:8000/admin/sellers/에 도달 할 때, 내가있어 이러한 오류 :Sylius 플러그인 만들기 : "GET/admin/seller /"에 대한 경로를 찾지 못했습니다.
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
No route found for "GET /admin/sellers/"
at
/홈/robomatix/www /에서 html_local/Artaban/SyliusSimpleMarketplacePlugin/공급 업체/심포니/심포니/SRC/심포니/컴포넌트/HttpKernel /EventListener/RouterListener.php:13 symfony \ Component \ HttpKernel \ EventListener \ RouterListener-> onKernelRequest (object (GetResponseEvent), 'kernel.request', object (TraceableEventDispatcher)) call_user_func (array (object (RouterListener), (/ home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfon)에 대한 자세한 내용은 다음 웹 사이트를 참조하십시오. Symfony \ Component \ EventDispatcher \ Debug \ WrappedListener -> __ invoke (object (GetResponseEvent), 'kernel.request', object (ContainerAwareEventDispatcher)) (/ home/구성 요소/EventDispatcher/디버그/WrappedListener.php : symfony \ Component \ EventDispatcher \ EventDispatcher-> doDispatch (array (object (WrappedListener)))에서 을 robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php : 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener), 오브젝트 (WrappedListener)), 'kernel.request', 오브젝트 (GetResponseEve nt)) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44) at Symfony \ Component \ EventDispatcher \ EventDispatcher-> dispatch ('kernel.request', object (GetResponseEvent)) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139) (홈/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/공급 업체/심포니/심포니/src/심포니/심포니/심포니/심포니/심포니/심포니/심포니/심포니) Component/HttpKernel \ HttpKernel-> handleRaw (object (Request), 1)에서 symfony \ Component \ HttpKernel \ HttpKernel-> handleRaw에서 구성 요소/HttpKernel/HttpKernel.php : 129) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony \ Component \ HttpKernel \ HttpKernel-> handle (object() 요청), 1, true) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202) at Symfony \ Component \ HttpKernel \ 는 커널> 핸들 (객체 (요청)) (웹/app_dev.php : 16) 가에서 필요로 ('/ 홈/robomatix/www /에서 html_local/Artaban/SyliusSimpleMarketplacePlugin/테스트/응용 프로그램/웹/app_dev.php') (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Bundle/WebServerBundle/Resources/router.php:42)
및 appDevDebugProjectContainerUrlMatcher-에서 /tmp/a99a18f5531c358fe4a7a5bc81471b03/cache/appDevDebugProjectContainerUrlMatcher.php:3988 > 경기에서
Symfony\Component\Routing\Exception\ResourceNotFoundException:
('/ 관리/판매 /') (/ 홈/robomatix/www /에서 html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/UrlMatcher.Symfony/Component/Routing/Matcher/UrlMatcher-> matchRequest (object (Request)) (/ home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component) symfony/symfony/symfony/src/symfony/src/symfony/src/symfony/symfony \ Component \ HttpKernel \ EventListener \ RouterListener-> onKernelRequest (object (GetResponseEvent), 'kernel.request', 객체 (TraceableEventDispatcher)) at call_user_func (array()) symfony/Component/HttpKernel/EventListener/RouterListener.php : (objectList), 'onKernelRequest'), 객체 (GetResponseEvent), 'kernel.request', 객체 (TraceableEventDispatcher) (/ home/robomat symfony \ Component \ EventDispatcher \ Debug \ WrappedListener에서 -> __ invoke (object (GetResponseEvent()); // ix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/symfony/symfony/src/Symfony/컴포넌트/EventDispatcher/디버그/WrappedListener.php :), 'kernel.request', object (ContainerAwareEventDispatcher)) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212) at 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (WrappedListener), 객체 (/ home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher), 커널 (예 : WrappedListener)/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/symfony/symfony/symfony/symfony/symfony/symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php : 139) Symfony \ Component \ EventDispatcher \ Debug \ TraceableEventDispatcher-> dispatch ('kernel.request', 객체 (GetResponseEvent)) (/ home/robomatix /www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:129) at Symfony \ Component \ HttpKernel \ HttpKernel-> handleRaw (object (Request), 1) (/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php :/home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Component (symfony/Component/HttpKernel \ HttpKernel-> 핸들 (객체 (요청), 1, 참) ('/ home/robomatix/www/html_local) (웹/app_dev.php : 16) /Artaban/SyliusSimpleMarketplacePlugin/tests/Application/web/app_dev.php ') (/ home/robomatix/www/html_local/Artaban/SyliusSimpleMarketplacePlugin/vendor/symfony/symfony/src/Symfony/Bundle/WebServerBundle/Resources/rout er.php :
Artaban/SyliusSimpleMarketplacePlugin/SRC/자원/설정/config.yml : 42)
미안 해요, 난 여기
내 코드입니다 ... 코드에 대한 실현하는 것이 사용하지 수imports:
- { resource:
"@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/services.yml"
}
- { resource:
"@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/resources.yml"
}
- { resource: "@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/grids/grids.yml"
}
Artaban/SyliusSimpleMarketplacePlugin/src/Resources/config/resources.YML
sylius_resource:
resources:
app.seller:
driver: doctrine/orm # You can use also different driver here
classes:
model: Artaban\SyliusSimpleMarketplacePlugin\Entity\ArtabanSimpleMarketplace_Seller
Artaban/SyliusSimpleMarketplacePlugin/SRC/자원/설정/그리드/관리/seller.yml
sylius_grid:
grids:
app_admin_seller:
driver:
name: doctrine/orm
options:
class: Artaban\SyliusSimpleMarketplacePlugin\Entity\ArtabanSimpleMarketplace_Seller
fields:
name:
type: string
label: sylius.ui.name
description:
type: string
label: sylius.ui.description
enabled:
type: twig
label: sylius.ui.enabled
options:
template: "@SyliusUi/Grid/Field/enabled.html.twig"
actions:
main:
create:
type: create
item:
update:
type: update
delete:
type: delete
Artaban/SyliusSimpleMarketplacePlugin/SRC/자원/설정/그리드/grids.yml
imports:
- { resource: '@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/grids/admin/seller.yml' }
Artaban/SyliusSimpleMarketplacePlugin/SRC/자원/설정/라우팅/관리/seller.yml
app_admin_seller:
resource: |
alias: app.seller
section: admin
templates: SyliusAdminBundle:Crud
redirect: update
grid: app_admin_seller
vars:
all:
subheader: app.ui.seller
index:
icon: 'file image outline'
type: sylius.resource
Artaban/SyliusSimpleMarketplacePlugin/SRC/자원/설정/라우팅
가app_admin_seller:
resource: '@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/routing/admin/seller.yml'
Artaban이/리소스/나는/routing.yml
app_admin:
resource: '@ArtabanSyliusSimpleMarketplacePlugin/Resources/config/routing/admin.yml'
prefix: /admin
죄송 /을 /를 게시 설정 SRC SyliusSimpleMarketplacePlugin 경우/admin.yml 너무 많은 코드와 정형화되지 않은 오류 메시지 ...
누군가가 내가 CRUD 판매자가 될 수있는 "admin/sellerers"페이지를 표시하는 방법을 이해할 수 있다면, atfull!