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
know Users loggued
See my post above: What probably the simplest solution is, is: - add an additional column "user_id" to the session record, and allow NULL - extended the Session DB driver - overload the "write" method, and check for ! empty($thi…
Comment by
WanWizard
December 2014
permalink
know Users loggued
How about the session.php config file? See http://fuelphp.com/docs/classes/session/config.html. You'll need to change the driver to 'db'. What you need to do to make the driver save additional data is described in my previous post. …
Comment by
WanWizard
December 2014
permalink
Do not repeat yourself. So how can I reuse parts of my view?
That is a solution, but not a very good one. It's not exactly good practice to use global variables, no matter if you're talking about Views, or about PHP itself. You can pass variables on from a parent to a child view using or if you&…
Comment by
WanWizard
December 2014
permalink
How can I integrate jsonRPCClient in fuelphp ?
Sorry, I don't understand what you're trying to do here.
Comment by
WanWizard
December 2014
permalink
SmtpAuthenticationFailedException
No problem, good you've fixed it.
Comment by
WanWizard
December 2014
permalink
forge: Content-Type: application/x-www-form-urlencoded
I would say a POST is from-urlencoded by default: http://curl.haxx.se/docs/httpscripting.html#POST
Comment by
WanWizard
December 2014
permalink
SmtpAuthenticationFailedException
Did you set the newline to "\r\n" ?
Comment by
WanWizard
December 2014
permalink
Best Practice
$__data. Yes, that works indeed, but is not officially supported. Still, it's using code in a View. As a quick test: say you use a template engine (for example twig) that does not support PHP, would your solution still work. If the answer is …
Comment by
WanWizard
December 2014
permalink
Best Practice
Oil generation uses it because the create and edit vIews that are generated both load a secondary _form view, and they need to pass the data along. For this to work correctly you need PHP 5.5, and since v1 supports 5.3.3 upwards, it could not be i…
Comment by
WanWizard
December 2014
permalink
FInding Unique set of elements from an array
I haven't got a clue what you are on about. You have something, you do something, then you have something else? You have to be a lot more specific I'm afraid.
Comment by
WanWizard
December 2014
permalink
Anyone experience with php-resque
Our code is a bit different, but the principle is the same, yes. It basically checks the queue for a job to run, a job being a static class method with some additional parameters. When a job is found, it's static method is called, so it'…
Comment by
WanWizard
December 2014
permalink
Why Mongodb sorting are wrong ?
That is not a fix, it's a workaround. If it is really a bug it needs to be fixed. But I can't imagine, that code hasn't changed in years, other people would have complained about that.
Comment by
WanWizard
December 2014
permalink
Why Mongodb sorting are wrong ?
Have you tried enabling the profiler and see what it sends to Mongo? I can't see any immediate issue, it should add "buy":1 to the sorts list.
Comment by
WanWizard
December 2014
permalink
Best Practice
Probably the same reason as anyone: it's easy.
Comment by
WanWizard
December 2014
permalink
Anyone experience with php-resque
I can't comment without looking in detail to what you are doing. One of my reasons not to use it was exactly this, for every job fired you need to load the entire framework again. In the end we decided to turn it around, and have a task that…
Comment by
WanWizard
December 2014
permalink
know Users loggued
With the standard Auth, you don't. It doesn't log logins, and it doesn't log activity. What probably the simplest solution is, is: - add an additional column "user_id" to the session record, and allow NULL - extended the Se…
Comment by
WanWizard
December 2014
permalink
Documentation Bug
The correct place to raise a docs issue: https://github.com/fuel/docs/issues This error has been fixed: https://github.com/fuel/docs/commit/81d59f28766843ccc88eafbd84e045d65f57bd14 Thanks for reporting it.
Comment by
WanWizard
December 2014
permalink
Am having problems getting the metadata from ormauth
Yup, that works too (but only because metadata is implemented as an EAV container). For other relations you will need the double loop. (just want to be complete in my answer)
Comment by
WanWizard
December 2014
permalink
Am having problems getting the metadata from ormauth
How did that solve your problem? That only shows you the SQL generated by the ORM. Lets break your query down: - you're doing a get(), so you get an array returned - you're asking for metadata, which is a one-to-many related object, so an…
Comment by
WanWizard
December 2014
permalink
Simpleauht's profile field serialization wierdness
Simpleauth only uses a single user table, and standard DB calls. So no relation (or even a second table) is used.
Comment by
WanWizard
December 2014
permalink
Best Practice
That depends on what "Messages" does. If that is the message class I once made (and it used in for example the old Depot code), that does a set_flash() call too, but supports multiple error messages. And I detest global variables. In PHP,…
Comment by
WanWizard
December 2014
permalink
Am having problems getting the metadata from ormauth
I see in this dump a metadata object for every user, but I can't see it's contents. So so far, so good.
Comment by
WanWizard
December 2014
permalink
Anyone experience with php-resque
You'll have to do something custom for that, in the end it's just a class like all others, which you can load and execute. Essentially, oil tasks are designed to run from cron of manually from the commandline, so triggered from outside th…
Comment by
WanWizard
December 2014
permalink
security
Well, one second means it is expired before a user has a change to post the form. So the token is always invalid, and the check always fails. Most people set it to zero, so not expire it for the duration of the users session. Even if you set it to …
Comment by
WanWizard
December 2014
permalink
Anyone experience with php-resque
I have never used it, but looking at the examples I don't think that is going to work without modification, as it looks for specific classes. Maybe https://bitbucket.org/codeyellow/queue/overview is a better solution?
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:01AM
Roles
Administrator