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 | |
/** | |
* Send PHP debug data to JS console.log | |
* Example: | |
* <code> | |
* phog(compact('table', 'id'), __FILE__); | |
* </code> | |
* | |
* Which outputs the following in the console: |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; | |
color: #333; | |
} |
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 | |
public function songs($slug) { | |
$d = new FilterDirectory('songs'); | |
$d -> SimpleQuery -> not_equal('artists.name', 'Rush') -> not_equal('artists.name', 'Paul Simon') -> descending('songs.title'); | |
$d -> setResultsPerPage(5); | |
$d -> setHeader('<table id="songs" class="special">'); |