I have in each function one of my module:

$this->forward404If(!$request->hasParameter('id'));
$a = (int)$request->getParameter('id');

$number = Doctrine_Query::create()
          ->select('username')
          ->from('sfGuardUser')
          ->where('id = ?', $a)
          ->andWhere('is_super_admin = ?', 0)
          ->count();

if($number!=1) $this->forward404();



I wanted att this code to:
public function preExecute(sfWebRequest $request)
{
}

But I have error because preExecute can't have any argument - strange
constructor. Any idea ? :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to