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
<?php | |
/** | |
* Example Zend Framework bootstrap with lazyloading of resources | |
* | |
* @author André Roaldseth <andrer@vg.no> | |
*/ | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
/** | |
* Creates a lazyloaded Memcached instance | |
* |
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
<style type="text/css"> | |
#warningBox div { display: none; } | |
</style> | |
<div id="warningBox"> | |
<div class="opera"> | |
<h1>Du bruker en eldre versjon av nettleseren Opera</h1> | |
<p>For å få en best mulig opplevelse av våre nettsider, anbefaler vi at du henter <a href="http://www.opera.no/browser/">nyeste versjon av Opera</a>. Bruker du en jobb-PC bør du kontakte IT-ansvarlig.</p> |
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
<?php | |
class ClassWithError { | |
public function multiplyByTen($value = 0) { | |
if (!$value) { | |
trigger_error('Value is missing', E_USER_NOTICE()); | |
return false; | |
} | |
return $value * 10; | |
} |
NewerOlder