View Revisions: Issue #11909

Summary 11909: Templates views (questions) : same method for all
Revision 2016-11-15 12:30 by DenisChenu
Additional Information renderPartial can be extended in https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/controllers/SurveysController.php : and take same logic than https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/helpers/qanda_helper.php#L6536 . Then it's not an issue to use Yii::app()->getController()->renderPartial directly for next release. (I can do the SurveysController->renderPartial function : no problem (easy).

But : we need to extend twig if we use it : http://twig.sensiolabs.org/doc/advanced.html add a function to call Yii::app()->getController()->renderPartial (or another way).

About 1+2+3+4 solution : when decision is take : we can rewrite partially each view one by one to use the new system.


Vote
Denis : solution 3 , step by step when we update a view (and have some times)
Louis : solution 3
Revision 2016-11-15 09:51 by DenisChenu
Additional Information renderPartial can be extended in https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/controllers/SurveysController.php : and take same logic than https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/helpers/qanda_helper.php#L6536 . Then it's not an issue to use Yii::app()->getController()->renderPartial directly for next release. (I can do the SurveysController->renderPartial function : no problem (easy).

But : we need to extend twig if we use it : http://twig.sensiolabs.org/doc/advanced.html add a function to call Yii::app()->getController()->renderPartial (or another way).

About 1+2+3+4 solution : when decision is take : we can rewrite partially each view one by one to use the new system.