Changeset 3436
- Timestamp:
- 02/10/07 01:51:50 (2 years ago)
- Files:
-
- plugins/sfBlogPlugin/modules/blog_auth/actions/actions.class.php (modified) (1 diff)
- plugins/sfBlogPlugin/modules/blog_comment/actions/actions.class.php (modified) (1 diff)
- plugins/sfBlogPlugin/modules/blog_comment/lib/BaseBlog_commentActions.class.php (modified) (3 diffs)
- plugins/sfBlogPlugin/modules/blog_comment/templates/listSuccess.php (deleted)
- plugins/sfBlogPlugin/modules/blog_comment/templates/showSuccess.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfBlogPlugin/modules/blog_auth/actions/actions.class.php
r3433 r3436 2 2 //If you've copied and pasted the origional file into your own apps modules, use the line below and 3 3 //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'); 5 5 6 6 require_once(dirname(__FILE__).'/../lib/BaseBlog_authActions.class.php'); plugins/sfBlogPlugin/modules/blog_comment/actions/actions.class.php
r3433 r3436 2 2 //If you've copied and pasted the origional file into your own apps modules, use the line below and 3 3 //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'); 5 5 6 6 require_once(dirname(__FILE__).'/../lib/BaseBlog_commentActions.class.php'); plugins/sfBlogPlugin/modules/blog_comment/lib/BaseBlog_commentActions.class.php
r3434 r3436 2 2 class Baseblog_commentActions extends sfActions 3 3 { 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 20 4 public function executeCreate() 21 5 { … … 26 10 $this->blog = $blog; 27 11 $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);34 12 } 35 13 … … 60 38 return $this->redirect('@get_blog_by_name?title='.$blog->getTitle()); 61 39 } 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 }73 40 }