Questions tagged [bonfire]

Bonfire is intended to provide a kickstart for new web applications built in CodeIgniter.

What is Bonfire?

Bonfire is a framework for your web application, built on top of the CodeIgniter PHP Framework. It is not a CMS, but a starting point for new projects that require ready-made tools like:

  • Robust Role-Based-Access-Control
  • Fully Modular Codebase. Built around HMVC.
  • Database backup, migration, and maintenance.
  • Powerful, parent/child capable theme engine.
  • Simple Email queue to keep your ISP happy.

Bonfire Components

Bonfire ships with a number of individual components that are described below. Don't get hung up on the details of each component for now. Many of these will be described in more detail below.

  • MY_Model

MY_Model provides a robust set of standard methods for you to derive your models from. Methods covering all standard CRUD routines, as well as simple methods that chain together. For simple models, all you have to do is extend the MY_Model class and set a couple of variables and you'll be up and running without any extra code.

  • MY_Controllers

MY_Controller provides 4 different controllers that you can use to keep common functions within each 'zone' of your website: Base_Controller, Front_Controller, Authenticated_Controller and Admin_Controller. You can set different defaults in each controller for a different part of your site. For example, setting the admin theme in the Admin_Controller, or making sure the user is logged in with the Authenticated_Controller.

  • Role-Based Access Control

Bonfire's User module provides a flexible User_model, ready for your users to login with, as well as a flexible RBAC that is simple to use and flexible enough to fit most needs.

  • Database Tools

Quickly browse your database, perform backups, restore old backups, and keep your database versioned with Migrations. Unlike CodeIgniter's built-in migrations, Bonfire extends them to allow for the core, your app, and each module to maintain their own set of migrations.

  • System Events

Very similar to CodeIgniter's Hooks, System Events allow you to hook into Bonfire's core code without modifying core files. It also provides a simple way for you to add hooks to your own code for other modules to use.

  • Activities Log

This library provides a simple way to log user activities, such as 'JohnDoe deleted the Page titled "Page 1"'. This makes it simple to keep a clear, consistent log of every important action of every user.

  • Settings

Easily store application-wide settings in the database, allowing your users to change settings simply and easily.

Official site

http://cibonfire.com/

References

https://github.com/ci-bonfire/Bonfire/wiki/Getting-started-with-bonfire

75 questions
0
votes
0 answers

looping change function jquery with ajax

I want loop id peminjaman_id_barang many times. I use ajax in my function... here my function. I use codeigniter 3 and bonfire framework $("#peminjaman_id_barang").change(function(e){ e.preventDefault(); e.stopPropagation(); …
Neil Zian
  • 13
  • 1
  • 7
0
votes
1 answer

Ci bonfire upload image fail to upload to destinated directory

it my first use ci bonfire why my result the image not appear this my results and this my controller public function tambah(){ $config['upload_path'] = './gambar/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] =…
Qotada
  • 7
  • 4
0
votes
3 answers

how to remove public folder and index.php on bonfire?

I just installed bonfire, if I want manage a module I must go to http://localhost/bonfire/public/index.php/admin/content/blog I would like to remove index.php on the url and I would like to access my module…
IIM NUR DIANSYAH
  • 434
  • 1
  • 8
  • 18
0
votes
1 answer

Error Updating Roles

I have an issue with one of my projects, as soon as I try to update a role I got the following error. The value in "Role Name" is already being used. When I am editing/updating the role, the role name shouldn't be validated. Why is this…
carcargi
  • 516
  • 2
  • 8
  • 23
0
votes
1 answer

how to load json in cibonfire?

i have this controller from penjualan_resep module public function load_data_mahasiswa() { $term = $_POST['parent_id']; $response = array(); $mahasiswa = $this->mahasiswa_model->find_by('nim', $term); //load data from mahasiswa model if…
Gusan
  • 411
  • 3
  • 5
  • 19
0
votes
0 answers

Codeigniter - Bonfire - Error 520 on user edit

I have a problem with a codeigniter/bonfire installation, when I try to modify one of the users I get a 520 Error, and when I go back, the entire site returns 520 Errors. This happens 95% of the time (I've tested 20 times, working only the first…
carcargi
  • 516
  • 2
  • 8
  • 23
0
votes
1 answer

Bonfire Database error

I am using ciBonfire for the first time, it looks very good and promising to kick start the development and stuff. The installation went good without a problem. But when I try to use its admin panel to save new settings, it gives me an error as…
Maxxer
  • 91
  • 8
0
votes
1 answer

Codeigniter error with json encode Cannot modify header information - headers already sent

I am using codeigniter bonfire framework for creating a web. Everywhere where i m using echo json encode i am getting error in error logs like :- ERROR - 2015-07-06 17:38:49 --> Severity: Warning --> Cannot modify header information - headers…
Gitesh Purbia
  • 1,094
  • 1
  • 12
  • 26
0
votes
1 answer

Automatic logout codeigniter bonfire

I create a web application in ci bonfire. I installed 2 bonfire. One for front end and another for backend. Installation sturcture is like:- projectName Assets Bonfire Riadmin :- (It is another bonfire for admin panel) Index.php Now i am…
Gitesh Purbia
  • 1,094
  • 1
  • 12
  • 26
0
votes
0 answers

Error: 404 Page not found in codeigniter Bonfire logs file on every page load

I am new to using codeigniter. I'm using codeigniter bonfire framework for creating application. Every time when i load page, logs file generate an error: ERROR - 2015-06-10 05:30:12 --> 404 Page Not Found --> ERROR - 2015-06-10 05:30:18 --> 404…
Gitesh Purbia
  • 1,094
  • 1
  • 12
  • 26
0
votes
2 answers

Set Custom Error messages per rule for Form Validation - Bonfire

I am having trouble setting my custom Error Messages upon Form Validations for every Rule. I have tried it from Bonfire documentation here Here is some code of my Model of a Module class Content_management_system_model extends BF_Model { …
Umair Ayub
  • 19,358
  • 14
  • 72
  • 146
0
votes
1 answer

How to make this JOIN in Code Igniter (BonFIre)

I am having difficulty JOINing 3 tables. I have following table (Column) apk_inv_item (item_id) apk_inv_category (category_id) apk_inv_item_category_defination (item_id, category_id) I want to get category ID of…
Umair Ayub
  • 19,358
  • 14
  • 72
  • 146
0
votes
0 answers

path to public directory bonfire/codeigniter

i need verify if one file exist on my controller, "localhost/bonfire/application/modules/controllers/controller.php" but my file path is: "localhost/bonfire/public/uploads" base_url not work, how can I verify that my file exists without…
Abel Olguin Chavez
  • 1,350
  • 1
  • 12
  • 24
0
votes
1 answer

Ajax, Bonfire calling a controller function from a view

I am trying to call a controller function using ajax after clicking a button in a view. I am using Bonfire but there is no response at all. I need guidance. Below is my JQuery/Ajax code placed in a js file in the assets folder of one of my…
0
votes
1 answer

Bonfire codeigniter custom rendering of layout - trouble

I have a new theme in my bonfire application, called "stylish". There is an index.php file in this theme folder. When I try to load this theme, the layout specified in the index.php gets loaded. However, when I have a different layout file called…
Ravi
  • 195
  • 15