Skip to content

overall optimizations, add the **Danish Language** and a new SQL script dump

Compare
Choose a tag to compare
@dcblogdev dcblogdev released this 19 May 14:16
· 2162 commits to master since this release

This pull request introduce overall optimizations, add the Danish Language and a new SQL script dump, which contains a consistent database structure, to permit even tests on the (future) ORM's Relations.

Also is introduced a better Languages Menu on the Default Template, which automatically generate the links on base of App configuration and show the Language names in the native way.

To note that is introduced into View::make() the ability to pass the Module name as second parameters. E.g

public function dashboard()
{
    return View::make('Users/Dashboard', 'Users')
        ->shares('title', __d('users', 'Dashboard'));
}

A similar ability is added to Template::make(), permitting pass the custom Template name as second parameters. E.g

public function dashboard()
{
    $user = Auth::user();

    $data = array(
        $message => __('Welcome back, {0}!', $user->username)
    );

    return Template::make('default', 'Admin')
        ->shares('title', __d('users', 'Dashboard'))
        ->nest('content', 'Users/Dashboard', $data);
}

Finally, this pull request move the Facades: Database\Facade, Events\Facade, Validation\Facade to the namespace \Support\Facades, being available now as:

Support\Facades\Database
Support\Facades\Event
Support\Facades\Validator

Add setter for display value.

Now u can use Logger::setDisplay(true); in Config file to show errors on page, not only in logfile