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
| After the lamp server installation you will need write permissions to the /var/www directory. Follow these steps to configure permissions. | |
| Add your user to the www-data group | |
| sudo usermod -a -G www-data <your user name> | |
| now add the /var/www folder to the www-data group | |
| sudo chgrp -R www-data /var/www |
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
| https://drupal.org/node/104319 | |
| Theming blocks individually, by region, or by module | |
| Last updated May 22, 2013. Created by joachim on December 20, 2006. | |
| Edited by batigolix, Delphine Lepers, jamix, chrisjlee. Log in to edit this page. | |
| Designers can create multiple tpl.php files for blocks based on the specific block, the module that created the block, or the region that the block appears in. | |
| Template suggestions |
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
| defaults write com.apple.finder AppleShowAllFiles -bool YES |
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
| drush vset cache 0 | |
| drush vset preprocess_css 0 | |
| drush vset preprocess_js 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
| <?php | |
| $buyer_email = ""; | |
| //$buyer_email = ""; | |
| $supplier_email = ""; | |
| $supplier_email2 = ''; | |
| $lastInsertedID = 'mailtest from bewan with PDF'; | |
| $orderArray['order_date'] = '2014'; | |
| $pdfdoc = file_get_contents('yourfilename.pdf'); |
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
| /*reds*/ | |
| .IndianRed { background: #CD5C5C;} | |
| .LightCoral { background: #F08080;} | |
| .Salmon { background: #FA8072;} | |
| .DarkSalmon { background: #E9967A;} | |
| .LightSalmon { background: #FFA07A;} | |
| .Crimson { background: #DC143C;} | |
| .Red { background: #FF0000;} |
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 | |
| class TestController extends Zend_Controller_Action { | |
| /** | |
| * FlashMessenger | |
| * | |
| * @var Zend_Controller_Action_Helper_FlashMessenger | |
| */ | |
| protected $_flashMessenger = null; | |
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 | |
| class Controller_Base_Crud extends Zend_Controller_Action { | |
| /** | |
| * An instance of the corresponding Service layer | |
| * @var object | |
| */ | |
| protected $_service = null; |
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 | |
| class Helper { | |
| /** | |
| * http://www.pfz.nl/wiki/invoer-validatie/#Geldig_BTW.2FVAT_nummer | |
| * | |
| * Look if the given input could be a legal VAT-number. | |
| * Accepts input with or without '.' between the numbers, must contain a County-code | |
| * |
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 | |
| function dayToNumber($day) { | |
| $array = array('Mon' => 1, 'Tue' => 2, 'Wed' => 3, 'Thu' => 4, 'Fri' => 5, 'Sat' => 6, 'Sun' => 7); | |
| $result = $array[$day]; | |
| return $result; | |
| } | |
| function numberToDay($number) { | |
| $array = array(1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat', 7 => 'Sun'); |