开发者

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'; ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜