Skip to content

Instantly share code, notes, and snippets.

View linxlad's full-sized avatar

Nathan Daly linxlad

  • Bury St Edmunds, England
View GitHub Profile
<?php // file [project]/Library/View.php
namespace YourNamespace\Library;
class extendedView extends \Phalcon\Mvc\View
{
public function getPartial($path, $params = array())
{
ob_start();
$this->partial($path, $params);
return ob_get_clean();
<?php
class CsvTableLogHandler extends \Phalcon\Mvc\Model
{
private $table;
public function __construct($tableName)
{
$this->table = $tableName;

Keybase proof

I hereby claim:

  • I am linxlad on github.
  • I am linxlad (https://keybase.io/linxlad) on keybase.
  • I have a public key whose fingerprint is E9F9 A9C2 5038 4B35 AB13 CA14 5428 4A4A CBCB 9BDB

To claim this, I am signing this object:

/**
* Load a template from the system
*
* @param string $name The email template to use
* @param array $params Parameters to replace in the message
*
* @return mixed
*/
private function getTemplate($name, $params)
{
/**
* setSaveHandler() - Session Save Handler assignment
*
* @param Zend_Session_SaveHandler_Interface $interface
* @throws Zend_Session_Exception When the session_set_save_handler call fails
* @return void
*/
public static function setSaveHandler(Zend_Session_SaveHandler_Interface $saveHandler)
{
self::$_saveHandler = $saveHandler;
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
; Enable xdebug extension module
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable = 1
xdebug.renite_enable = 1
xdebug.max_nesting_level = 1000
xdebug.profiler_enable_trigger = 1
xdebug.remote_port="9000"
xdebug.profiler_enable=1
xdebug.idekey=PHPSTORM
xdebug.remote_host="127.0.0.1"
protected function configureRoutes(RouteCollection $collection)
{
$collection->add('create', 'create', array(
'_controller' => 'AppBundle:Backend/Resource:createAction',
'_sylius' => array(
'template' => 'AppBundle:Product/Backend/Form:CreateProduct.html.twig',
'redirect' => 'sylius_backend_product_show',
)
)
);
doctrine:
dbal:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
mapping_types:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
entity_managers:
default:
connection: default
auto_mapping: true
dql:
string_functions:
HS_CONCAT_ADDRESS: AppBundle\DQL\HSConcatAddress
mappings: