Yii - Exit or End a Controller action

To exit or end processing in a controller action use the end  function

      	Yii::app()->end();

For example; this may be used to terminate processing if invalid, incorrect or missing parameters are passed


   if (empty($_GET))
       	Yii::app()->end();

Did you know you can hire me?

I take on projects of all sizes. From Consulting to large Development Projects.

If you're starting a new Yii project and would like some help to get setup and running or you need some help with a particular module or you just need someone to develop the whole dang thing, then just ask ...


One comment

  • twitter.49769145
    13/02/2012

    Yii - Exit or End a Controller action: To exit or end processing in a controller action use the end  fun... http://t.co/azm92sSq

Leave a Comment

twitterfacebookgooglelinkedin https://me.yahoo.com