2ちゃんねる ■掲示板に戻る■ 全部 1- 最新50    

symfony PHPフレームワークpart2

220 :nobodyさん:2010/10/11(月) 00:10:20 ID:???.net
#action.class.php
public function executeIndex(sfWebRequest $request)
{
 $this->thread = Doctrine_Core::getTable('thread')
  ->createQuery('t')
  ->where('t.id',$request->getParameter('id'))
  ->leftJoin('t.User u')
  ->execute();
}

#indexSuccess.php
お名前は<?php echo $thread->getUser()->getName() ?>

似たような話題で、http://blog.asial.co.jp/591 も見てみたのですが、
バージョン違いなのか全く動きませんでした。


132 KB
新着レスの表示

掲示板に戻る 全部 前100 次100 最新50
名前: E-mail (省略可) :

read.cgi ver.24052200