Sometimes, simply running php composer install
or php composer update
will throw an error at building bootstrap.php time. To resolve this issue, proceed like this:
First, run:
php composer update --no-scripts
// works on jQuery 1.9+ | |
$(document).on('change', '.soubor', function () { | |
if ($(this).val() != '') { | |
var id = $('.soubor').length + 1; | |
$('<input>', {type: 'file', name: 'soubor'+id, id: 'soubor'+id, 'class': 'soubor form-control'}) | |
.insertAfter($('.soubor').last()); | |
} | |
}); |
<?php | |
/** | |
* download latest posts from the Wordpress blog | |
* - will only return 3 latest posts with a $tag homepage by default | |
* | |
* you will need PHP Curl extension - I'm too lazy to use native php sockets :) | |
* and also xmlrpc so please: | |
* | |
* apt-get install php5-curl php5-xmlrpc |
/** | |
* Get Amazon ASIN by SKU | |
* | |
* @param string $sku | |
* @return string Amazon ASIN | |
* @link http://docs.developer.amazonservices.com/en_UK/products/Products_GetMatchingProductForId.html | |
*/ | |
public function getAsinBySku($sku) | |
{ | |
// append the real SKU ending |
private function sendEmail() { | |
$this->load->library('email'); | |
$this->config->load('email'); | |
$tos = explode(',', $this->input->post('emaily')); | |
// print_r($tos); | |
if (empty($tos)) { |
<?php if (!defined('BASEPATH')) die(); | |
/** | |
* This is a complete rewrite to use the Mandrill API instead of the | |
* weird thing that OpenCart people patched up in here. | |
* | |
* Inspired by Mindrill | |
* @link https://github.com/darrenscerri/Mindrill | |
* | |
* @author standa |
<?php | |
// @author standa | 2013-09-28 | get the return terms | |
// 1. load the model and get the page id | |
$this->load->model('catalog/information'); | |
// here the page_id is the setting from the Admin / Settings / Default Shop / Options | |
$page_id = $this->config->get('config_return_id') | |
// 2. get the the row from the information database |