Skip to content

Instantly share code, notes, and snippets.

View FlYos's full-sized avatar
🎯
Focusing

Steven FlYos

🎯
Focusing
View GitHub Profile
@FlYos
FlYos / laradock.sh
Last active February 28, 2017 17:49
Shotcut for use laradock
#! /bin/bash
#
# 1 - install the laradock on your machine : https://github.com/laradock/laradock
# 2 - customize your docker-compose.yml depending on your installation option
# 3 - change the path to laradock
# 4 - run ./docker and enjoy
PATH_LARADOCK="./laradock"
function laradock() {
@FlYos
FlYos / --Readme.md
Last active July 22, 2016 13:03
Load Magento CMS page in popin with Ajax request

Description

This module allows you to change the template pages cms backoffice defined by a particular template when we load the page through an ajax request

How to us

Create this directory structure in local pool : Webaki

  • etc -- config.xml
  • Model -- Observer.php
@FlYos
FlYos / 1-Readme.md
Last active April 14, 2023 21:22
Redirection user by roles after login/logout in symfony2

Description of this Gist

This is the how to for redirection implementation by roles after login or logout in Symfony2

Step

  1. Copy AfterLoginRedirection.php and AfterLogoutRedirection.php to your bundle under the "Redirection" directory
  2. Edit your services.yml file in your bundle and copy/paste the content of services.yml
  3. Edit your security.yml file...
  4. ... add success_handler: redirect.after.login in form_login: section
  5. ... add success_handler: redirect.after.logout in logout: section
@FlYos
FlYos / blank_theme.less
Created June 7, 2013 17:58
blank_theme for the jQuery Plugin DropKick in less language (http://jamielottering.github.io/DropKick/)
.dk_MyTheme{
a{
}
/* Container */
.dk_container{
}
/* Toggle */
.dk_toggle{
@FlYos
FlYos / form_horizontal.html.twig
Created May 24, 2013 16:53
Special form theme symfony2 for use horizontal form with twitter bootstrap
{% extends "form_div_layout.html.twig" %}
{% block form_errors %}
{% spaceless %}
{% if errors|length > 0 %}
{% for error in errors %}
<label class="error">{{ error.message }}</label>
{% endfor %}
{% endif %}
{% endspaceless %}