Esempio n. 1
0
 public function executeLastDelicious(sfWebRequest $request)
 {
     //TODO: Find an another solution to use external lib
     require_once dirname(__FILE__) . '/../../../../../lib/vendor/delicious/library/php-delicious.inc.php';
     $oPhpDelicious = new PhpDelicious('zadkiel87', 'leobanjo1');
     $this->recentPosts = $oPhpDelicious->GetRecentPosts();
     var_dump($this->recentPosts);
     echo $oPhpDelicious->LastErrorString();
 }
Esempio n. 2
0
    foreach ($aPosts as $aPost) {
        ?>
            <tr>
               <td><a href="<?php 
        echo $aPost['url'];
        ?>
"><?php 
        echo $aPost['desc'];
        ?>
</a></td>
               <td><?php 
        echo $aPost['notes'];
        ?>
</td>
               <td><?php 
        echo $aPost['updated'];
        ?>
</td>
            </tr>
         <?php 
    }
    ?>
      </table>
   <?php 
} else {
    echo $oDelicious->LastErrorString();
}
?>
</body>

</html>