Announcing Bonfire - A jumpstart for your web apps |
[eluser]SmitRay[/eluser]
Ha ha ha ha ha ha... That's okay... I'm a complete novice in CI so please accept my apology for disturbing you. Anyways, I copied the folder in my localhost root folder. I can see the bonfire welcome page, when I get inside the bonfire folder from my host. So now my question is, from where and how to install it? As I already tried it by adding /install in the url but found no luck. So I'm really looking forward for your detailed instruction. Thank you in advance and thanks again for replying me earlier.
[eluser]Basketcasesoftware[/eluser]
Odd. http://domain/bonfire/install came right up for me. You did create your database first didn't you?
[eluser]kilishan[/eluser]
[quote author="daK" date="1305603786"]Can someone elucidate me this piece of code from ToDo tutorial final script, at the end where developer introduces the ajax call Code: public function delete() Why are we echoing TRUE (and what happens if FALSE) and then halting the script by die()ing?[/quote] Since this is an AJAX call, jQuery is expecting some form of confirmation in it's $.post() call. This just allows for a check on the success state of the PHP script. However, in the final version of this script, this is not actually necessary. I had started doing error checking in the javascript, but then decided that really wasn't necessary for this tutorial. ![]()
[eluser]kilishan[/eluser]
[quote author="SmitRay" date="1306210666"]Ha ha ha ha ha ha... That's okay... I'm a complete novice in CI so please accept my apology for disturbing you. Anyways, I copied the folder in my localhost root folder. I can see the bonfire welcome page, when I get inside the bonfire folder from my host. So now my question is, from where and how to install it? As I already tried it by adding /install in the url but found no luck. So I'm really looking forward for your detailed instruction. Thank you in advance and thanks again for replying me earlier.[/quote] It sounds like an .htaccess issue. If mod_rewrite is not enabled in your environment, you'll need to add the following lines in your .htaccess file: Code: <IfModule !mod_rewrite.c> Please let me know if that fixes your problem.
[eluser]Basketcasesoftware[/eluser]
Might be my issue too. I just moved everything over from a Windows XP system to this Windows 7 system. Re-installed XAMPP from the Zip version. Latest Bonfire and my blocks aren't loading from the default folder and the assets aren't loading from the assets folder at the root. But the assets are loading on the public server. Odd. I DID have to change the .htaccess file on the XP machine.
[eluser]frozenmaiden[/eluser]
[quote author="kilishan" date="1306191799"]You are correct. You currently need to set the permissions you desire in the permissions table. This allows different roles to have different permissions. To restrict/check access in your modules, see the has_permission() and restrict() methods in the Auth library docs. If you have a suggestion for a better way to handle RBAC and modules, I'm all ears. I like simple solutions. ![]() Why not make one table for list of permissions and another table for assign the permissions into specific roles? for example Code: bf_permissions : id | permissions_name What do you think? :red: Btw,i make some modules "appointment" extends admin_controllers,but i didn't want it become one of the context(content,stat,etc) so i declare it like Code: class Appointment extends Admin_Controller { How can i call the module ? i try http://localhost/admin/appointment but it throw 404 ![]()
[eluser]Basketcasesoftware[/eluser]
@kilishan - Well, it WOULD be nice to be able to extract the user name as well as the email address and id number. I find it an odd omission to the Auth library. You extract it when you do the authentication but don't store it in the session cookie(?)
[eluser]SmitRay[/eluser]
Quote:Odd. http://domain/bonfire/install came right up for me. You did create your database first didn’t you? Can you please tell me about the database?? I didn't get, which database are you speaking about.
[eluser]SmitRay[/eluser]
Quote:It sounds like an .htaccess issue. If mod_rewrite is not enabled in your environment, you’ll need to add the following lines in your .htaccess file: Yes my mod_rewrite is enabled.. But still I'm getting only the welcome page.
[eluser]Basketcasesoftware[/eluser]
[quote author="SmitRay" date="1306317296"] Quote:Odd. http://domain/bonfire/install came right up for me. You did create your database first didn’t you? Can you please tell me about the database?? I didn't get, which database are you speaking about.[/quote] Read the fine manual. You have to create a MySQL database to be able successfully install Bonfire. The back end uses it to, among other things, track user identities (like the administrator). When you run the installer it even asks you for the information about your database. You don't need to create any tables. Just make sure it's accessible from your server. Bonfire needs the database name, user name, user password and connection address (typically "localhost"). Make sure the user that you give has full read/modify permissions of course ;-P Short answer to the question "Which database are you speaking about?" The one you create BEFORE trying to install Bonfire. You have to create one for a number of packages. I know you need to create one for Joomla, phpBB, PyroCMS, Bonfire, etc. Codeigniter DOES have a function in it's libraries to create a database programmatically, but it depends on the permissions of your server. Bonfire currently doesn't use this function. |
Welcome Guest, Not a member yet? Register Sign In |