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

Codeigniter front controller location and proper .htaccess

How should my .htaccess code look like if I move my front controller? More specific, I had front controller in the following directory: root/public/index.php and my .htaccess looked like so: RewriteEngine on RewriteBase / ReWriteCond %{REQUEST_URI}…
Matic-C
  • 783
  • 2
  • 11
  • 16
0
votes
1 answer

Codeigniter&Bonfire form values aren't cleared on refresh

Using CI&Bonfire setup input fields of my form don't clear on page refresh if I type something in them and then refresh the page. They only change if I manualy click the URL bar or restart the browser. This is becoming a nuisance as I need to…
0
votes
1 answer

Does anyone know why imagettftext doesn't open a font file

I am trying to use a font that I've uploaded in my website, but I keep getting this error: "imagettftext(): Could not find/open font". I have already tried using the putenv tool, but it still doesn't open the file. Is there an option on Bonfire…
0
votes
1 answer

Routes in CodeIgniter/Bonfire application displays page not found

I have a CodeIgniter/Bonfire application with routes defined. The main URL works fine but the subpages are not redirected. When I enter the URL: http://xtrack.local/news/1393/litany-look I got error PAGE NOT FOUND and looks like it cannot find the…
Miguel Bocquier
  • 2,449
  • 5
  • 22
  • 38
0
votes
3 answers

Avoid Errors due to missing ID in URL header

Using Codeigniter + Bonfire framework I can pass variables in my URL. This all works great with GET function like so: in my view file I get ID of my user and on click pass it to controller again:
LazyPeon
  • 339
  • 1
  • 19
0
votes
4 answers

Rename URL in Codeigniter

I want to remove /public/index.php from my Codeigniter and Bonfire project URLs.. My current URL: http://localhost/public/index.php/page Desired URL: http://localhost/page but I want the paths for link and images and robots intact! How does one do…
LazyPeon
  • 339
  • 1
  • 19
0
votes
1 answer

CiBonfire: URL Redirect after clicking "Next"

After I click "Next" at initial set up in CiBonfire I am redirected to 'me.ie/public/' however the project is located at 'me.ie/starter/public/' I can manually type in '/starter/' each time but it is a little frustrating and from what I can recall…
Niall Lonergan
  • 891
  • 1
  • 7
  • 29
0
votes
1 answer

CI Bonfire MX/Loader error after php upgrade

I am using XAMPP on Mac OS X v.10.8.5 for my local environment and I just upgraded to version 1.8.2-5 which runs: Apache 2.4.9 PHP 5.4.27 MySQL 5.5.36 In my CI Bonfire 0.7 installation I am now getting an error: 'Unable to select the specified…
PeterA
  • 15
  • 4
0
votes
1 answer

Codeigniter Bonfire install using AMPPS on MAC OSX 10.93 gives 404

I am trying to install Bonfire for Codeigniter on my Mac OSX 10.93 (Mavericks) and it shows the welcome screen and then when I click on the continue button to install it, I get a 404 error. It goes to this URL:…
Michael Falciglia
  • 1,046
  • 4
  • 20
  • 36
0
votes
1 answer

Sticky footer with Twitter Bootstrap and Bonfire

I am using twitter bootstrap in Bonfire. I am trying to have a footer at the bottom page if there is less content, and if there is more content, the footer goes towards the end. I have been trying for hours, and not able to find out what I am…
Ravi
  • 195
  • 15
0
votes
3 answers

CI Bonfire: Can't proceed from first step in installation

I plan to use Bonfire 0.7 in my new project but I can't get to install it. I've downloaded the master package and unzipped it into the www folder of my Wamp Server. The landing page tells me to manually create database and set the config files. I've…
CobaltBabyBear
  • 2,188
  • 6
  • 26
  • 47
0
votes
1 answer

Lang parameters in url rewriting

Some times now I'm around my htaccess and no way to get what I want... I'd like to rewrite as followings : http://www.mydomain.com/trunk/public/lang/ => http://www.mydomain.com/trunk/public/?l=lang http://www.mydomain.com/trunk/public/lang/profile…
VeZoul
  • 500
  • 6
  • 19
0
votes
1 answer

Bonfire vs stock CodeIgniter - module compatability

I've been using CodeIgniter for a few months and recently discovered Bonfire, which looks like a great foundation for CI projects, despite the current build using almost outdated resources like Bootstrap 2. I really love the module system in…
Bobe
  • 2,040
  • 8
  • 29
  • 49
0
votes
1 answer

CI-Bonfire Nested LIKE query

I could need a little help in nesting a like query. My goal is to accomplish something like followed: Select * from 'Library_Book' WHERE( ('BookName' LIKE '%FILTER1%' OR 'BookDescription' LIKE '%FILTER1%') AND ('BookName' LIKE '%FILTER2%'…
0
votes
1 answer

How to add two column names in form validation codeigniter rule

I am using codeigniter. Below is the form validation set rule unique[bf_product.product_order,bf_product.id] bf_product = table name product_order = column name I want to add another column i.e: product_category names to unique rule in form…
Moeed Farooqui
  • 3,604
  • 1
  • 18
  • 23