Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
frontend
views
widgetsTests
poolWidget.php
1
<?php
2
$this->widget(
'vote.widgets.PoolWidget'
, array(
3
'id'
=>
'crf22'
,
4
'author_id'
=> 1,
5
'question'
=>
'Do you like potatoes, ah?'
,
6
'answers'
=> array(
7
'q1'
=> array(
'text'
=>
'Yes'
,
'order'
=> 1),
8
'q2'
=> array(
'text'
=>
'No'
,
'order'
=> 2),
9
'q3'
=> array(
'text'
=>
'Dont know'
,
'order'
=> 3),
10
'q4'
=> array(
'text'
=>
'Hmmm...'
,
'order'
=> 5),
11
),
12
'multiply'
=>
true
,
13
//'forwardTo' => Yii::app()->request->requestUri,//Yii::app()->createUrl('/vote/test/success'),
14
'resultsLink'
=> Yii::app()->createUrl(
'/widgetsTest/poolResultsWidget'
),
15
'showResultsLink'
=>
false
,
16
'dynamic'
=>
true
,
17
//'ajax' => true,
18
'allowAnonymous'
=>
true
,
19
'additionalFields'
=> array(
20
'pageName'
=>
'Page '
.rand(),
21
'userStatus'
=>
'Status '
.rand()
22
)
23
));
24
?>
25
26
27
<?php
28
$this->widget(
'vote.widgets.ResultsWidget'
, array(
'id'
=>
'crf22'
,
'unvotedShow'
=>
true
));
29
?>
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2