fork download
  1. <?php
  2. $posts = Morfy::factory()->getPages(
  3. CONTENT_PATH . '/blog/',
  4. 'title',
  5. 'ASC',
  6. array('404','index'),
  7. 4
  8. );
  9. foreach($posts as $post) {
  10. echo '<h4><a href="'.$config['site_url'].'/blog/'.$post['slug'].'">'.$post['title'].'</a></h4>';
  11. }
  12.  
  13.  
  14. echo '<pre>';
  15. echo print_r($posts);
  16. echo '</pre>';
  17. ?>
Runtime error #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Class 'Morfy' not found in /home/4fFtAf/prog.php on line 2