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
Fuel 2.0
Our development webservers run all PHP versions, from 5.6 to 8.0, in parallel, so everything can be tested with multiple versions. [root@web1] $ ps -ef | grep master root 17977 1 0 Feb10 ? 00:01:27 php-fpm: master process (/etc/opt/remi/php56/…
Comment by
WanWizard
March 2021
permalink
Fuel 2.0
A migration has always required to have both and up() and down() method, it is not related to PHP8. It is not complaining about is_callable(), it is complaining that you have a migratin without (probably) a down() method. We run migrations daily, a…
Comment by
WanWizard
March 2021
permalink
Fuel 2.0
Thanks.
Comment by
WanWizard
February 2021
permalink
Fuel 2.0
We run 1.9/dev internally on PHP8 for all our development projects. There is a release update in the planning, but no date yet as there are a few potential ORM issues still to sort out...
Comment by
WanWizard
February 2021
permalink
I can not dynamically change table name(dev-1.9)
No worries, we've all been there. See https://www.php.net/manual/en/language.oop5.late-static-bindings.php
Comment by
WanWizard
February 2021
permalink
QUERY ERROR
Cool !
Comment by
WanWizard
January 2021
permalink
I can not dynamically change table name(dev-1.9)
The model already has a static method for retrieving the table name. The problem is that self:: will call the original base model, not the current derived class. You need late static binding for that.
Comment by
WanWizard
January 2021
permalink
I can not dynamically change table name(dev-1.9)
Do not use self:, use static:. Late static binding is important if you change static properties.
Comment by
WanWizard
January 2021
permalink
QUERY ERROR
To create a new driver, you need to create a directory in fuel/core/database (I suggest to use "postgres") which will become the driver name, and create a connection.php class in there that extends the PDO one. You can look at the sqlite d…
Comment by
WanWizard
January 2021
permalink
Model_Temporal::find() throwing incompatible definition error
No, but you're right, I have to make some time for it. I'll try to make a release soon.
Comment by
WanWizard
January 2021
permalink
Fuel 2.0
I agree with all of that. :-)
Comment by
WanWizard
January 2021
permalink
QUERY ERROR
I have no recent experience with PostgreSQL, so json syntax this is new to me. It might be time to have a specific driver for PostgreSQL so you don't need to use the generic PDO driver...
Comment by
WanWizard
January 2021
permalink
QUERY ERROR
This is PostgreSQL? Afaik there is no support at all for this syntax, so that needs looking at. You might want to check if DB::expr() is supported: ... ->where(\DB::expr('your expression here'))-> ... If you use DB::query() and you…
Comment by
WanWizard
January 2021
permalink
Fuel 2.0
Quite simple: by 2014 there was only Uru and myself. He moved on to a non-php job, and I suffered from quite serious brain damage, from which I am only very slowly recovering. One of the problems I still have is poor memory, which means I have to co…
Comment by
WanWizard
January 2021
permalink
errorhandler::notice complains function e
e() is a shortcut for escaping strings in a view. Global functions are defined in the base*.php files, in fuel/core. See https://github.com/fuel/core/blob/1.9/develop/base.php#L219
Comment by
WanWizard
January 2021
permalink
Model related
That works if that id won't change during the time of the request.
Comment by
WanWizard
December 2020
permalink
Model related
What do you mean exactly by "execute"? What do you functionally want to achieve?
Comment by
WanWizard
December 2020
permalink
DB::query security(SQL injection)
Any code that is generated is escaped properly. If you want to construct your own query, you can manually quote values using \DB::quote($value) and identifiers using \DB::quote_indentifier($identifier) See https://fuelphp.com/docs/classes/database/d…
Comment by
WanWizard
December 2020
permalink
INSERT IGNORE
I don't think it is supported, as it is dependent on SQL dialect and platform, it would require driver support.
Comment by
WanWizard
December 2020
permalink
Making new OpAuth Strategy
What error? URL encoding issue?
Comment by
WanWizard
December 2020
permalink
Making new OpAuth Strategy
Yes, that is how OpenID works, it doesn't work the same as SAML or OAuth.
Comment by
WanWizard
December 2020
permalink
Making new OpAuth Strategy
Isn't there already an OpenID strategy available? I can remember using it in the past.
Comment by
WanWizard
December 2020
permalink
Is it possible to disable Security::htmlentities for few html entity?
It uses the PHP function htmlentities(), so it is restricted to what that can or can't do.
Comment by
WanWizard
November 2020
permalink
How to detect a directory?
is_dir() ?
Comment by
WanWizard
November 2020
permalink
Issue with CSRF
Yes, this is how the CSRF tokens work, there is a token in the data and a token in the cookie, and they must match. There isn't any more too it. It is a mechanism called the "double submit" defense, which was the mechanism of choice a…
Comment by
WanWizard
November 2020
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,373
Last Active
5:37AM
Roles
Administrator