Skip to content

Instantly share code, notes, and snippets.

View Remo's full-sized avatar

Remo Laubacher Remo

View GitHub Profile
@Remo
Remo / controller.php
Created October 2, 2015 18:19
package controller - variable injection
<?php
namespace Concrete\Package\Test;
use Package,
Page,
Events,
View,
Symfony\Component\EventDispatcher\GenericEvent;
class Controller extends Package
@Remo
Remo / gist:48233a223775b759b8e8
Created March 2, 2015 14:16
it's not working, why?
<?php
$a = 1 / 0;
@Remo
Remo / punic_demo.php
Created September 1, 2014 13:20
Punic Demo
<?php
use \Punic\Unit;
include 'vendor/autoload.php';
// This will output `2 Millisekunden`
echo Unit::format(2, 'millisecond', 'long', 'de');
// This will output `2 ms`
echo Unit::format(2, 'millisecond', 'short', 'en');
@Remo
Remo / composer.json
Created September 1, 2014 13:11
composer.json
"require": {
"punic/punic": "1.*"
}
@Remo
Remo / bulk_seo_tool.php
Created July 29, 2014 18:23
concrete5 - change sort order in seo bulk tool
<?php
/* /controllers/dashboard/system/seo/bulk_seo_tool.php */
defined('C5_EXECUTE') or die('Access Denied.');
class DashboardSystemSeoBulkSeoToolController extends Concrete5_Controller_Dashboard_System_Seo_BulkSeoTool {
public function getRequestedSearchResults() {
$searchResult = parent::getRequestedSearchResults();
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<div id="rssSummaryList<?php echo intval($bID)?>" class="rssSummaryList">
<?php if( strlen($title)>0 ){ ?>
<div class="rssSummaryListTitle" style="margin-bottom:8px"><?php echo $title?></div>
<?php } ?>
<?php
$rssObj=$controller;