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->setFactory('AggregateResolver', function($im, $name) { | |
$map = $im->get('TemplateMapResolver'); | |
$stack = $im->get('TemplatePathStack'); | |
$aggregate = new AggregateResolver(); | |
$aggregate->attach($map); | |
$aggregate->attach($stack); | |
return $aggregate; | |
}); |
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
RROR | |
Warning: PDOStatement::bindParam(): SQLSTATE[HY093]: | |
Invalid parameter number: :cod_strum in /var/www/scelta_ins_conf.php on line 22 | |
Warning: PDOStatement::bindParam(): SQLSTATE[HY093]: | |
Invalid parameter number: :data_inc in /var/www/scelta_ins_conf.php on line 24 | |
Warning: PDOStatement::bindParam(): SQLSTATE[HY093]: | |
Invalid parameter number: :rilavato in /var/www/scelta_ins_conf.php on line 28 Warning: PDOStatement::bindParam(): SQLSTATE[HY093]: | |
Invalid parameter number: :inconveniente in /var/www/scelta_ins_conf.php on line 32 | |
Warning: PDOStatement::bindParam(): SQLSTATE[HY093]: | |
Invalid parameter number: :a_inc in /var/www/scelta_ins_conf.php on line 36 |
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 | |
return array ( | |
'Zend\\EventManager\\EventManager' => | |
array ( | |
'instantiator' => | |
array ( | |
'name' => NULL, | |
'parameters' => | |
array ( | |
0 => |
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 | |
namespace Application; | |
use Zend\Di\Di; | |
class Context extends Di | |
{ | |
public function newInstance($name, array $params = array(), $isShared = 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 | |
namespace Application\Dic; | |
use Zend\Di\Di; | |
class Compiled extends Di | |
{ | |
public function newInstance($name, array $params = array(), $isShared = 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 | |
if (isset($_POST['strumento'][$cod_strum])) { | |
$element = new Zend_Form_Element_File('foo'); | |
$element->setLabel('Upload an image:') | |
->setDestination('/home/dbstrumenti'); | |
// ensure only 1 file | |
$element->addValidator('Count', false, 1); | |
// limit to 100K | |
$element->addValidator('Size', false, 102400); | |
// only JPEG, PNG, and GIFs |
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 | |
namespace Comcom\Tools\Console\Command; | |
use Symfony\Component\Console\Command\Command, | |
Symfony\Component\Console\Input\InputInterface, | |
Symfony\Component\Console\Output\OutputInterface, | |
Symfony\Component\Console\Input\InputArgument, | |
Doctrine\ORM\EntityManager, | |
InvalidArgumentException, | |
UnexpectedValueException, |
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
{ | |
"require": { | |
"doctrine/DoctrineORMModule": "dev-master" | |
} | |
} |
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 | |
namespace Comcom\Filter; | |
use UnexpectedValueException; | |
/** | |
* Converts an input CSV line to an array | |
* @author Marco Pivetta <[email protected]> | |
*/ | |
class CsvToArray implements \Zend_Filter_Interface { |
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 | |
$someArray = array(); | |
$result= $query->fetch(PDO::FETCH_ASSOC); | |
$someArray['id'] = $result['id']; | |
$result['id']= $query->fetch(PDO::FETCH_ASSOC); | |
$someVar = $result['id']; | |
var_dump($someArray == $someVar); // false | |
var_dump($someArray); // array('id' => 123); |