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
8245
Activity
ACL
Yes, all permissions tables are used by the Auth library. The OrmAcl class will compile the users effective rights using all of them (so direct assigned permissions plus group and role assigned permissions). The way permissions work is documented h…
Comment by
WanWizard
December 2016
permalink
ACL
Afaik there is no open source code available for a frontend for OrmAuth, which is the standard way of defining ACL's.
Comment by
WanWizard
December 2016
permalink
Disabled Url extension
No, the extension can be used if you have (rest) controllers supporting multiple response formats, so something like /users/get.xml can return a userslist in XML format, while /users/get.json will return the same data in json format. the extension…
Comment by
WanWizard
November 2016
permalink
Disabled Url extension
Everything after the last dot is considered to be an extension, which is stripped by default. In the config, you can set routing.strip_extension to false to disable this globally. Alternatively, you can make routing.strip_extension an array of exte…
Comment by
WanWizard
November 2016
permalink
composer for only maintainer in a team
Ah, ok. You should never commit anything installed by composer, so yes, ignore all fuel packages, and ignore the entire vendor folder as well.
Comment by
WanWizard
November 2016
permalink
composer for only maintainer in a team
We develop internally using git-flow, and only the dev-lead has write access on the master, release-candaiate and develop branches, so he can validate and review all hotfix and feature branches before merging. No developer is allowed to introduce a…
Comment by
WanWizard
November 2016
permalink
FuelPHP - right choice for creating catalog website?
You can build anything you like. FuelPHP is a development framework, not a CMS.
Comment by
WanWizard
November 2016
permalink
Fatal error when using class \Fuel\Core\Log
What version of Fuel are you on? The current version 1.8.x doesn't require loading the composer autoloader anymore, putting it there will definitely break it. See https://github.com/fuel/fuel/blob/1.8/master/fuel/app/bootstrap.php
Comment by
WanWizard
November 2016
permalink
Fatal error when using class \Fuel\Core\Log
Sounds like you haven't run composer?
Comment by
WanWizard
November 2016
permalink
Disable metadata in Auth
Retrieval is done using a join, which doesn't take up extra time when the metadata table is empty (the database engine knows this and won't access the disk). Afaik there are no automatic saves taking place, but there are some implicit sav…
Comment by
WanWizard
November 2016
permalink
Create database connection in runtime
You can set config values in your code: http://fuelphp.com/docs/classes/config.html#/method_set and when done, save it: http://fuelphp.com/docs/classes/config.html#/method_save so something like: \Config::load('db', true); $db = array(…
Comment by
WanWizard
November 2016
permalink
getting Error array_flip(): Can only flip STRING and INTEGER values! at ACL
Ok, these things happen. ;-)
Comment by
WanWizard
November 2016
permalink
How get all permissions assigned to a user
If you only need it for the current logged-in user, your PHP code can call has_access() once, which will generate the cache file if it doesn't exist. After this, you can just read the cache file directly: $cache_key = \Config::get('ormaut…
Comment by
WanWizard
November 2016
permalink
Fuel and customer specific classes
You could use a module per customer. and based on the customer load the corresponding module? You can include routes in the module, so that the URL's for the users are all the same, and transparently mapped to the correct controller, like …
Comment by
WanWizard
November 2016
permalink
How get all permissions assigned to a user
The aggregated rights are calculated in the OrmAcl class, and cached there per user. As it is quite complex and time consuming, it isn't calculated for all users, but only for the user that logs in.
Comment by
WanWizard
November 2016
permalink
Mail Not Working from Email Package
Nothing really wrong with that email code, providing you have configured the email config file properly. What is the problem you have?
Comment by
WanWizard
November 2016
permalink
Routing After Method if Cache is Found
You can't, unless you overload and rewrite part of the Request class, since that is what calls the different controller methods. It is not something Fuel supports out of the box. Convert it so that if before() returns a Response object, the re…
Comment by
WanWizard
November 2016
permalink
Routing After Method if Cache is Found
That is not easy, and certainly not simply to solve in an example. Our app framework solves this routing ALL requests to a single front controller, which has a router method. So that receives ALL requests. It then checks login status, it checks ac…
Comment by
WanWizard
November 2016
permalink
Check whether a certain user is Logged In or Have a valid session
Is not really possible. We've seen people extend the Session DB driver, to include the current user_id as a column in the session table, or 0 if no user logged in. You can then run a query with user_id 0 and timestamp < time() + 60, for us…
Comment by
WanWizard
November 2016
permalink
Permission Checking in Each Get and Post
Use the router() method is a base controller.
Comment by
WanWizard
November 2016
permalink
Task Doesn't Know Anything About Environment
You need to tell oil in which environment it needs to run, it doesn't know anything about your webserver configuration. See http://fuelphp.com/docs/general/environments.html#env_oil
Comment by
WanWizard
October 2016
permalink
Response 401 in Hybrid Controller
If you insist handling it in a before() method, there are only two options: - redirect to another page that returns your status - throw an exception that returns your status If you want to go the exception route, just look at how HttpNoAccessExcept…
Comment by
WanWizard
October 2016
permalink
Response 401 in Hybrid Controller
You can not return anything in your before(), before is a prepping method, after it your action will always be called, unless you redirect to somewhere else. You need to do this in your action. If you want to do it in one place, you need a router…
Comment by
WanWizard
October 2016
permalink
Response 401 in Hybrid Controller
Fuel can return any status you want, just set the desired status on the Response object before you return it. see http://fuelphp.com/docs/classes/response.html
Comment by
WanWizard
October 2016
permalink
Hydrate() error with Model_Temporal
Yup, now that you confimed it, I'll commit it.
Comment by
WanWizard
October 2016
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,415
Last Active
8:15AM
Roles
Administrator