Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to get the survey preview "url" with createUrl function?

  • hagerregah
  • hagerregah's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #209159 by hagerregah
I tried the
Code:
$this->createUrl("../../../../../".$oSurvey->sid)
 

On the page: http://localhost/limesurvey/index.php/admin/survey/sa/view/surveyid/355472#

But It didn't work.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209172 by DenisChenu
??????

How you find this …

www.yiiframework.com/doc/api/1.1/CController#createUrl-detail

App()->createUrl("survey/index", array("sid"=>$surveyId,"newtest"=>"Y");

(if surey is not activated : it's a preview)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose