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 Answers 2

4

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

function IndexAuthor() {
    $this->render('index');
}
-2
Form->checkbox('is_active', array('is_active', value = 'active')) . 'Active'; ?>
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.