このエラーが発生しましたが、アクション クラスを作成しました。モジュールの生成に問題があると思います。私はこの方法に従います。ユーザーがリンクをクリックすると、ホームページが自動的にリダイレクトされます。
./symfony generate:module frontend article
どうすればこの問題を解決できますか?
class makebookActions extends sfActions
{
public function executeIndex(sfWebRequest $request)
{
$personalId = $request->getParameter('personal_id', $this->getUser()->getAttribute('detail')->getId());
$this->personal = Doctrine::getTable('Personal')->find($personalId);
//if user or his friend viewing makebook showe them all
if ($this->getUser()->getAttribute('detail')->getId() == $personalId ||
$this->getUser()->getAttribute('detail')->isFriend($personalId))
{
$this->makebook = $this->personal->getmakebook();
}
else
{
$this->makebook = $this->personal->getmakebook();
}
$this->countries = Doctrine::getTable("Country")->findAll();
}
}
私のrouting.yml:
makebook:
url: /makebook
param: { module: makebook, action: index }
most_recent:
url: /makebook/most_recent
param: { module: makebook, action: mostrecent }
makebook_view:
url: /makebook/view
param: { module: makebook, action: view }
makebook_new:
url: /makebook/new
param: { module: makebook, action: new }
makebook_edit:
url: /makebook/edit
param: { module: makebook, action: edit }
これは私のスタックトレースです:
#0 /home/whatplan/public_html/apps/frontend/modules/main/actions/actions.class.php(84): sfAction->redirect('@personal_homep...')
#1 /home/whatplan/public_html/cache/frontend/prod/config/config_core_compile.yml.php(459): mainActions->executeSignin(Object(sfWebRequest))
#2 /home/whatplan/public_html/cache/frontend/prod/config/config_core_compile.yml.php(952): sfActions->execute(Object(sfWebRequest))
#3 /home/whatplan/public_html/cache/frontend/prod/config/config_core_compile.yml.php(947): sfExecutionFilter->executeAction(Object(mainActions))
#4 /home/whatplan/public_html/cache/frontend/prod/config/config_core_compile.yml.php(933): sfExecutionFilter->handleAction(Object(sfFilterChain), Object(mainActions))