Re: does $this->render act as "die" in 1.2?

2010-12-23 Thread cricket
On Thu, Dec 23, 2010 at 5:25 AM, Stephen  wrote:
> I'm pretty sure it will stop executing any further but unfortunately I'm
> reworking a process and haven't finished my amendments to test.
>
> It's more of a niggle than a problem, anyone know if I need to chuck in some
> dies?

What Amit said. And you should only use die() for debugging/error
control. Use return instead. You only want to get out of the action,
not kill the entire process.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: does $this->render act as "die" in 1.2?

2010-12-23 Thread Stephen
Thanks for the heads up.

On 23 December 2010 10:25, Amit Badkas  wrote:

> Hi,
>
> No, $this->render() doesn't stop execution.
>
> Amit Badkas
>
> PHP Applications for E-Biz: http://www.sanisoft.com
>
>
>
> On Thu, Dec 23, 2010 at 3:47 PM, Stephen 
> wrote:
>
>> Simple question.
>>
>> I'm reworking some of my code to make it more efficient and user friendly
>> (Fat Models etc)
>>
>> I'm wondering, does $this->render() stop cake from reading further on in
>> the controller action? (I.e. Act like running die() )
>>
>> Cheers
>>
>> --
>> Kind Regards
>>  Stephen @ NinjaCoderMonkey
>>
>>  www.ninjacodermonkey.co.uk
>>
>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: does $this->render act as "die" in 1.2?

2010-12-23 Thread Amit Badkas
Hi,

No, $this->render() doesn't stop execution.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Thu, Dec 23, 2010 at 3:47 PM, Stephen wrote:

> Simple question.
>
> I'm reworking some of my code to make it more efficient and user friendly
> (Fat Models etc)
>
> I'm wondering, does $this->render() stop cake from reading further on in
> the controller action? (I.e. Act like running die() )
>
> Cheers
>
> --
> Kind Regards
>  Stephen @ NinjaCoderMonkey
>
>  www.ninjacodermonkey.co.uk
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: does $this->render act as "die" in 1.2?

2010-12-23 Thread Stephen
I'm pretty sure it will stop executing any further but unfortunately I'm
reworking a process and haven't finished my amendments to test.

It's more of a niggle than a problem, anyone know if I need to chuck in some
dies?

On 23 December 2010 10:22, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:

> What happens when you try?
>
> Jeremy Burns
> *Class Outfit*
> *
> *
> jeremybu...@classoutfit.com 
> http://www.classoutfit.com
>
> On 23 Dec 2010, at 10:17, Stephen wrote:
>
> Simple question.
>
> I'm reworking some of my code to make it more efficient and user friendly
> (Fat Models etc)
>
> I'm wondering, does $this->render() stop cake from reading further on in
> the controller action? (I.e. Act like running die() )
>
> Cheers
>
> --
> Kind Regards
>  Stephen @ NinjaCoderMonkey
>
>  www.ninjacodermonkey.co.uk
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: does $this->render act as "die" in 1.2?

2010-12-23 Thread Jeremy Burns | Class Outfit
What happens when you try?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 23 Dec 2010, at 10:17, Stephen wrote:

> Simple question.
> 
> I'm reworking some of my code to make it more efficient and user friendly 
> (Fat Models etc)
> 
> I'm wondering, does $this->render() stop cake from reading further on in the 
> controller action? (I.e. Act like running die() )
> 
> Cheers
> 
> -- 
> Kind Regards
>  Stephen @ NinjaCoderMonkey
> 
>  www.ninjacodermonkey.co.uk
> 
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en