This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//erzeugen ein mockup | |
var mockFile = { name: "Filename", size: 12345 }; | |
// aufruf des default addedfile event handlers | |
myDropzone.emit("addedfile", mockFile); | |
// zeige das thumbnail an | |
myDropzone.emit("thumbnail", mockFile, "/image/url"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getCanonicalUrl() | |
{ | |
if (($oCategory = $this->getActiveCategory())) { | |
$oUtils = oxRegistry::get("oxUtilsUrl"); | |
if (oxRegistry::getUtils()->seoIsActive()) { | |
$sUrl = $oUtils->prepareCanonicalUrl( | |
$oCategory->getBaseSeoLink($oCategory->getLanguage(), '') | |
); | |
} else { | |
$sUrl = $oUtils->prepareCanonicalUrl( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Im /azure/tpl/widget/promoslider.tpl | |
[{if $sBannerLink }] | |
<a href="[{ $sBannerLink }]"> | |
[{/if}] | |
durch | |
[{if $sBannerLink }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new \Zend\Http\Client(); | |
$client->setUri('http://example.com/'); | |
$client->setAuth($user, $password); | |
$request = $client->request(Zend\Http\Client::POST); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new Zend_Http_Client(); | |
$client->setUri('http://example.com/'); | |
$client->setAuth($user, $password); | |
$request = $client->request(Zend_Http_Client::POST); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var httpProxy = require('http-proxy') | |
var proxy = httpProxy.createProxy(); | |
var options = { | |
'pad.fwallenborn.de': 'http://localhost:9001', | |
'spielfeld24.de': 'http://localhost::8000' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DATE_FORMAT(my_date_field, GET_FORMAT(DATE,'EUR')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file("http://weather.yahooapis.com/forecastrss?w=20067098&u=c"); | |
$data = $xml->channel->item->xpath('yweather:condition'); | |
$weatherToday = $data[0]->attributes(); | |
var_dump($weatherToday); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = array('key1' => 'gesetzt', 'key2' => null); | |
isset($a['key1']); // true | |
array_key_exists('key1', $a); // true | |
isset($a['key2']); // false | |
array_key_exists('key2', $a); // true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//module.php | |
public function getControllerPluginConfig() | |
{ | |
return array( | |
'invokables' => array( | |
'zfcUserAuthentication' => 'ZfcUser\Controller\Plugin\ZfcUserAuthentication' | |
) |
NewerOlder