PHP code example of open20 / amos-partnership-profiles
1. Go to this page and download the library: Download open20/amos-partnership-profiles library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
open20 / amos-partnership-profiles example snippets
'modules' => [
'partnershipprofiles' => [
'class' => 'open20\amos\partnershipprofiles\Module'
],
],
return [
'@vendor/open20/amos-partnership-profiles/src/migrations',
];
if (isset($modules['tag'])) {
...
if (isset($modules['partnershipprofiles'])) {
$modules['tag']['modelsEnabled'][] = 'open20\amos\partnershipprofiles\models\PartnershipProfiles';
$modules['tag']['modelsEnabled'][] = 'open20\amos\partnershipprofiles\models\ExpressionsOfInterest';
}
...
}
'modules' => [
'report' => [
'class' => 'open20\amos\report\AmosReport',
'modelsEnabled' => [
'open20\amos\partnershipprofiles\models\PartnershipProfiles',
]
],
],
'fieldsConfigurations' => [
' 'expected_contribution',
'partnership_profile_date',
'expiration_in_months',
],
'tabs' => [
'tab-more-information' => false,
'tab-attachments' => true
],
'fields' => [
//tab general
'title' => true,
'short_description' => false,
'extended_description' => true,
'advantages_innovative_aspects' => false,
'expected_contribution' => true,
'partnership_profile_date' => true,
'expiration_in_months' => false,
'attrPartnershipProfilesTypesMm' => false,
'other_prospect_desired_collab' => false,
'contact_person' => true,
],
]
'fieldsCommunityConfigurations' => [
'communityId-5' => [
' 'partnership_profile_date',
'expiration_in_months',
],
'tabs' => [
'tab-more-information' => false,
'tab-attachments' => true
],
'fields' => [
//tab general
'title' => true,
'short_description' => false,
'extended_description' => true,
'advantages_innovative_aspects' => false,
'expected_contribution' => true,
'partnership_profile_date' => true,
'expiration_in_months' => false,
'attrPartnershipProfilesTypesMm' => false,
'other_prospect_desired_collab' => false,
'contact_person' => true,
],
]
],
bash
php yii migrate/up --migrationPath=@vendor/open20/amos-partnership-profiles/src/migrations