Commit b77360b8 authored by waltermazza's avatar waltermazza
Browse files

Arter namespace

parent cd4f4d38
......@@ -9,13 +9,13 @@ Plugin to make surveys.
Either run
```bash
composer require elitedivision/amos-sondaggi
composer require arter/amos-sondaggi
```
or add this row
```
"elitedivision/amos-sondaggi": "~1.0"
"arter/amos-sondaggi": "~1.0"
```
to the require section of your `composer.json` file.
......@@ -27,7 +27,7 @@ to the require section of your `composer.json` file.
<?php
'modules' => [
'sondaggi' => [
'class' => 'elitedivision\amos\sondaggi\AmosSondaggi'
'class' => 'arter\amos\sondaggi\AmosSondaggi'
],
],
```
......@@ -36,7 +36,7 @@ to the require section of your `composer.json` file.
### 3. Apply migrations
```bash
php yii migrate/up --migrationPath=@vendor/elitedivision/amos-sondaggi/src/migrations
php yii migrate/up --migrationPath=@vendor/arter/amos-sondaggi/src/migrations
```
or add this row to your migrations config in console:
......@@ -44,6 +44,6 @@ or add this row to your migrations config in console:
```php
<?php
return [
'@vendor/elitedivision/amos-sondaggi/src/migrations',
'@vendor/arter/amos-sondaggi/src/migrations',
];
```
......@@ -6,14 +6,14 @@
"yii2",
"sondaggi"
],
"homepage": "http://www.elitedivision.it/",
"homepage": "http://www.arter.it/",
"type": "component",
"license": "BSD-3-Clause",
"support": {
"issues": "http://www.example.com/",
"forum": "http://www.example.com/forum/",
"wiki": "http://www.example.com/wiki/",
"source": "https://github.com/elitedivision/amos-sondaggi"
"source": "https://github.com/arter/amos-sondaggi"
},
"require": {
"php": ">=5.4.0",
......@@ -28,7 +28,7 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\sondaggi\\": "src"
"arter\\amos\\sondaggi\\": "src"
}
}
}
\ No newline at end of file
......@@ -5,31 +5,31 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\sondaggi
* @package arter\amos\sondaggi
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi;
namespace arter\amos\sondaggi;
use elitedivision\amos\core\module\AmosModule;
use elitedivision\amos\core\module\ModuleInterface;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconAmministraSondaggi;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconCompilaSondaggi;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconPubblicaSondaggi;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconSondaggi;
use arter\amos\core\module\AmosModule;
use arter\amos\core\module\ModuleInterface;
use arter\amos\sondaggi\widgets\icons\WidgetIconAmministraSondaggi;
use arter\amos\sondaggi\widgets\icons\WidgetIconCompilaSondaggi;
use arter\amos\sondaggi\widgets\icons\WidgetIconPubblicaSondaggi;
use arter\amos\sondaggi\widgets\icons\WidgetIconSondaggi;
use Yii;
use yii\db\Connection;
use yii\helpers\ArrayHelper;
/**
* Class AmosSondaggi
* @package elitedivision\amos\sondaggi
* @package arter\amos\sondaggi
*/
class AmosSondaggi extends AmosModule implements ModuleInterface
{
public static $CONFIG_FOLDER = 'config';
public $controllerNamespace = 'elitedivision\amos\sondaggi\controllers';
public $controllerNamespace = 'arter\amos\sondaggi\controllers';
public $newFileMode = 0666;
public $newDirMode = 0777;
......@@ -90,7 +90,7 @@ class AmosSondaggi extends AmosModule implements ModuleInterface
parent::init();
$this->db = Yii::$app->db;
\Yii::setAlias('@elitedivision/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
// initialize the module with the configuration loaded from config.php
$config = require(__DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php');
Yii::configure($this, ArrayHelper::merge($config, $this));
......
......@@ -4,18 +4,18 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\assets;
namespace arter\amos\sondaggi\assets;
use yii\web\AssetBundle;
class ModuleRisultatiAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
public $sourcePath = '@vendor/arter/amos-sondaggi/src/assets/web';
public $css = [
'css/stile.css'
......@@ -33,9 +33,9 @@ class ModuleRisultatiAsset extends AssetBundle
{
$moduleL = \Yii::$app->getModule('layout');
if(!empty($moduleL))
{ $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
{ $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
else
{ $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
{ $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
parent::init(); // TODO: Change the autogenerated stub
}
}
......@@ -4,18 +4,18 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\assets;
namespace arter\amos\sondaggi\assets;
use yii\web\AssetBundle;
class ModuleRisultatiFrontendAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
public $sourcePath = '@vendor/arter/amos-sondaggi/src/assets/web';
public $css = [
'less/sondaggi-frontend.less'
......
......@@ -4,19 +4,19 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\assets;
namespace arter\amos\sondaggi\assets;
use yii\web\AssetBundle;
use elitedivision\amos\core\widget\WidgetAbstract;
use arter\amos\core\widget\WidgetAbstract;
class ModuleSondaggiAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
public $sourcePath = '@vendor/arter/amos-sondaggi/src/assets/web';
public $css = [
'css/stile.css'
......@@ -37,9 +37,9 @@ class ModuleSondaggiAsset extends AssetBundle
$this->css = ['less/sondaggi-fullsize.less'];
}
if(!empty($moduleL))
{ $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
{ $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
else
{ $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
{ $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
parent::init();
}
}
......@@ -4,18 +4,18 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\assets;
namespace arter\amos\sondaggi\assets;
use yii\web\AssetBundle;
class ModuleSondaggiPublicAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
public $sourcePath = '@vendor/arter/amos-sondaggi/src/assets/web';
public $css = [
];
......@@ -31,9 +31,9 @@ class ModuleSondaggiPublicAsset extends AssetBundle
{
$moduleL = \Yii::$app->getModule('layout');
if(!empty($moduleL))
{ $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
{ $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
else
{ $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
{ $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
parent::init(); // TODO: Change the autogenerated stub
}
}
......@@ -4,18 +4,18 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\assets;
namespace arter\amos\sondaggi\assets;
use yii\web\AssetBundle;
class ModuleSondaggiRisposteAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
public $sourcePath = '@vendor/arter/amos-sondaggi/src/assets/web';
public $css = [
];
......@@ -31,9 +31,9 @@ class ModuleSondaggiRisposteAsset extends AssetBundle
{
$moduleL = \Yii::$app->getModule('layout');
if(!empty($moduleL))
{ $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
{ $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
else
{ $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
{ $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
parent::init(); // TODO: Change the autogenerated stub
}
}
/**
IMPORT AMOS-LAYOUT VARIABLES
*/
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/variables.less";
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/utility.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/v2/variables.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/v2/utility.less";
/**
IMPORT STYLE-CUSTOM
......
/**
IMPORT AMOS-LAYOUT VARIABLES
*/
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/variables.less";
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/utility.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/v2/variables.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/v2/utility.less";
/**
IMPORT STYLE-CUSTOM
*/
......
......@@ -4,12 +4,12 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\components;
namespace arter\amos\sondaggi\components;
use yii\base\Widget;
use yii\helpers\Html;
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -12,7 +12,7 @@
return [
'modules' => [
'v1' => [
'class' => \elitedivision\amos\sondaggi\modules\v1\V1::className()
'class' => \arter\amos\sondaggi\modules\v1\V1::className()
]
],
];
......@@ -5,16 +5,16 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\controllers;
namespace arter\amos\sondaggi\controllers;
use elitedivision\amos\sondaggi\AmosSondaggi;
use elitedivision\amos\sondaggi\models\SondaggiDomande;
use elitedivision\amos\sondaggi\models\SondaggiDomandePagine;
use arter\amos\sondaggi\AmosSondaggi;
use arter\amos\sondaggi\models\SondaggiDomande;
use arter\amos\sondaggi\models\SondaggiDomandePagine;
use yii\db\Query;
use yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
......@@ -23,7 +23,7 @@ use yii\web\Controller;
/**
* Class AjaxController
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
*/
class AjaxController extends Controller
{
......
......@@ -4,29 +4,29 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\controllers;
use elitedivision\amos\admin\models\UserProfile;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\dashboard\controllers\TabDashboardControllerTrait;
use elitedivision\amos\sondaggi\AmosSondaggi;
use elitedivision\amos\sondaggi\models\Risposte;
use elitedivision\amos\sondaggi\models\search\SondaggiSearch;
use elitedivision\amos\sondaggi\models\Sondaggi;
use elitedivision\amos\sondaggi\models\SondaggiDomande;
use elitedivision\amos\sondaggi\models\SondaggiDomandeCondizionate;
use elitedivision\amos\sondaggi\models\SondaggiDomandePagine;
use elitedivision\amos\sondaggi\models\SondaggiRispostePredefinite;
use elitedivision\amos\sondaggi\models\SondaggiRisposteSessioni;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconSondaggiGeneral;
use elitedivision\amos\upload\models\FilemanagerMediafile;
namespace arter\amos\sondaggi\controllers;
use arter\amos\admin\models\UserProfile;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use arter\amos\sondaggi\AmosSondaggi;
use arter\amos\sondaggi\models\Risposte;
use arter\amos\sondaggi\models\search\SondaggiSearch;
use arter\amos\sondaggi\models\Sondaggi;
use arter\amos\sondaggi\models\SondaggiDomande;
use arter\amos\sondaggi\models\SondaggiDomandeCondizionate;
use arter\amos\sondaggi\models\SondaggiDomandePagine;
use arter\amos\sondaggi\models\SondaggiRispostePredefinite;
use arter\amos\sondaggi\models\SondaggiRisposteSessioni;
use arter\amos\sondaggi\widgets\icons\WidgetIconSondaggiGeneral;
use arter\amos\upload\models\FilemanagerMediafile;
use kartik\mpdf\Pdf;
use Yii;
use yii\filters\AccessControl;
......@@ -40,10 +40,10 @@ use yii\web\UploadedFile;
* Class SondaggiController
* SondaggiController implements the CRUD actions for Sondaggi model.
*
* @property \elitedivision\amos\sondaggi\models\Sondaggi $model
* @property \elitedivision\amos\sondaggi\models\search\SondaggiSearch $modelSearch
* @property \arter\amos\sondaggi\models\Sondaggi $model
* @property \arter\amos\sondaggi\models\search\SondaggiSearch $modelSearch
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
*/
class ConsoleController extends \yii\console\Controller
{
......@@ -211,7 +211,7 @@ class ConsoleController extends \yii\console\Controller
$objWriter->save($nomeFile);
if (!is_null($task_id)) {
$task = \elitedivision\amos\sondaggi\modules\v1\models\TaskSondaggi::findOne($task_id);
$task = \arter\amos\sondaggi\modules\v1\models\TaskSondaggi::findOne($task_id);
if (!is_null($task)) {
$task->filename = $nomeFile;
$task->status = 3;
......
......@@ -4,54 +4,54 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\controllers;
use elitedivision\amos\admin\models\UserProfile;
use elitedivision\amos\attachments\components\AttachmentsList;
use elitedivision\amos\attachments\models\File;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\core\user\User;
use elitedivision\amos\dashboard\controllers\TabDashboardControllerTrait;
use elitedivision\amos\sondaggi\AmosSondaggi;
use elitedivision\amos\sondaggi\models\GeneratoreSondaggio;
use elitedivision\amos\sondaggi\models\search\SondaggiSearch;
use elitedivision\amos\sondaggi\models\Sondaggi;
use elitedivision\amos\sondaggi\models\SondaggiDomande;
use elitedivision\amos\sondaggi\models\SondaggiDomandePagine;
use elitedivision\amos\sondaggi\models\SondaggiRisposte;
use elitedivision\amos\sondaggi\models\SondaggiRisposteSessioni;
use elitedivision\amos\sondaggi\utility\SondaggiUtility;
use elitedivision\amos\sondaggi\widgets\icons\WidgetIconSondaggiGeneral;
namespace arter\amos\sondaggi\controllers;
use arter\amos\admin\models\UserProfile;
use arter\amos\attachments\components\AttachmentsList;
use arter\amos\attachments\models\File;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\core\user\User;
use arter\amos\dashboard\controllers\TabDashboardControllerTrait;
use arter\amos\sondaggi\AmosSondaggi;
use arter\amos\sondaggi\models\GeneratoreSondaggio;
use arter\amos\sondaggi\models\search\SondaggiSearch;
use arter\amos\sondaggi\models\Sondaggi;
use arter\amos\sondaggi\models\SondaggiDomande;
use arter\amos\sondaggi\models\SondaggiDomandePagine;
use arter\amos\sondaggi\models\SondaggiRisposte;
use arter\amos\sondaggi\models\SondaggiRisposteSessioni;
use arter\amos\sondaggi\utility\SondaggiUtility;
use arter\amos\sondaggi\widgets\icons\WidgetIconSondaggiGeneral;
use kartik\mpdf\Pdf;
use Yii;
use elitedivision\amos\sondaggi\assets\ModuleRisultatiFrontendAsset;
use arter\amos\sondaggi\assets\ModuleRisultatiFrontendAsset;
use yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
use yii\web\ForbiddenHttpException;
use yii\web\UploadedFile;
use yii\web\Controller;
use elitedivision\amos\admin\utility\UserProfileUtility;
use elitedivision\amos\core\utilities\Email;
use elitedivision\amos\socialauth\controllers\SocialAuthController;
use elitedivision\amos\socialauth\models\SocialAuthUsers;
use arter\amos\admin\utility\UserProfileUtility;
use arter\amos\core\utilities\Email;
use arter\amos\socialauth\controllers\SocialAuthController;
use arter\amos\socialauth\models\SocialAuthUsers;
use yii\helpers\Json;
/**
* Class PubblicazioneController
* PubblicazioneController implements the CRUD actions for Sondaggi model.
*
* @property \elitedivision\amos\sondaggi\models\Sondaggi $model
* @property \elitedivision\amos\sondaggi\models\search\SondaggiSearch $modelSearch
* @property \arter\amos\sondaggi\models\Sondaggi $model
* @property \arter\amos\sondaggi\models\search\SondaggiSearch $modelSearch
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
*/
class FrontendController extends Controller
{
......@@ -374,7 +374,7 @@ class FrontendController extends Controller
$new = false;
if (!empty($model->mail_conf_community_id)) {
$community = \elitedivision\amos\community\models\Community::findOne($model->mail_conf_community_id);
$community = \arter\amos\community\models\Community::findOne($model->mail_conf_community_id);
}
$campiMappati = $this->getCampiMappati($model, $idSessione);
$user = User::find()->andWhere(['email' => $campiMappati['email']])->one();
......@@ -508,7 +508,7 @@ class FrontendController extends Controller
$link = '';
$result = false;
/** @var \elitedivision\amos\emailmanager\AmosEmail $mailModule */
/** @var \arter\amos\emailmanager\AmosEmail $mailModule */
$mailModule = \Yii::$app->getModule("email");
if (isset($mailModule)) {
$from = $model->mail_registrazione_mittente;
......@@ -540,7 +540,7 @@ class FrontendController extends Controller
$appLink = \Yii::$app->params['platform']['backendUrl'].'/';
$link = '';
$result = false;
/** @var \elitedivision\amos\emailmanager\AmosEmail $mailModule */
/** @var \arter\amos\emailmanager\AmosEmail $mailModule */
$mailModule = \Yii::$app->getModule("email");
if (isset($mailModule)) {
$sondaggio = Sondaggi::findOne($sondaggioId);
......@@ -577,7 +577,7 @@ class FrontendController extends Controller
foreach ($domande->asArray()->all() as $k) {
$arrMap[$k['sondaggi_map_id']] = $k['id'];
}
$campi = \elitedivision\amos\sondaggi\models\SondaggiMap::find()->asArray()->all();
$campi = \arter\amos\sondaggi\models\SondaggiMap::find()->asArray()->all();
$campiArr = [];
foreach ($campi as $v) {
$campiArr[$v['id']] = $v['campo'];
......@@ -627,13 +627,13 @@ class FrontendController extends Controller
*/
public function associateLangUser($user_id, $language = 'it-IT')
{
$preference = \elitedivision\amos\translation\models\TranslationUserPreference::find()->andWhere(['user_id' => $user_id]);
$preference = \arter\amos\translation\models\TranslationUserPreference::find()->andWhere(['user_id' => $user_id]);
if ($preference->count()) {
$model = $preference->one();
$model->lang = $language;
$model->save(false);
} else {
$newPreference = new \elitedivision\amos\translation\models\TranslationUserPreference();
$newPreference = new \arter\amos\translation\models\TranslationUserPreference();
$newPreference->user_id = $user_id;
$newPreference->lang = $language;
$newPreference->save(false);
......@@ -651,12 +651,12 @@ class FrontendController extends Controller
if ($community) {
$moduleCommunity = \Yii::$app->getModule('community');
if ($moduleCommunity) {
$count = \elitedivision\amos\community\models\CommunityUserMm::find()->andWhere(['user_id' => $user->id,
$count = \arter\amos\community\models\CommunityUserMm::find()->andWhere(['user_id' => $user->id,
'community_id' => $community->id])->count();
if ($count == 0) {
$moduleCommunity->createCommunityUser($community->id,
\elitedivision\amos\community\models\CommunityUserMm::STATUS_ACTIVE,
\elitedivision\amos\community\models\CommunityUserMm::ROLE_PARTICIPANT, $user->id);
\arter\amos\community\models\CommunityUserMm::STATUS_ACTIVE,
\arter\amos\community\models\CommunityUserMm::ROLE_PARTICIPANT, $user->id);
return true;
}
}
......@@ -762,13 +762,13 @@ class FrontendController extends Controller
*/
public function savePdf($data, $modelSondaggio, $modelSondaggioRisposta, $path = null)
{
$content = $this->renderPartial('@vendor/elitedivision/amos-sondaggi/src/views/sondaggi/_view_pdf',
$content = $this->renderPartial('@vendor/arter/amos-sondaggi/src/views/sondaggi/_view_pdf',
[
'data' => $data,
'sondaggio' => $modelSondaggio,
'rispostaModel' => $modelSondaggioRisposta
]);
// $footer = $this->renderPartial('@vendor/elitedivision/amos-proposte-collaborazione-een/src/views/een-expr-of-interest/_pdf_footer', ['model' => $eenExpr]);
// $footer = $this->renderPartial('@vendor/arter/amos-proposte-collaborazione-een/src/views/een-expr-of-interest/_pdf_footer', ['model' => $eenExpr]);
$pdf = new Pdf([
......
......@@ -4,31 +4,31 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\sondaggi\controllers
* @package arter\amos\sondaggi\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\sondaggi\controllers;
namespace arter\amos\sondaggi\controllers;
use elitedivision\amos\admin\models\UserProfile;
use elitedivision\amos\attachments\components\AttachmentsList;
use elitedivision\amos\attachments\models\File;