Bonfire
Bonfire copied to clipboard
add modules to a new context
i followed the blog tutorial of Bonfire, i wanted to add the blog module to a new context called _News_ i followed the instructions of creating a new context :
- adding the context
- localize the context name
config/application.php
$config['contexts'] = array('content','news','reports','settings','developer');
language/english/application_lang.php
$lang['bf_context_news'] = 'News';
The Problem
when i type the url :
.../index.php/admin/news/blog/
it redirects me to
.../index.php/admin/content/
Did you set a route for the context in /application/config/routes.php
?
For example, in the existing contexts section:
// Contexts
Route::prefix(SITE_AREA, function(){
Route::context('content', array('home' => SITE_AREA .'/content/index'));
Route::context('reports', array('home' => SITE_AREA .'/reports/index'));
Route::context('news');
Route::context('developer');
Route::context('settings');
});
Additionally, did you create the controller (News.php
) for the context?