I've collected all the links related to Backbone.js that I find useful. Most of these are well-built projects and epic guides (not ephemeral blog posts.) Please feel free to fork and even contribute.
This file contains hidden or 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 | |
Zend\Loader\AutoloaderFactory::factory(array( | |
'Zend\Loader\ClassMapAutoloader' => array( | |
'path/to/classmap.php', | |
'path/to/classmap2.php' | |
), | |
'Zend\Loader\StandardAutoloader' => array( | |
'namespaces' => array( | |
'ZfPhpcrOdm' => __DIR__ . '/src/ZfPhpcrOdm', | |
'Doctrine\ODM\PHPCR' => __DIR__ . '/library/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR', |
This file contains hidden or 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 | |
$user = new User(); //Could be already given | |
$site = new Site(); //Could be already given | |
$term = new Term(); //Could be already given | |
$userSiteTerm = new UserSiteTerm(); | |
// Following assignments are explicit here, but you should handle bi-directional associations in setters themselves. | |
$userSiteTerm->setUser($user); | |
$user->addUserSiteTerm($userSiteTerm); |
This file contains hidden or 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 | |
namespace My; | |
include __DIR__ . "/../load_zf.php"; | |
class DatabaseAdapter | |
{ | |
protected $dsn; |
This file contains hidden or 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 | |
/** | |
* Simple php cache using var_export generated files | |
* | |
* @author Marco Pivetta <[email protected]> | |
*/ | |
class Ocramius_PhpCache { | |
const DEFAULT_TTL = 3600; |
This file contains hidden or 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 | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Family relationship | |
* | |
* @ORM\Entity | |
* @ORM\Table(name="family") |
This file contains hidden or 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
I feel require separating target components into 4 or 5 sets | |
for "Which component should test?" | |
[a]. ".travis/new-and-upgrading-components" | |
- Stdlib, EventManager, Cache, Http, Loader, Log, Mail, Session, | |
Db , Uri, View | |
Serializer, Markup, | |
Module, Mvc & Docbook | |
[b-1]. ".travis/tested-components" (apply namespace & CS from zf1, not | |
planned updating for zf2) |
This file contains hidden or 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 | |
require_once "../layout/entities/User.php"; | |
require_once "../layout/entities/Broadcast.php"; | |
if (!class_exists("Doctrine\Common\Version", false)) { | |
require_once "doctrine_bootstrap.php"; | |
} |
This file contains hidden or 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 | |
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array( | |
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager) | |
)); |