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 | |
| $this->render('//site/error', array('message' => 'hata mesajı', 'code' => '123')); |
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 | |
| $newOrder->ip = Yii::app()->request->userHostAddress; |
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 | |
| /** | |
| * Ban/Limit Email Domains for Gravity Form Email Fields | |
| * http://gravitywiz.com/2012/11/11/banlimit-email-domains-for-gravity-form-email-fields/ | |
| */ | |
| class GWEmailDomainControl { | |
| private $_args; | |
| function __construct($args) { |
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 | |
| /* | |
| INSTRUCTIONS: | |
| Use at your own risk. Backup your database before continuing. | |
| 1. Copy code to a file in the root of your website. | |
| 2. Change YOUR_SITE_ROOT to a value that makes sense. | |
| 3. Execute by visiting the page. Verify before/after results. | |
| 4. Change MAKE_CHANGES_TO_SITE to true and execute it again. |
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 | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; //this line only needed for pagination | |
| $args = array( | |
| 'cat' => 7, | |
| 'paged' => $paged //this line only needed for pagination | |
| ); | |
| // The Query | |
| $the_query = new WP_Query( $args ); | |
| // The Loop |
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
| div.post-content { display:none; } a.continue-button { color: white; } |
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
| #symfony aliases | |
| alias sf="php bin/console" | |
| alias sfp="php bin/console --env=prod" | |
| alias sft="php bin/console --env=test" | |
| alias sfcc="php bin/console cache:clear" | |
| alias sfcw="php bin/console cache:warmup" | |
| # symfony router |
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
| // templates/category/index.html.twig | |
| {% extends 'main.html.twig' %} | |
| {% block body %} | |
| <div class="container"> | |
| <div class="row"> | |
| <h1>Yeni Kategori Ekleme</h1> | |
| </div> | |
| <div class="row"> | |
| {{ include('category/_form.html.twig', | |
| { form: form, button_label: 'kaydet', include_back_to_home_link: true, }, |
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
| // src/Controller/BlogController.php | |
| namespace App\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Symfony\Component\Routing\Annotation\Route; | |
| class BlogController extends Controller | |
| { | |
| /** |
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
| ├── bin | |
| ├── config | |
| │ ├── packages | |
| │ └── routes | |
| ├── public | |
| ├── src | |
| │ ├── Controller | |
| │ ├── Entity |