Skip to content

Instantly share code, notes, and snippets.

@alganet
Created August 12, 2011 20:31
Show Gist options
  • Select an option

  • Save alganet/1142928 to your computer and use it in GitHub Desktop.

Select an option

Save alganet/1142928 to your computer and use it in GitHub Desktop.
Respect\Framework concepts
<?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;
@diegoholiveira
Copy link

Me lembrou muito a library notorm. Conheçe?

@alganet
Copy link
Author

alganet commented Aug 12, 2011

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