Skip to content

Instantly share code, notes, and snippets.

View manuman94's full-sized avatar
😍
Codingggggg

manuman94

😍
Codingggggg
View GitHub Profile
@manuman94
manuman94 / prestashop-lib.php
Created February 22, 2019 10:47 — forked from matchaxnb/prestashop-lib.php
Library to manipulate Prestashop from scripts
<?php
/**
prestashop-lib — © 2015 Chloé Tigre Rouge <[email protected]>
This is licensed under the same terms as Prestashop.
PrestaShop library to create products, categories and all sorts of things
programmatically by passing arrays around
It needs a bootstrapped PrestaShop framework (you can get one by defining
_PS_ROOT_DIR_ and by a
require_once(_PS_ROOT_DIR_.'config/config.inc.php');
@manuman94
manuman94 / gist:6da06a843f5aa5107f5470ba6da05578
Created January 8, 2018 07:51
Codeigniter, PHP: Generate date of birth drop downs with sessions in case of errors
// THIS FILE IS A CUSTOM CODEIGNITER CLASS FOR GENERATING DROPDOWNS INCLUDED FROM THE LIBRARIES FOLDER
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dob_dropdown{
public function buildDayDropdown($name='',$id='',$value='')
{
$days='';