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
// in one of your bootstrap files... possibly config/bootstrap/media.php | |
use lithium\net\http\Media; | |
Media::type('default', null, array( | |
'view' => 'lithium\template\View', | |
'loader' => 'Mustache', | |
'renderer' => 'Mustache', | |
'paths' => array( | |
'template' => '{:library}/views/{:controller}/{:template}.{:type}', |
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
/** | |
* Function to automate detecting if an open graph page has errors | |
* Requires the dom php extension to be enabled | |
* | |
* @param string $url | |
* @return array with keys 'hasError', 'errorType', and 'errorMessage' | |
*/ | |
function facebookLinterErrors($url) | |
{ | |
$errorType = ""; |
NewerOlder