Laravel 4 Theme
Installation
Add this line to composer.json
require: {
"teepluss/theme": "dev-master"
}
Then run CLI
$ composer update
Autoload service provider.
'providers' => array(
.....
'Teepluss\Theme\ThemeServiceProvider'
)
Class alias
'aliases' => array(
.....
'Theme' => 'Teepluss\Theme\Facades\Theme',
)
Publish theme config using artisan cli.
$ php artisan config:publish teepluss/theme
See more document
Written by Teepluss
Related protips
1 Response
helo tee,
i have tried your theme library to my app.
As shown on your example code, an error occurred when action returning $theme->of()
, but working when returning $theme->render()
.
And since main place is not always named "content", direct injecting content of main place to array $this->region['content']
is not elegant solution i think.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#