views:

107

answers:

1

I have a Cakephp project the controller has several different methods.

function Index()
function IndexAuthor()

And I want to use the same 'view' (or template, Index.ctp) for both of the methods of the control.

+2  A: 

You're looking for Controller::render().

function IndexAuthor() {
    $this->render('index');
}
deceze