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\Mvc\MvcEvent; | |
use Zend\Http\PhpEnvironment\Response; | |
class Module extends Response { | |
//BootstrapListenerInterface | |
public function onBootstrap(MvcEvent $event) { |
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
resources.frontController.plugins.specialRouting.class = "Radd_Controller_Plugin_Acl" | |
resources.frontController.plugins.specialRouting.stackindex = 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
Useful Aliases | |
lastcommit | |
shows you the last commit made on the current branch | |
git lastcommit | |
git config --global alias.lastcommit "log --pretty=oneline -n 1 --no-merges" | |
merge-branch | |
Checks out branch, updates that branch. Then checks back out to last branch and merges specified branch in | |
git merge-branch <branchname> |
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 | |
// your module.config.php | |
return array( | |
'doctrine' => array( | |
'connection' => array( | |
// Configuration for service `doctrine.connection.orm_default` service | |
'orm_default' => array( | |
'params' => array( | |
'user' => 'YOUR_username', | |
'password' => 'YOUR_password', |
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 | |
$iterator = new RecursiveIteratorIterator($nav, RecursiveIteratorIterator::CHILD_FIRST); | |
$activePages = array(); | |
foreach ($iterator as $page) { | |
if ($page->isActive(true)) { | |
$activePages[] = $page; | |
} | |
} |
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
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://packages.zendframework.com/" | |
} | |
], |
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( | |
'doctrine' => array( | |
'driver' => array( | |
'zfcuser_entity' => array( | |
'paths' => 'location of your xml files thing' | |
) | |
) | |
), | |
); |
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 | |
use Zend\Stdlib\ArrayUtils; | |
//..... | |
public function getConfig() | |
{ | |
$config = array(); | |
$folder = realpath(__DIR__ . '/config'); |
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 Zend\Mvc { | |
class MvcEvent { | |
public function getRequest() {} | |
public function getResponse() {} | |
public function getApplication() {} | |
} | |
} |
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 shortUrl = window.location.href.replace('@itm/./@gi','itm/'); | |
var item = jQuery('<tr><td class="vi-Vr-itemattrTh"><div class="itm_num_lbl">Shorter URL</div></td><td></td><td width="100.0%"> </td></tr>'); | |
item.find('td').eq(1).append($('<a>', { href: shortUrl, 'text': shortUrl })); | |
item.appendTo('#itemAttrCntr table'); |
OlderNewer