smarty3 - codeigniter HMVC + Smarty: can we call module view routine from template -
just started using hmvc module extension
, smarty
codeigniter
. in hmvc, can call module functions view generate specific view (in case modal dialog login in case user not logged in):
<?php echo modules::run('module/controller/method', $param, $...); ?>
all seemed work pretty before started using smarty templates. question -
is practice call php routines directly templates generate view?
are there other alternatives keeping hmvc intact ?
one way can create specific templates such login_dialog.tpl , include directly in base templates based on user login status. but, feel defies purpose of hmvc , should use modules generate view , not directly include them. may wrong. please suggest alternatives..
Comments
Post a Comment