8 public $layout =
'gportal';
10 public function actionIndex()
13 $url = Yii::app()->getModule(
'pdf')->createUrl($_GET[
'url']);
14 echo
"<a href='$url'>$url</a>";
18 public function actionMail()
21 $r =
'km.schremser@gentics.com';
24 $mail->AddAddress($r);
25 $mail->Subject =
'SUB';
26 $mail->MsgHTML(
'MSG');
30 public function actionLocale()
32 $localeFiles = opendir(Yii::getPathOfAlias(
'site.framework.i18n.data'));
33 $currencyValue = isset($_GET[
'currencyValue']) ? $_GET[
'currencyValue'] : 10000000;
34 $currencyType = isset($_GET[
'currencyType']) ? $_GET[
'currencyType'] :
'USD';
35 $dateValue = isset($_GET[
'dateValue']) ? $_GET[
'dateValue'] : time();
36 $localeValue = isset($_GET[
'locale']) ? $_GET[
'locale'] :
'en,en_gb,de,de_at';
40 $locales = array_map(
'trim', explode(
',', $localeValue));
41 $localeValue = implode(
',', $locales);
43 while ($file = readdir($localeFiles)) {
44 if ($file ==
'.' || $file ==
'..')
continue;
45 $parsedLocale = explode(
'.', $file);
46 if ($parsedLocale[1] ==
'php') {
47 $locales[] = $parsedLocale[0];
56 'locales' => $locales,
57 'locale' => $localeValue,
58 'currencyValue' => $currencyValue,
59 'dateValue' => $dateValue,
60 'currencyType' => $currencyType
65 public function actionItem()
72 public function actionTmpUser()