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 | |
/** | |
* validateModels | |
* @param array $models | |
* @return boolean $valid | |
*/ | |
function validateModels(array $models) | |
{ | |
$valid = 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
from fabric.api import local | |
def create_module(name): | |
local('mkdir %s' % name) | |
local('mkdir %s' % name + '/config') | |
#src | |
local('mkdir %s' % name + '/src') | |
local('mkdir %s' % name + '/src/%s' % name) | |
local('mkdir %s' % name + '/src/%s' % name + '/Controller') |
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' | |
) |
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 | |
$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
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
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
<?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
Im /azure/tpl/widget/promoslider.tpl | |
[{if $sBannerLink }] | |
<a href="[{ $sBannerLink }]"> | |
[{/if}] | |
durch | |
[{if $sBannerLink }] |
OlderNewer