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
1 answer

How to use MySql Query in CI Bonfire

I have this code on my PHP test file. Now I need to do it in my CI-Bonfire application. I used find_by() and find_all() but, I didn't get any result that I want.
yeshansachithak
  • 832
  • 2
  • 18
  • 34
0
votes
3 answers

load js file to view in ci bonfire

I have a Module call ftp_data. Also I have a js file inside my Module Assets folder bonfire/modules/ftp_data/assets/js/ftp_data.js. Now I want to load this file to my view Inside View
yeshansachithak
  • 832
  • 2
  • 18
  • 34
0
votes
2 answers

codeigniter bonfire php error after installing

I'm trying to install codeigniter bonfire. After clicking the install button on the create username screen, it takes a few moments and then it loads this page. I watched some tutorials on how to install bonfire so I know this isn't what I should be…
daved
  • 392
  • 1
  • 4
  • 11
0
votes
2 answers

Code Igniter Bonfire ajax request 500 internal server error

So I am trying to submit just an email address using ajax to get people to register and I have no idea why I am getting a 500 internal server error. I am new to ajax calls. I have tried to follow the following tutorial:…
bubblebath
  • 939
  • 4
  • 18
  • 45
0
votes
1 answer

can't create module in bonfire using existing tables

For some reason, I can't seem to create a bonfire module using the "existing" table option. Earlier, it wasn't even displaying the list of fields from my database table when I selected the option to use existing table vs. creating a new one. BUt I…
dot
  • 14,928
  • 41
  • 110
  • 218
0
votes
2 answers

new bonfire install not working. Error message about .htaccess

Just trying to set up a new bonfire install. I've finished the install process and when I launch the site, I get the welcome page no problem. But when i click on the sign in button, i get the following error message: The requested URL /index.php…
dot
  • 14,928
  • 41
  • 110
  • 218
0
votes
0 answers

CI bonfire + Code duplication in different context

I just want to clarify this doubt. I might be wrong. I've learnt in OOP we should not repeat codes through out the classes according to the DRY principle. However, if I checked the admin settings context and the public context check boxes, bonfire…
stackflow
  • 2,112
  • 6
  • 32
  • 45
0
votes
1 answer

CI bonfire + can't view the module at public context

My Public contet URL is http://localhost:8080/bonfire/. I have created a blog module and checked Public in Contexts Required cheked list. I saw all the files have been created inside the module. I can only view the module in the admin section. If I…
stackflow
  • 2,112
  • 6
  • 32
  • 45
0
votes
2 answers

CI Bonfire uploading in modules

Trying to have an upload button in one of my modules... First thing, the view in the browser is messed since cannot see the physical button... Anyone done this to help out? Below is my view code...
0
votes
0 answers

HybridAuth not responding

I've installed and configured HybridAuth based on their documentations. When I try to do-a sign-in on a particular social network, this comes up : Any tips would be highly appreciated!. :)
Kyle Emmanuel
  • 2,193
  • 1
  • 15
  • 22
0
votes
1 answer

Call a class method from Javascript form

In order to create dynamically a form, Im doing something like (inside a js function) : member = memberInfo.values[0]; // create the sign up form var f =…
Alucard
  • 1,814
  • 1
  • 21
  • 33
0
votes
1 answer

Bonfire for MySQL only? Bonfire Installation

Im planning to use bonfire on my current project so I have downloaded Bonfire for CodeIgniter and during the installation process it requires you to enter the database details like host, username, password, database, prefix my project is currently…
Þaw
  • 2,047
  • 4
  • 22
  • 39
-1
votes
1 answer

Bonfire with codeigniter Internal server error

I have a Bonfire set up and was running fine . Its in http://office.barrecertification.com/ suddenly after server restore to previous backup i get Internal Server Error. My .htaccess file is # Helpful sections not specific to CodeIgniter -…
-1
votes
1 answer

Issue with CI Bonifre Module

Im using the latest version of bonfire. I created new module called 'contacts' which works fine on my localhost (public/index.php/admin/content/contacts). I uploaded everything to the server and it works perfect... except my module. It gives me a…
jonathon
  • 39
  • 7
-2
votes
1 answer

Codeigenator bonfire fetch_row is not working?

Check below code : $data["results"] = $this->useer_model->mysqli_fetch_row($config["per_page"], $page); $str_links = $this->pagination->create_links(); $data["links"] = explode(' ',$str_links );
1 2 3 4
5