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

73 questions
4
votes
1 answer

Codeigniter CIBonfire how to change mode from development to production?

I'm creating my first app using CIBonfire and i'm ready to push it to production, but i'm not sure how to change the mode from development to production so that it does not show the profiler stuff in the footer. I was not able to find it in any of…
Catfish
  • 17,019
  • 47
  • 183
  • 323
3
votes
2 answers

Codeigniter parentheses in Active Record query

I have this ActiveRecord to produce a query, $this->purchase_requisition_model ->where('deleted','1') ->likes('to',$sapfvalue,'both') ->likes('date',$sapfvalue,'both') ->likes('request_by',$sapfvalue,'both') …
sulaiman sudirman
  • 1,726
  • 1
  • 21
  • 28
2
votes
2 answers

What are possible reasons for bonfire Assets::add_module_css to not include file?

I have a primary controller located in secure/application/modules/gps/controllers that has a constructor that looks like this: public function __construct() { parent::__construct(); $this->load->model('gps_model'); …
ChronoFish
  • 2,758
  • 3
  • 22
  • 34
2
votes
1 answer

add modules to a new context in bonfire

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 …
2
votes
0 answers

getting error in bonfire while starting

I just installed bonefire in my system but I am getting following errors in that.` [Mon Dec 21 11:30:07.428428 2015] [:error] [pid 3241] [client 192.168.50.74:42003] SoftException in Application.cpp:350: UID of script…
soni8010
  • 415
  • 4
  • 19
2
votes
4 answers

Installing Bonfire for Codeigniter Server and Install link issues

I'm trying to install Bonfire for Codeigniter and I'm having some issues. I first tried downloading the zip, unziping it and placing it in MAMP and navigating to it through localhost. The welcome page came up but when I clicked on the "install"…
Rambo8000
  • 323
  • 1
  • 12
  • 23
2
votes
5 answers

Removing public/index.php?

How do we remove the public/index.php from ci-bonfire 0.7 ? I see there are instructions to remove the root index.php but I am unable to remove the root public/index.php and there are no instructions related to it. I have tried instructions in…
maan81
  • 2,839
  • 7
  • 32
  • 47
1
vote
0 answers

Bonfire Codeigniter htaccess to set root folder

I have a site in Bonfire Codeigniter (PHP) and I have to move it to a server but I do not have access to the virtual hosts. I need to solve this problem but I must use htaccess instead. Can anyone help me please? Your Web Root should be set to the…
1
vote
1 answer

Bonfire / Codeigniter: Folders accessible from HTTP but not from HTTPS

I have an application based on Bonfire/Codeigniter, fully functional with no problems, accessing by HTTPS protocol. But I have a folder named App, to access from outside bonfire, that only works with HTTP, if access it from HTTPS I receive an 404…
1
vote
1 answer

How to call query function in Bonfire model?

Customers_model Class Customers_model extends BF_Model{ protected $table_name = 'customers'; protected $key = 'customer_id'; protected $date_format = 'datetime'; My query function in model function get_customerlist() { $sql =…
jenii
  • 67
  • 1
  • 11
1
vote
4 answers

From binary to charcode to text javascript

i'm in the freecodecamp's bonfire "binary agents" and I almost got it. It returns the correct answer but with an "undefined" first and I don't see why.. function binaryAgent(str) { var arr = str.split(" "); var charcoded = []; var finalStr; for…
Chantun
  • 81
  • 7
1
vote
0 answers

How to give alias name of table in bonfire..?

I am using CI-bonfire, where I want to fetch data from multiple table and I want to give alias of table name but it'll give me error. Bellow is my code example $select = array( $this->table_name .'.*', …
Codebrekers
  • 748
  • 9
  • 26
1
vote
0 answers

How to give alias name to table in bonfire..?

I am using Ci-bonfire and I want to give alias name of table when I have join multiple table at that time it will give column ambiguous so how to give alias name of table Here is my code example.. $select = array( $this->table_name . '.*', …
Codebrekers
  • 748
  • 9
  • 26
1
vote
0 answers

How to render multiple views by using bonfire admin controller?

My codeigniter application consists of an admin panel(developed using bonfire) and a front application which shows different products . Admin panel is working perfectly. But i want to use bonfire assets management feature(like merging all css & jss…
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:…
Orangutan
  • 501
  • 2
  • 9
  • 15
1
2 3 4 5