PHP code example of hoaaah / start-your-up
1. Go to this page and download the library: Download hoaaah/start-your-up 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/ */
hoaaah / start-your-up example snippets
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=your_db_name',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
],
];
return [
'adminEmail' => '[email protected] ',
'supportEmail' => '[email protected] ',
'user.passwordResetTokenExpire' => 3600,
'uploadPath' => \Yii::getAlias('@common').'\web\\',
'uploadUrl' => 'change-your-upload-url-here',
// it recomended to create a subdomain to access static content or dynamic user generated content.
'googleApiKey' => 'your-google-api-here',
'initialMapLatitude' => 'your-initial-map-latitude-here',
'initialMapLongitude' => 'your-initial-map-longitude-here',
'initialMapZoom' => 'your-initial-map-zoom-here',
];
$image = hoaaah\agency\AgencyAsset::register($this);
<img src=<?= $agency->baseUrl.'/img/portfolio/startup-framework.png'
bash
php yii migrate