CakePHP same 'view' for multiple functions
I have a Cakephp project the controller has several different methods.
function Index(开发者_如何学JAVA)
function IndexAuthor()
And I want to use the same 'view' (or template, Index.ctp) for both of the methods of the control.
You're looking for Controller::render()
.
function IndexAuthor() {
$this->render('index');
}
Form->checkbox('is_active', array('is_active', value = 'active')) . 'Active'; ?>
精彩评论