root/trunk/apps/snippets/modules/tag/actions/actions.class.php

Revision 2, 0.5 kB (checked in by fabien, 4 years ago)

initial import

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /**
4  * tag actions.
5  *
6  * @package    sf_sandbox
7  * @subpackage tag
8  * @author     Your name here
9  * @version    SVN: $Id$
10  */
11 class tagActions extends sfActions
12 {
13   /**
14    * Executes index action
15    *
16    */
17   public function executeIndex()
18   {
19   }
20
21   public function executeDelete()
22   {
23     $c = new Criteria();
24     $c->add(TagPeer::NAME, $this->getRequestParameter('tag'));
25     $tags = SnippetTagPeer::doSelect($c);
26
27     foreach($tags as $tag)
28     {
29       $tag->delete();
30     }
31
32     $this->redirect('@homepage');
33   }
34 }
35
36 ?>
Note: See TracBrowser for help on using the browser.