You're welcome :)

On Mon, May 11, 2009 at 1:12 AM, dziobacz <[email protected]> wrote:
>
> heheheh - it works !! - You helped me so many times - thx again ;]
>
> On 10 Maj, 15:02, Sid Bachtiar <[email protected]> wrote:
>> Try:
>>
>> public function preExecute()
>> {
>>   $request = $this->getRequest();
>>
>>   // ... use $request here
>>
>> }
>> > But I have error because preExecute can't have any argument - strange
>> > constructor. Any idea ? :)
>>
>> It is not a constructor! It is just a function that Symfony calls
>> before the actual action function.
>>
>>
>>
>> On Mon, May 11, 2009 at 12:46 AM, dziobacz <[email protected]> wrote:
>>
>> > 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 ? :)
>>
>> --
>> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
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