November 2009
6 posts
Phing: How to export defined properties to file
I’ve been very annoyed that I have to define properties in 2 different places. Given the following scenario: * config target gets called, does a bunch of property prompts * writeConfig target gets called, writes properties to file You’d have to have a template file with the properties already defined, then you’d have to copy that file to a config file with the filter expand...
Nov 19th
TYPO3: Generate url to page from id
First thing: $url = $GLOBALS[‘TSFE’]->cObj->getTypoLink_URL($pageId); Also: I can’t believe how many fundamental things in TYPO3 are not documented, or on Google. Is no one actually developing on TYPO3 anymore, or are you all just keeping things to yourself?
Nov 19th
Scroll Clock
byteengine: So awesome: http://toki-woki.net/p/scroll-clock/ [via @jasonfried] Posted via email from Schultzie | Comment »
Nov 18th
1 note
Nov 12th
3 notes
DOMElement to html
Here is a quick way to get HTML from a DOMElement in PHP function getHtmlFromDomElement($element) { $doc = new DOMDocument(); foreach($element->childNodes as $child) { $doc->appendChild($doc->importNode($child, true)); } return $doc->saveHTML(); }
Nov 7th
1 note
2 tags
Nov 2nd
1 note