2012-12-31 2 views
0

나는 Kohana에서이 오류를 잡 유지한다. 로컬이 내 부트 스트랩 경로Kohana 오류 (ERR_EMPTY_RESPONSE 324)

Route::set('notifications', '(<controller>)(/<action>)', array('controller' => 'notifications|dailysales', 'action' => 'index|send')) 
->defaults(array('controller' => 'notifications', 'action' => 'index')); 


Route::set('sales', 'sales(/<action>)', array('action' => 'index|export')) 
->defaults(array('controller' => 'sales', 'action' => 'index')); 
+0

이 문제는 다른 브라우저에서 나타 납니까? 아니면 그냥 크롬 버그 (가능한 http://www.roezer.com/fixing-chrome-bug-error-324-neterr_empty_response/)입니까? – biakaveron

답변

1

먼저, 첫 번째 경로 shouldn입니다

.. 작동 생산 ... 에 공지 사항을 입력 할 때 그것은 또한 .. 잘 작동하고 내 부트 스트랩은 동일합니다 2 개의 선택적 매개 변수가 있습니다. 둘째, pcre 정규 표현식에 괄호를 넣으십시오. 당신의 Kohana::$environment가 제대로 설정되는 경우

Route::set('sales', 'sales(/<action>)', array('action' => '(index|export)')) 
->defaults(array(
    'controller' => 'sales', 
    'action' => 'index' 
)); 

Route::set('notifications', '<controller>(/<action>)', array(
    'controller' => '(notifications|dailysales)', 
    'action' => '(index|send)' 
)) 
->defaults(array(
    'controller' => 'notifications', 
    'action' => 'index' 
)); 

그리고 마지막으로, 확인하고 '개발'이 '생산'(각 환경에 대해 서로 다른 CONFIGS)에서 차이가있는 경우 : 셋째,보다 구체적인 노선들은 항상 먼저 가야한다. 마지막으로 "비난하는"것은 PHP 버전입니다.

관련 문제