View controller.php
This file contains 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 Concrete\Package\Test; | |
use Package, | |
Page, | |
Events, | |
View, | |
Symfony\Component\EventDispatcher\GenericEvent; | |
class Controller extends Package |
View gist:48233a223775b759b8e8
This file contains 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 = 1 / 0; |
View punic_demo.php
This file contains 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 | |
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'); |
View composer.json
This file contains 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": { | |
"punic/punic": "1.*" | |
} |
View bulk_seo_tool.php
This file contains 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 | |
/* /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(); |
View gist:ae843df476871891cf0e
This file contains 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 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; |