Install build tools:
brew install autoconf automake libtool
Then install PECL:
<Files *.php> | |
Order Deny,Allow | |
Deny from all | |
Allow from 127.0.0.1 | |
</Files> | |
<Files index.php> | |
Order Allow,Deny | |
Allow from all | |
</Files> |
Vue.directive('calendar', { | |
inserted(el, binding) { | |
// :v-calendar="{ format: 'YYYY-MM-DD HH:mm:ss' }" | |
const options = Object.assign({ | |
// Some default options | |
// Use FontAwesome icons | |
icons:{ | |
time: 'fa fa-clock-o', | |
date: 'fa fa-calendar', |
function updateFunction (el, binding) { | |
Vue.nextTick(function () { | |
// :v-select2="{ options... }" | |
let options = binding.value || {}; | |
// set up select2 | |
$(el).select2(Object.assign({}, { | |
// Default options | |
}, options)) | |
.on("select2:select select2:unselect", (e) => { |
Install build tools:
brew install autoconf automake libtool
Then install PECL:
const regex = /^((?<scheme>[^:\/?#]+):)?(\/\/(?<authority>(?<domain>[^\/?#:]*)(:(?<port>[0-9]*))?))?((?<path>[^?#]*)\\?)?((?<query>([^#]*)))?(#(?<fragment>(.*)))?/; | |
'foo://example.com:8042/over/there?name=ferret#nose'.match(regex); | |
/* Result: | |
authority: "example.com:8042" | |
domain: "example.com" | |
fragment: "nose" | |
path: "/over/there" | |
port: "8042" |
class LightDom extends Polymer.Element { | |
_attachDom(dom) { | |
const slots = dom.querySelectorAll('slot[name]'); | |
slots.forEach((slot) => { | |
const name = slot.getAttribute('name'); | |
const tmpl = this.querySelector(`[slot=${name}]`); | |
if (tmpl) { |
<?php | |
/** | |
* @package {ORGANIZATION}.Plugin | |
* @subpackage system.plg_flower | |
* @copyright Copyright (C) 2012 {ORGANIZATION}.com, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later. | |
*/ | |
use Joomla\CMS\Application\CMSApplication; | |
use Joomla\CMS\Factory; |
<?php | |
$filename = 'pdf-download'; | |
$options = new \Dompdf\Options; | |
$options->set('isRemoteEnabled', true); | |
$dompdf = new \Dompdf\Dompdf($options); | |
$dompdf->set_option('defaultFont', 'droidsansfallback'); | |
$dompdf->set_option('isFontSubsettingEnabled', true); |