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
  • Junior Member
  • Junior Member
More
4 years 5 months ago #209159 by hagerregah
I tried the
Code:
$this->createUrl("../../../../../".$oSurvey->sid)
 

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

But It didn't work.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 5 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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose