Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
$audience = new Zend_Form_Element_MultiCheckbox('audience', array( | |
'label' => 'Target Audience', | |
'required' => true, | |
'multiOptions' => array( | |
'students' => 'Students', | |
'faculty' => 'Faculty', | |
'staff' => 'Staff', | |
'stustaf' => 'Student Employees', | |
'retiree' => 'Emeritus/Retiree'), | |
'validators' => array( |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
<?php | |
// Simply place the following two functions in _support/Helper/Acceptance.php | |
// Then you can call $I->verifyRedirect(...) inside your tests | |
namespace Helper; | |
class Acceptance extends \Codeception\Module | |
{ | |
/** | |
* Ensure that a particular URL does NOT contain a 301/302 |