Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
How i can use fuelphp's Auth package for authenticate user in codeigniter application?
In the end it's PHP, so everything is possible. Question is whether or not it's worth it. If you design your Fuel app with a separate frontend and backend (like we do), and use a REST API to have them communicatie, then it will be easy to…
Comment by
WanWizard
June 2015
permalink
It possible to use fuel's orm in codeigniter?
No. It has way to many dependencies to the framework core. The v2 ORM will be framework agnostic, but only the base code is ready (it doesn't do relations yet), so not very useful for production purposes.
Comment by
WanWizard
June 2015
permalink
Bug Tracker : DIRECTORY_SEPARATOR in Asset on windows environment
Don't bother, fixed: https://github.com/fuel/core/commit/84f19ead695821409aa7fb44b9cd14f4e09de950
Comment by
WanWizard
June 2015
permalink
Bug Tracker : DIRECTORY_SEPARATOR in Asset on windows environment
Can you create an issue for this at https://github.com/fuel/core/isssues ?
Comment by
WanWizard
June 2015
permalink
Bug Tracker : DIRECTORY_SEPARATOR in Asset on windows environment
Which version of Fuel are you on?
Comment by
WanWizard
June 2015
permalink
form select via ORM
Your first example uses sub-views, and data isn't automatically inherited by those views. The fact that you pass a variable to "kdbrg/create" doesn't mean "kdbrg/_form" can see it, so you need to pass it on. To do that…
Comment by
WanWizard
June 2015
permalink
What i can do by Oil console?
Oil console gives you a framework commandline prompt. You could compare it to running "php -a", but inside the framework. You can type any PHP command on the prompt, and all framework classes are accessable like they are in a controller. …
Comment by
WanWizard
June 2015
permalink
Pagination class throws exception
Maybe file corruption, maybe a rights issue? Good you've got it fixed though.
Comment by
WanWizard
June 2015
permalink
ajax pagination or pagination form
It isn't designed for ajax driven tables. You usually need a lot more than only ajax for pagination, and in most cases it's better to use a complete datatables product that solves all issues, like for example http://datatables.net/
Comment by
WanWizard
June 2015
permalink
Pagination class throws exception
Anything more, as in which line triggers this error? Did you check the file to see if the exception is true, could be a deployment issue?
Comment by
WanWizard
June 2015
permalink
save actions in role/user/group _permissions
I agree with you, use Roles where you can, Groups where you must. A role is linked to tasks you have to perform, so it's a lot more logical to use roles. You need to use groups if you have to "group" of users that have no activities …
Comment by
WanWizard
June 2015
permalink
save actions in role/user/group _permissions
I don't understand what your question is.
Comment by
WanWizard
June 2015
permalink
save actions in role/user/group _permissions
No, it has to be index numbers, so your interface must convert them. Something else is not supported at the moment.
Comment by
WanWizard
June 2015
permalink
Checking Cache exists?
If you feel that gives you additional performance, who am I to stop you from doing that?
Comment by
WanWizard
June 2015
permalink
Auth::has_access('blog.article') returns true..
Did you flush your cache after you made your changes? Ormauth caches the users effective rights after calculation to reduce the number of queries needed for every page request.
Comment by
WanWizard
June 2015
permalink
Sample for Authorization/ACL
the additional tables like scope, sessions and providers are used by Opauth, and required if you want to use login using facebook or github (or a lot more). They are used to link accounts from those providers to local accounts. For your other quest…
Comment by
WanWizard
June 2015
permalink
Assigning permissions to group
"users_permissions" is the table that holds the permissions, for some reason it sees Permission with ID# 21 as changed and wants to update it. And that fails because 'actions' is passed an empty array instead of a string, which…
Comment by
WanWizard
June 2015
permalink
Assigning permissions to group
Difficult to say without knowing the error. At first glace this looks ok to me.
Comment by
WanWizard
June 2015
permalink
Checking Cache exists?
No, there isn't. This is a much debated issue, and up until now we haven't found a satisfactory solution, one that doesn't require complete redesign. The problem with static methods is that you have no object to work with, so there i…
Comment by
WanWizard
June 2015
permalink
continue developing codeigniter application using Fuelphp
It should not be too difficult to write your own Auth driver that reads the database table used by that Custom Auth library, and uses it. You can start of with a copy of Auth_Login_Simpleauth. The docs explain how to write your own login drivers.
Comment by
WanWizard
June 2015
permalink
Email sending with cron jobs
You write a FuelPHP task (see the docs), and in your cron job, you put something like 30 2 * * * root /usr/bin/php /your/fuel/path/here/oil refine yourtask which will run the task called "yourtask" every night at 2:30 server time. A tas…
Comment by
WanWizard
June 2015
permalink
about FuelPHP
yes.
Comment by
WanWizard
June 2015
permalink
What is theme and themeinfo?
Not that I know of. But it's just a collection of views and asset files.
Comment by
WanWizard
June 2015
permalink
ajax session concurency
Fuel is pretty resilient against this type of problems. I was responsible for fixing this issue in CodeIgniters session library back in 2010. The issue is that certain actions cause the session id to rotate. The rotation time in the session config …
Comment by
WanWizard
June 2015
permalink
How to make Role base Authentication in Simpleauth
Oil doesn't do anything magical, you need to program all that? If you have configured your app for Simpleauth, and configured your DB config, just run the migrations from the Auth package, and it will create the users table for you.
Comment by
WanWizard
June 2015
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,368
Last Active
12:00AM
Roles
Administrator