2010-08-10 5 views
0

나는 Symfony의 Jobeet Tutorial의 day 10에 있습니다. 모든 좋은 일을하지만 인덱스 페이지로 이동하려고 할 때 : http://localhost:9090/frontend_dev.phpSymfony의 Jobeet에서 색인 페이지를 찾을 수 없습니까?

나는 다음과 같은 메시지가 있어요 :

sfPatternRouting Match route "job" (/job.:sf_format) for /job with parameters array ('module' => 'job', 'action' => 'index', 'sf_format' => 'html',) 
2 Info sfFrontWebController Action "job/index" does not exist 
3 Error sfError404Exception Action "job/index" does not exist. 

(나는 아직도 9 일의 백업이, 그리고 인덱스 페이지가 잘 작동) .

제안 사항?

답변

1

아마도 app/modules/job/actions.class.php의 메소드를 10 일에 찾은 것으로 대체했을 것입니다. 당신은/작업에서 뭔가를 얻으려면

+0

문제가있었습니다. 젠장, 튜토리얼에서 "단순화"라는 단어를 보았고 모든 것을 삭제해야한다고 생각했습니다. 감사! – alexchenco

1

이 그래, 이런 식으로 뭔가이 파일에 executeIndex() 메소드가 있어야한다 : 나는 또한 그것을 덮어했다

class jobActions extends sfActions 
{ 
    public function executeIndex(sfWebRequest $request) 
    { 
    $this->categories = Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); 
    } 

    public function executeShow(sfWebRequest $request) 
    { 
    $this->job = $this->getRoute()->getObject(); 
    } 

    public function executeNew(sfWebRequest $request) 
    { 
    ... 
    } 
    ... 
} 

. 예 그래서 executeIndexexecuteShow은 "색인"및 "표시"에 중요합니다. ;)

관련 문제