Created
August 12, 2011 20:31
-
-
Save alganet/1142928 to your computer and use it in GitHub Desktop.
Respect\Framework concepts
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 Respect\Framework\RestfulRelationalApplication as Application; | |
| $app = new Application; | |
| $app->articles->article(); | |
| $app->articles->article()->title; | |
| $app->articles->article()->text; | |
| $app->articles->article()->comments; | |
| $app->articles->article()->comments->comment(); | |
| $app->articles->article()->comments->comment()->author; | |
| $app->articles->article()->comments->comment()->text; |
Author
Conheço, mas essa na verdade é a API para definir modelos de dados, não acessar =) O cara vai digitar isso aí e a camada de rotas via Respect\Rest e tabelas via Respect\Relational será construída
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Me lembrou muito a library notorm. Conheçe?