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
1
vote
0 answers

Install Codeigniter in subfolder, ignore subfolder part in URL

I wish to install my Codeigniter Bonfire application in 2 folders one is "en" other is "sl" (both will have different languages and different databases). So far my first or main controller or how is it called is located in a public directory:…
Matic-C
  • 783
  • 2
  • 11
  • 16
1
vote
2 answers

Where in Codeigniter do I detect if user is on mobile device?

I have a CI Bonfire installation and I don't know where can I detect if a user is viewing the page on a mobile device or desktop PC? Is this done directly in front controller application/core/Base_Controller.php ? If user is on desktop PC I need to…
Matic-C
  • 783
  • 2
  • 11
  • 16
1
vote
0 answers

Bonfire - Authenticated_controller - Fatal error: Call to a member function is_ajax_request() on a non-object

I am trying to setup an area that is accessible only for the registered users, using Bonfire/CodeIgniter. Per Bonfire documentation, we can use the Authenticated_controller. When I try to extend my controller from Authenticated_controller, I get the…
Ravi
  • 195
  • 15
1
vote
1 answer

What function does Bonfire use to hash passwords?

I don't know if this is CI or Bonfire specific question and I realize it isn't a specific programming question but it sure hinders my ability to code in that environment. Under bonfire/modules/users/controllers/users/ is a controller that uses a…
LazyPeon
  • 339
  • 1
  • 19
1
vote
0 answers

MySQL tables altered after server reboot

The last two times my production server reboot, I noticed some of my MySQL database tables had been changed. I'm using CI Bonfire on PHP 5 server. The concerned tables are users, permissions, role_permissions and settings. These 4 tables are reset…
VeZoul
  • 500
  • 6
  • 19
1
vote
1 answer

Installing cibonfire on windows using AMPP (not package)

I'm trying to install CIBonfire for windows but the install always returns this : Here's my configuration : I'm quite new to learning Apache directives. Any help appreciated. Thanks ! :)
Kyle Emmanuel
  • 2,193
  • 1
  • 15
  • 22
1
vote
1 answer

Trouble with vanilla Bonfire/CI installation and .htaccess

OK, so my situation is rather simple (although not yet resolved). I downloaded Bonfire (for CodeIgniter) Created a new folder in my Sites folder, let's say bonfire (I'm using XAMPP for Mac) I'm going to http://localhost/~drkameleon/bonfire (where…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

Creating enemy with vision radius and blind spots

I’m using flutter and flame to create a game similar to sneak ops. I’m wondering how to go about creating an enemy that has a vision radius or area, that is obstructed by objects.
0
votes
1 answer

Only The 'Welcome to Bonfire' Screen Displays

I tried Installing Bonifre on Xampp. It get's properly installed. But when I try to login into Admin Panel. It redirects back to the "Welcome Screen". I have tried changing $config['uri_protocol'] to other options provided in config file. But none…
Sami Khan
  • 31
  • 1
  • 8
0
votes
0 answers

Codeigniter 404 page issue with bonfire

I have facing the 404 page issue in codeigniter on localhost. I have also set rewrite_mode enable on appache and if I have disable rewrite_mode than it gives 500 error. Also set .htaccess file. DirectoryIndex index.php # Rewrite…
Paras Dalsaniya
  • 99
  • 2
  • 10
0
votes
1 answer

CI Bonfire User Module - Passing User Account to redirect page after User Account Setup

Codeigniter 3 & CI Bonfire 0.7 I am trying to send the UserID that is auto-generated in the bf_users Database Table when a user registers an account to an additional Registration Page in order to create a One-To-Many Relationship between the bf_user…
Tim Burks
  • 1
  • 2
0
votes
1 answer

how to change SITE AREA constant dynamically in CI-BONFIRE?

I am new to bonfire, I am developing a system that incorporates three users Admin Clients Agents I have changed login destination for each above mentioned users in bf_roles table in database, but the issue is that the SITEAREA constant defined in…
0
votes
1 answer

Custom Module using Bonfire CI on Cpanel

I have developed my own module using bonfire on CI. The application works best locally. When I deploy it on Cpanel, the main pages until login screen work well. As soon as I try to hit the pages of my module, it gives me a 404 error. They are of the…
Ralph
  • 89
  • 7
0
votes
0 answers

bonfire error 500 when sending data to controller

I keep getting this error for a bonfire application that I am trying to learn for the first time. I primarily know Codeigniter and bonfire is derived from it so I should be able to do anything I can do in CI here in bonfire. I am trying to send…
warfreak92
  • 324
  • 4
  • 15
0
votes
0 answers

How to echo/print query in bonfire..?

If I want to echo my current query in bonfire which function provide functionality like laravel provide to_sql()
Codebrekers
  • 754
  • 1
  • 11
  • 29