This example will help you create custom Sonata Admin page and also explain how to make a statistics admin.
You can read more here
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| ## | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Stefan Wendler | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
| <?php | |
| #API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = $_GET['id']; | |
| #prep the bundle | |
| $msg = array | |
| ( | |
| 'body' => 'Body Of Notification', |
This example will help you create custom Sonata Admin page and also explain how to make a statistics admin.
You can read more here
| # This is a sample build configuration for PHP. | |
| # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
| # Only use spaces to indent your .yml configuration. | |
| # You can specify a custom docker image from Docker Hub as your build environment. | |
| # run composer check-platform-reqs for a list of required extensions. | |
| image: php:7.2-fpm | |
| pipelines: | |
| default: | |
| # Not needed unless you're doing feature tests. | |
| # - step: |
| <?php | |
| // File path in Symfony project : src/Form/NotesType.php | |
| namespace App\Form; | |
| use App\Form\Type\QuillTextareaType; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; |