Bonfire icon indicating copy to clipboard operation
Bonfire copied to clipboard

add modules to a new context

Open bourafai opened this issue 8 years ago • 1 comments

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 :

  1. adding the context
  2. 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/

bourafai avatar Jun 30 '16 11:06 bourafai

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?

mwhitneysdsu avatar Jul 06 '16 19:07 mwhitneysdsu