Development

Changeset 6756

You must first sign up to be able to contribute.

Changeset 6756

Show
Ignore:
Timestamp:
12/27/07 15:48:37 (1 year ago)
Author:
fabien
Message:

doc: fixed first project tutorial for 1.1 (closes #2663)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.1/tutorial/my-first-project.txt

    r6465 r6756  
    200200 
    201201    [php] 
    202     public function executeShow(
    203     { 
    204       $this->post = PostPeer::retrieveByPk($this->getRequestParameter('id')); 
     202    public function executeShow($request
     203    { 
     204      $this->post = PostPeer::retrieveByPk($request->getParameter('id')); 
    205205      $this->forward404Unless($this->post); 
    206206 
    207207      $c = new Criteria(); 
    208       $c->add(CommentPeer::POST_ID, $this->getRequestParameter('id')); 
     208      $c->add(CommentPeer::POST_ID, $request->getParameter('id')); 
    209209      $c->addAscendingOrderByColumn(CommentPeer::CREATED_AT); 
    210210      $this->comments = CommentPeer::doSelect($c);