Call to another controllers action and return back to first controller action




/***** first controller *****/


class FirstController extends Controller {

    public actionCheck(){

        // render file.

    }

}


/***** Second controller ****/

class SecondController extends Controller {

     public actionCreate(){

         // call to first controller action check and return back to second controller.

     }

}




When second controllers "actionCreate" is fired inside that i need to call first controller action "actionCheck" and return back to second controllers "actionCreate".

If the code inside your FirstController is not dependent on current request, then make a static helper function and call it from SecondController.