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| private function sendEmail() { | |
| $this->load->library('email'); | |
| $this->config->load('email'); | |
| $tos = explode(',', $this->input->post('emaily')); | |
| // print_r($tos); | |
| if (empty($tos)) { |
| // 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()); | |
| } | |
| }); |
| <link rel="import" href="../paper-button/paper-button.html"> | |
| <link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
| <link rel="import" href="../chart-js/chart-js.html"> | |
| <polymer-element name="my-element"> |
| // ----------------------------------------------------------------------------- | |
| // @author standa | 2014-04-30 | Swiss Rechnung (BESR) | |
| // not guaranteed 100% but seems to work for us | |
| public function calculateCheckDigit($number) | |
| { | |
| $matrix = array( | |
| 0 => array(0,9,4,6,8,2,7,1,3,5), | |
| 1 => array(9,4,6,8,2,7,1,3,5,0), |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /home/website/web; | |
| rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
| try_files $uri @rewriteapp; | |
| location @rewriteapp { |
| #!/bin/bash | |
| tail -f /var/log/nginx/error.log -f /www/var/log/exception.log -f /www/var/log/system.log |
| #!/usr/bin/env php | |
| <?php | |
| // Upload as .git/hooks/post-commit | |
| mail( | |
| 'standa@example.com',. | |
| implode(' ', array('[GIT]', trim(`hostname`), ' ', trim(`git log -n 1 --oneline`))), | |
| `git log -n 1`, | |
| implode(' ', array('From:', trim(`hostname`), 'git <standa@example.com>')) |
| <?php | |
| ini_set('session.cookie_lifetime', 86400); | |
| ini_set('session.gc_maxlifetime', 86400); | |
| session_set_cookie_params(86400, dirname($_SERVER['REQUEST_URI'])); | |
| session_start(); | |
| require 'vendor/autoload.php'; |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; |