DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

CakePHP Beginner Example

05.23.2011
| 4679 views |
  • submit to reddit
        // CakePHP
App::import('Vendor', 'SnipplrCore', array('file' => 'snipplr'.DS.'snipplr.core.php'));
$SnipplrCore = new SnipplrCore();
$snippet = $SnipplrCore->get('18153');
$snippets = $SnipplrCore->getAll();
$languages = $SnipplrCore->getAllLanguages();