Skip to content

Instantly share code, notes, and snippets.

View yahyaerturan's full-sized avatar

Yahya Erturan yahyaerturan

View GitHub Profile
@yahyaerturan
yahyaerturan / vstart.php
Created April 29, 2017 11:01
functions
function get_page_data($lang,$id_page,$result_type = 'row')
function get_page($arguments=array(),$lang='tr',$id_page=0,$media_type='ibs',$media_limit=0)
function get_page_media($arguments=array(),$id_page='1',$media_type='isl',$limit=0)
function get_article_media($arguments=array(),$id_article='',$media_type='isl',$limit=0)
function get_sub_pages($arguments=array(),$lang='tr',$id_page='0',$media_type='',$limit = '0',$result_type='result')
function get_navigation($arguments=array(),$lang='tr',$id_menu=1,$type='list',$online_only=true,$max_depth='0',$sub_nav='0',$ul_class='',$active_class='', $active_segment=2,$use_span=false)
function get_articles($arguments=array(),$lang='tr',$id_page='',$id_article='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result')
function get_articles_by_category($arguments=array(),$lang='tr',$id_page = 0, $id_category='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result')
function get
@yahyaerturan
yahyaerturan / .history
Last active April 5, 2021 05:58
composer.lock file - for - security.firewall.map has a dependency on a non-existent service security.request_matcher.zfHj2lW
1. composer require server --dev
symfony/process (v4.1.6)
symfony/web-server-bundle (v4.1.6)
Symfony operations: 1 recipe (418553c035c1340534830260d374a8d2)
- Configuring symfony/web-server-bundle (>=3.3):
2. composer require make --dev
Using version ^1.8 for symfony/maker-bundle
<?php
namespace App\Helper;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Translation\TranslatorInterface;
class XhrResponse
<?php
namespace App\Form;
use App\Entity\Business;
use App\Entity\User;
use Doctrine\ORM\EntityRepository;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\BirthdayType;
@yahyaerturan
yahyaerturan / _dropzone.php
Created November 28, 2018 16:23
_dropzone.php
<div class="files" id="previews">
<div id="template" class="vayes-file-row">
<div class="col-xs-6 col-sm-1 col-md-1">
<div class="vayes-vac-wrapper">
<div class="vayes-vac-element">
<div class="preview">
<img class="img-responsive img-circle" data-dz-thumbnail />
</div>
</div>
</div>
@yahyaerturan
yahyaerturan / TestController.php
Created January 2, 2019 16:52
Symfony Doğru Yazdırtıyor :)
<?php
/*
* This file is part of the VayesIMS package.
*
* (c) Yahya ERTURAN <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@yahyaerturan
yahyaerturan / VayesRequest.js
Last active March 14, 2019 16:42
VayesRequest.js
'use strict';
class VayesRequest {
constructor(uri, data) {
this.debug(VayesRequest.staticStrings.init);
this.supports();
this.xhrRequest = null;
this.contentType = false;
this.post = null;
@yahyaerturan
yahyaerturan / matter-components.scss
Last active April 5, 2019 07:56
Preliminary Effort on Matter Scss
:root {
--matter-font-family: "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system;
--matter-onprimary: rgba(255, 255, 255, 1.0);
--matter-surface: rgba(255, 255, 255, 1.0);
--matter-surface--34: rgba(255, 255, 255, 0.34);
--matter-onsurface: rgba(0, 0, 0, 1.0);
--matter-onsurface--04: rgba(0, 0, 0, 0.04);
--matter-onsurface--08: rgba(0, 0, 0, 0.08);
--matter-onsurface--12: rgba(0, 0, 0, 0.12);
--matter-onsurface--24: rgba(0, 0, 0, 0.24);
<?php
namespace App\EventSubscriber;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Routing\RouterInterface;
use Twig\Environment;
class BaseEventSubscriber
{
@yahyaerturan
yahyaerturan / grunt.js
Created January 26, 2021 12:39
grunt.js
const nodeSass = require('node-sass');
module.exports = function(grunt) {
const webPageScripts = {
'./assets_web/build/js/web.min.js': './assets_web/js/web.js'
};
const appScriptsRunBabel = {