Announcing Bonfire - A jumpstart for your web apps |
[eluser]daK[/eluser]
[quote author="Basketcasesoftware" date="1305609092"]That's not a photo of me. [/quote] As for the photo... man sorry, I was just kidding, we can see it's a stock photo eheh ![]() Yeah neat, that frost called my attention sir. Make the mouse cursor hover a link on the "photo not-you guy" tie, jacket, shirt etc... and your client will give you a bonus for those links :wow:
[eluser]Basketcasesoftware[/eluser]
I should be so lucky. No, that photo is expected to be able to be changed at will. That "frosting" doesn't require any photo manipulations or a second image. Every site I researched for it suggested that as the way to go instead of what I did. And to get the links to work on that side menu even though the are "beneath" the frosting took another little trick I discovered. The frosting is entirely my method but I have to give credit to someone else for being able to make a link work beneath an image layer. I'll track that link down later. Handy method indeed.
[eluser]frozenmaiden[/eluser]
Hi..i try to use bonfire for my latest project, i want to ask how to add more context controller? For now it have content,statistik,etc.. i want to add my own context, is there any config or i must change it on bonfire core code?
[eluser]kilishan[/eluser]
[quote author="frozenmaiden" date="1305793715"]Hi..i try to use bonfire for my latest project, i want to ask how to add more context controller? For now it have content,statistik,etc.. i want to add my own context, is there any config or i must change it on bonfire core code?[/quote] 1) Routing - this is simple. Add the new context to your route files. Examine the current one, then you should be good. 2) Permissions - Add a new permission to the permissions table. And that's the basics. I'm sure there are some details I've missed but that will get you started to the point that you will get errors that should guide you the rest of the way. ![]()
[eluser]frozenmaiden[/eluser]
[quote author="kilishan" date="1305797406"] 1) Routing - this is simple. Add the new context to your route files. Examine the current one, then you should be good. 2) Permissions - Add a new permission to the permissions table. And that's the basics. I'm sure there are some details I've missed but that will get you started to the point that you will get errors that should guide you the rest of the way. ![]() Thank you,it works well.. Another question if you didn't mind.. if i make some modules, for example modules "pages" with context "content", how i set permission for view, add, update, and delete on that module correctly? for now, i add Bonfire.Pages.Manage, Bonfire.Pages.Add, Bonfire.Pages.Delete, Bonfire.Pages.View to the permissions table, is this the correct way? I will make many navigation, and i think it will be pain if the permissions table become very long.. ![]()
[eluser]kilishan[/eluser]
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. ![]()
[eluser]SmitRay[/eluser]
Hello everybody, I'm not able to install it. Can any1 please explain me??
[eluser]Basketcasesoftware[/eluser]
@SmitRay - Could you provide more details of your problem? Your installation environment is a start.
[eluser]Basketcasesoftware[/eluser]
@SmitRay - Could you provide more details of your problem? Your installation environment is a start.
[eluser]Basketcasesoftware[/eluser]
Sorry about the double post. The forums are acting very weird for me all of a sudden. |
Welcome Guest, Not a member yet? Register Sign In |