From e40ee689a039120b92cf3af32003a122a961359f Mon Sep 17 00:00:00 2001 From: Marcus Ekwall Date: Tue, 31 May 2011 15:08:03 +0200 Subject: [PATCH] Updated example to use Http/Request and Http/Response --- examples/blog/app/Views/Article.php | 11 ++++++++--- examples/blog/app/_init.php | 2 +- examples/blog/app/config.yaml | 8 +++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/examples/blog/app/Views/Article.php b/examples/blog/app/Views/Article.php index 3f8988a..f635b76 100644 --- a/examples/blog/app/Views/Article.php +++ b/examples/blog/app/Views/Article.php @@ -1,15 +1,20 @@ ".var_export($article, true).""; + + $response = new Http\Response; + $response->setContent("
".var_export($article, true)."
"); + + return $response; } } \ No newline at end of file diff --git a/examples/blog/app/_init.php b/examples/blog/app/_init.php index 780b7de..e7e5a81 100644 --- a/examples/blog/app/_init.php +++ b/examples/blog/app/_init.php @@ -15,7 +15,7 @@ // Let's do some magic chaining $app ->config - ->setGroup('production') + ->setGroup('stage') ->app() // Return to app instance // Add current namespace to loader ->loader diff --git a/examples/blog/app/config.yaml b/examples/blog/app/config.yaml index 318dc81..6f1c2ad 100755 --- a/examples/blog/app/config.yaml +++ b/examples/blog/app/config.yaml @@ -5,9 +5,11 @@ default: timezone: Europe/Stockholm app_uuid: 1d2cc80e-62e3-4ab2-bd52-05194baa3f5d charset: sv-se - locale: - all: sv_SE.UTF-8 - textdomain: Milk + languages: + sv: + locale: + all: sv_SE.UTF-8 + textdomain: Milk cookie: domain: .maklarpaket.se session: