added section class. refactored session for ioc usage. improved controller. added yielding and sections to blade. general blade improvements.

This commit is contained in:
Taylor Otwell
2011-11-08 20:08:20 -06:00
parent d05f4fa0db
commit a1e82d2166
17 changed files with 440 additions and 100 deletions

View File

@@ -52,9 +52,9 @@ class View {
//
// This makes the implementation of the Post/Redirect/Get pattern very
// convenient since each view can assume it has a message container.
if (Config::$items['session']['driver'] !== '' and Session::started())
if (Config::$items['session']['driver'] !== '' and IoC::core('session')->started())
{
$this->data['errors'] = Session::get('errors', function()
$this->data['errors'] = IoC::core('session')->get('errors', function()
{
return new Messages;
});