2014-12-11 3 views
0

저장소에서 데이터를로드하는 관리자 편집기를 크레이트하고 TYPO3.Neos와 같은 작업을 수행하려고합니다. 이 예외 다음 던졌습니다 177 제어판 다음 경로없이TYPO3 Neos : 경로 생성 예외 발생

<f:security.ifAccess resource="Vendor_Package_BackendAccess"> 
    <link rel="vendor-data" href="{f:uri.action(package: 'Vendor.Package', controller: 'Backend\Content', action: 'load absolute: true)}" /> 
</f:security.ifAccess> 

그러나와 TYPO3.Neos:Page.head.neosBackendEndpoints 같은 렌더링 : TYPO3 네오스 V1.2.0 - 베타 2

가 나는 관계 링크를 렌더링 템플릿을 생성

주어진 매개 변수에 대한 경로와 해당 URI를 확인할 수 없습니다. 이는 링크 또는 URI를 작성하는 동안 기존 패키지/ 컨트롤러/작업을 언급하지 않았기 때문일 수 있습니다. 자세한 내용은 로그 및 백 트레이스를 참조하십시오. (20141211101038f2dcd5)

Routes.yaml :

#                  # 
# Default subroutes configuration for the Vendor.Package package. # 
#                  # 


- 
    name: 'Content Controller - Load data' 
    uriPattern: 'vendor/package' 
    defaults: 
    '@package': 'Vendor.Package' 
    '@controller': 'Backend\Content' 
    '@action': 'load 

그리고 컨트롤러가 존재합니다

패키지/응용 프로그램/Vendor.Package/클래스/공급 업체/패키지/컨트롤러/백엔드/ContentController.php을 여기

로그 :

Uncaught exception #1301610453: Could not resolve a route and its corresponding URI for the given parameters. This may be due to referring to a not existing package/controller/action while building a link or URI. Refer to log and check the backtrace for more details. 

51 TYPO3\Fluid\ViewHelpers\Uri\ActionViewHelper_Original::render("load", array|0|, "Backend\Content", "Vendor.Package", NULL, "", "", array|0|, TRUE, FALSE, array|0|, FALSE) 
50 call_user_func_array(array|2|, array|12|) 
49 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod() 
48 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender() 
47 FluidCache_Standalone_template_file_BackendEndpoints_036fbf06ab45ee579de56d2cae3e675dedf18c2d::{closure}() 
46 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::renderChildren() 
45 TYPO3\Fluid\Core\ViewHelper\AbstractConditionViewHelper::renderThenChild() 
44 TYPO3\Fluid\ViewHelpers\Security\IfAccessViewHelper_Original::render("Vendor_Package_BackendAccess") 
43 call_user_func_array(array|2|, array|1|) 
42 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod() 
41 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender() 
40 FluidCache_Standalone_template_file_BackendEndpoints_036fbf06ab45ee579de56d2cae3e675dedf18c2d::render(TYPO3\Fluid\Core\Rendering\RenderingContext) 
39 TYPO3\Fluid\View\AbstractTemplateView::render() 
38 TYPO3\TypoScript\TypoScriptObjects\TemplateImplementation_Original::evaluate() 
37 TYPO3\TypoScript\Core\Runtime_Original::evaluateInternal("landingPage<TYPO3.Neos:Page>/head<TYPO3.TypoScript:Array>/BackendEndpoints", "NULL", TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation) 
36 TYPO3\TypoScript\Core\Runtime_Original::evaluate("landingPage<TYPO3.Neos:Page>/head<TYPO3.TypoScript:Array>/BackendEndpoints", TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation) 
35 TYPO3\TypoScript\TypoScriptObjects\AbstractTypoScriptObject::tsValue("BackendEndpoints") 
34 TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation_Original::evaluate() 
33 TYPO3\TypoScript\Core\Runtime_Original::evaluateInternal("landingPage<TYPO3.Neos:Page>/head", "NULL", TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation) 
32 TYPO3\TypoScript\Core\Runtime_Original::evaluate("landingPage<TYPO3.Neos:Page>/head", TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation) 
31 TYPO3\TypoScript\TypoScriptObjects\AbstractTypoScriptObject::tsValue("head") 
30 TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation_Original::evaluate() 
29 TYPO3\TypoScript\Core\Runtime_Original::evaluateInternal("landingPage", "Exception") 
28 TYPO3\TypoScript\Core\Runtime_Original::render("landingPage") 
27 TYPO3\TypoScript\TypoScriptObjects\MatcherImplementation_Original::evaluate() 
26 TYPO3\TypoScript\Core\Runtime_Original::evaluateInternal("root<TYPO3.TypoScript:Case>/layout<TYPO3.TypoScript:Matcher>", "Exception") 
25 TYPO3\TypoScript\Core\Runtime_Original::render("root<TYPO3.TypoScript:Case>/layout<TYPO3.TypoScript:Matcher>") 
24 TYPO3\TypoScript\TypoScriptObjects\CaseImplementation_Original::renderMatcher("layout") 
23 TYPO3\TypoScript\TypoScriptObjects\CaseImplementation_Original::evaluate() 
22 TYPO3\TypoScript\Core\Runtime_Original::evaluateInternal("root", "Exception") 
21 TYPO3\TypoScript\Core\Runtime_Original::render("root") 
20 TYPO3\Neos\View\TypoScriptView_Original::render() 
19 TYPO3\Flow\Mvc\Controller\ActionController_Original::callActionMethod() 
18 TYPO3\Flow\Mvc\Controller\ActionController_Original::processRequest(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response) 
17 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response) 
16 TYPO3\Flow\Mvc\Dispatcher::dispatch(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response) 
15 call_user_func_array(array|2|, array|2|) 
14 TYPO3\Flow\Mvc\Dispatcher::Flow_Aop_Proxy_invokeJoinPoint(TYPO3\Flow\Aop\JoinPoint) 
13 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint) 
12 TYPO3\Flow\Security\Aspect\RequestDispatchingAspect_Original::blockIllegalRequestsAndForwardToAuthenticationEntryPoints(TYPO3\Flow\Aop\JoinPoint) 
11 TYPO3\Flow\Aop\Advice\AroundAdvice::invoke(TYPO3\Flow\Aop\JoinPoint) 
10 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint) 
9 TYPO3\Flow\Mvc\Dispatcher::dispatch(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response) 
8 call_user_func_array(array|2|, array|2|) 
7 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("dispatch", array|2|) 
6 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::dispatch(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response) 
5 TYPO3\Flow\Mvc\DispatchComponent_Original::handle(TYPO3\Flow\Http\Component\ComponentContext) 
4 TYPO3\Flow\Http\Component\ComponentChain_Original::handle(TYPO3\Flow\Http\Component\ComponentContext) 
3 TYPO3\Flow\Http\Component\ComponentChain_Original::handle(TYPO3\Flow\Http\Component\ComponentContext) 
2 TYPO3\Flow\Http\RequestHandler::handleRequest() 
1 TYPO3\Flow\Core\Bootstrap::run() 

HTTP RESPONSE: 
[response was empty] 
+0

로 먼저 /Configuration/Routes.yaml를 구성하는 것이 필요 - 그들이 숨겨진 곳 ... 내가 정의 된 경로가 없습니다. 먼저, 설정을 영구적으로 보려면 어떻게 활성화 할 수 있습니까? 두 번째로 Routes.yaml 파일을로드하는 힌트가 있습니까? 나는 그것이 자동으로 행해진다고 생각했다. – user2513437

답변

0

확인. 그것은`관리/구성/'경로 설정 방법을 표시하는 방법에서 발견

- 
    name: 'Vendor Package' 
    uriPattern: '<VendorPackageSubroutes>' 
    subRoutes: 
    'VendorPackageSubroutes': 
     package: 'Vendor.Package' 
     variables: 
     'defaultUriSuffix': '.html' 
+0

메인 /Configuration/Routes.yaml에 정말 필요한가? 이것이 패키지 인 경우 기본적으로이 패키지가 어떻게로드되며 수동으로 항상 편집해야합니까? – user2513437