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
8243
Activity
security
You expire the generated token after 1 second?
Comment by
WanWizard
December 2014
permalink
Something like Laravel's ViewComposer
Agreed, definitely something to put on the agenda for v2.
Comment by
WanWizard
December 2014
permalink
Sort order on a many-to-many relationship - possible ORM bug?
Thanks, I'm sure someone will have a look at it soon.
Comment by
WanWizard
December 2014
permalink
Using Auth permissions
Thanks, we're happy with anyone spreading the word. ;-) We'll try to make v2 even better...
Comment by
WanWizard
December 2014
permalink
Using Auth permissions
There isn't really. We're working very hard on Fuel v2 at the moment, so not a lot of work goes on with v1. This question has popped up a few times, but it looks nobody's willing to make the documentation better. Ormauth was never …
Comment by
WanWizard
December 2014
permalink
Using Auth permissions
You need two things. You need a permission record, and that needs an action list. Which you seem to have created, so that is ok. What you haven't done (or what I should say, what you don't say), is that you need to assign this permissi…
Comment by
WanWizard
December 2014
permalink
Using DB class in tasks?
I don't have a Mac myself, so I can't really help you with that. I assume the trick is to find the one that is used by apache (because that works), and swap the others by a symlink to the working version. So essentially you only have one…
Comment by
WanWizard
December 2014
permalink
Using DB class in tasks?
The Mac's PHP setup is configured with a custom location for your php.ini. Which causes php-cli, used by oil, to read the wrong file, which misses all database information. It's a common problem on the Mac, see if you can locale all php.i…
Comment by
WanWizard
December 2014
permalink
Using DB class in tasks?
Sounds like a socket issue? On a Mac by any chance?
Comment by
WanWizard
December 2014
permalink
Sort order on a many-to-many relationship - possible ORM bug?
Reading it again, and checking the source, it seems that this was introduced early 2013 as a side effect of another change (https://github.com/fuel/orm/issues/235). By me none the less. In that ticket I asked to warn us if the change had side effec…
Comment by
WanWizard
December 2014
permalink
Sort order on a many-to-many relationship - possible ORM bug?
A copy of my answer on StackOverflow: From the ORM's point of view, the "through_table" does not exist. It is only defined so it can construct the SQL needed to make the relation work. That also means that additional fields in the &q…
Comment by
WanWizard
December 2014
permalink
ORM Get SUM column
The ORM isn't really designed to run custom selects, it requires a mapping with the columns defined in the model, and the presence of the primary key in all results, to work. There is experimental support for DB::expr() in selects in 1.8/devel…
Comment by
WanWizard
December 2014
permalink
Bug in auth.php?
Saw it, thanks.
Comment by
WanWizard
December 2014
permalink
Use a static subdomain automatically with Asset?
That should work, being able to add a URL was added explicitly for this functionality. But I have never used it personally, so I have to dive into the code too. If you think it's a bug, please create an issue for it at https://github.com/fuel/…
Comment by
WanWizard
December 2014
permalink
Beginner's question: views and data
I assume you're talking about generated views? Where the forum for edit and create is in a third, separate view? In that case, open the edit or create view file. In there you'll find the View::forge() or render() call that loads the _form…
Comment by
WanWizard
December 2014
permalink
Bug in auth.php?
That sounds like a bug. The entire multiple driver thing has been flaky from the beginning. Since not many people seem to use multiple drivers, bugs like this takes years to find. Do you think you can fix it, and send us a pull request on github?
Comment by
WanWizard
December 2014
permalink
Access Views/Presenters from other Contoller
No, it's a method of the View class. Yes, you can, by disabling the filter, but is strongly recommended not to, since it disables all security. In general, if you have a lot of need for this, you're doing some wrong. I told you that twic…
Comment by
WanWizard
December 2014
permalink
running migration
if you don't specify an environment on the commandline to oil, it should default to development, and this should work. You haven't hardcoded an environment anywhere? What environment does oil think it's in (run "oil -v" to…
Comment by
WanWizard
December 2014
permalink
How to create credit card payment in fuelphp
I assume you're not going to process them yourself, but you use a payment provider? For some packages are already created by others, like for example authorize.net and paypal.
Comment by
WanWizard
December 2014
permalink
Access Views/Presenters from other Contoller
I don't understand the question. Your URI request leads to executing a single Controller method, there are no other controllers active at any given point. Do you mean you want bits of generic code, that you want to use from several controller…
Comment by
WanWizard
December 2014
permalink
HTML Code not in Views
Ah, ok. That page has a complete controller as example, what exactly is the part you're struggling wiith?
Comment by
WanWizard
December 2014
permalink
HTML Code not in Views
What do you mean by "template"?
Comment by
WanWizard
December 2014
permalink
HTML Code not in Views
The architectural design of FuelPHP is "encode on output", and not like most other frameworks, "strip on input". We assume that all data send to the browser is unsafe, unless you say otherwise. There are several ways to to that:…
Comment by
WanWizard
December 2014
permalink
How get fields and data from ORM
ORM has two methods of data retrieval, get() and get_one(). The find() method uses both, depending on the question asked. 'all' for example uses get(), 'first' uses get_one(). get_one() returns a single model object, or null if …
Comment by
WanWizard
December 2014
permalink
Something like Laravel's ViewComposer
They are global, so you only have to do it once. Where greatly depends on your application architecture. Some use the before() method of a base controller, some have an "application init" class that is always loaded in the config, some us…
Comment by
WanWizard
December 2014
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,385
Last Active
11:16AM
Roles
Administrator