This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.9' | |
| services: | |
| db: | |
| image: mysql:latest | |
| volumes: | |
| # Dizem que usar volume é melhor. Vou ter que ver isso!! | |
| - ./db-backups:/var/mysql/backups:delegated | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: drupaldb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- gmaps input --> | |
| <?php | |
| function isJson($string) { | |
| $decoded = json_decode($string); | |
| if ( !is_object($decoded) && !is_array($decoded) ) { | |
| return false; | |
| } | |
| return (json_last_error() == JSON_ERROR_NONE); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace app\models; | |
| use Yii; | |
| use yii\web\UploadedFile; | |
| /** | |
| * This is the model class for table "empresas". | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set directory index | |
| DirectoryIndex index.php | |
| # Mod_Autoindex | |
| <IfModule mod_autoindex.c> | |
| Options -Indexes | |
| </IfModule> | |
| # Mod_Rewrite | |
| <IfModule mod_rewrite.c> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Yii::setPathOfAlias('vendor', dirname(__FILE__).'/../vendor'); | |
| ..... | |
| 'aliases' => array( | |
| // bootstrap (yiistrap) | |
| 'bootstrap' => 'vendor.crisu83.yiistrap',//Verificado não alterar no momento. | |
| 'auth' => 'vendor.crisu83.yii-auth', //change this if necessary | |
| ), | |
| ...... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class EventosController extends Controller | |
| { | |
| /** | |
| * @var string the default layout for the views. Defaults to '//layouts/column2', meaning | |
| * using two-column layout. See 'protected/views/layouts/column2.php'. | |
| */ | |
| public function actions() { | |
| return array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class OficinasController extends Controller | |
| { | |
| public function filters() | |
| { | |
| return array( | |
| 'rights', // perform access control for CRUD operations | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class OficinasController extends Controller | |
| { | |
| public function filters() | |
| { | |
| return array( | |
| 'rights', // perform access control for CRUD operations | |
| ); | |
| } |