SymfonyのJobeetはインデックスページが見つかりませんか?
質問
私は中にいます 10日目 SymfonyのJobeetチュートリアルの。すべてがうまくいきましたが、インデックスページにアクセスしようとしたとき: http:// localhost:9090/frontend_dev.php
次のメッセージを受け取りました。
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日目のバックアップがあり、インデックスページは正常に動作します)。
助言がありますか?
解決
App/Modules/Job/Action.class.phpのメソッドを、単に追加するのではなく、10日目に見つけたものに置き換えたと思います。このファイルに何かを取得したい場合は、このファイルに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)
{
...
}
...
}
私もそれを上書きしました。ええそうです ExecuteIndex と 実行する 「インデックス」と「show」にとって重要です。 ;)
所属していません StackOverflow