Development

Changeset 3436

You must first sign up to be able to contribute.

Changeset 3436

Show
Ignore:
Timestamp:
02/10/07 01:51:50 (6 years ago)
Author:
erestar
Message:

Removed un-needed crud stuff from comment module

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfBlogPlugin/modules/blog_auth/actions/actions.class.php

    r3433 r3436  
    22//If you've copied and pasted the origional file into your own apps modules, use the line below and 
    33//uncomment out the other 
    4 //require_once(sfConfig::get('sf_plugins_dir').'/sfBlogPlugin/modules/blog/lib/BaseBlog_authActions.class.php'); 
     4//require_once(sfConfig::get('sf_plugins_dir').'/sfBlogPlugin/modules/blog_auth/lib/BaseBlog_authActions.class.php'); 
    55 
    66require_once(dirname(__FILE__).'/../lib/BaseBlog_authActions.class.php'); 
  • plugins/sfBlogPlugin/modules/blog_comment/actions/actions.class.php

    r3433 r3436  
    22//If you've copied and pasted the origional file into your own apps modules, use the line below and 
    33//uncomment out the other 
    4 //require_once(sfConfig::get('sf_plugins_dir').'/sfBlogPlugin/modules/blog/lib/BaseBlog_commentActions.class.php'); 
     4//require_once(sfConfig::get('sf_plugins_dir').'/sfBlogPlugin/modules/blog_comment/lib/BaseBlog_commentActions.class.php'); 
    55 
    66require_once(dirname(__FILE__).'/../lib/BaseBlog_commentActions.class.php'); 
  • plugins/sfBlogPlugin/modules/blog_comment/lib/BaseBlog_commentActions.class.php

    r3434 r3436  
    22class Baseblog_commentActions extends sfActions 
    33{ 
    4   public function executeIndex() 
    5   { 
    6     return $this->forward('blog_comment', 'list'); 
    7   } 
    8  
    9   public function executeList() 
    10   { 
    11     $this->sf_blog_comments = sfBlogCommentPeer::doSelect(new Criteria()); 
    12   } 
    13  
    14   public function executeShow() 
    15   { 
    16     $this->sf_blog_comment = sfBlogCommentPeer::retrieveByPk($this->getRequestParameter('id')); 
    17     $this->forward404Unless($this->sf_blog_comment); 
    18   } 
    19  
    204  public function executeCreate() 
    215  { 
     
    2610    $this->blog = $blog; 
    2711    $this->setTemplate('edit'); 
    28   } 
    29  
    30   public function executeEdit() 
    31   { 
    32     $this->sf_blog_comment = sfBlogCommentPeer::retrieveByPk($this->getRequestParameter('id')); 
    33     $this->forward404Unless($this->sf_blog_comment); 
    3412  } 
    3513 
     
    6038    return $this->redirect('@get_blog_by_name?title='.$blog->getTitle()); 
    6139  } 
    62  
    63   public function executeDelete() 
    64   { 
    65     $sf_blog_comment = sfBlogCommentPeer::retrieveByPk($this->getRequestParameter('id')); 
    66  
    67     $this->forward404Unless($sf_blog_comment); 
    68  
    69     $sf_blog_comment->delete(); 
    70  
    71     return $this->redirect('blog_comment/list'); 
    72   } 
    7340}