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
View/Asset Output
I haven't had time to look at it, I'm travelling at the moment. Early next week I'll have some time available.
Comment by
WanWizard
March 2018
permalink
View/Asset Output
Can you show exactly how you output the inline js?
Comment by
WanWizard
March 2018
permalink
Configuration on DB
That result is from an ORM query, a standard DB query generates "SELECT * FROM config". So you have to look at your code to see what goes wrong. Configuration is in memory, so a delete just deletes in memory. You need to save after a delet…
Comment by
WanWizard
March 2018
permalink
Configuration on DB
Did you create the 'config' table according to the documenation? Is that table accessable via the default database definition? In other words, does this work?$result = \DB::select()->from('config')->execute();
Comment by
WanWizard
March 2018
permalink
Configuration on DB
You use an extension. So instead of $something = Config::get('something'); you would use $something = Config::get('something.db'); to fetch it from the database. To save data, it works the same, so Config::save('something.d…
Comment by
WanWizard
March 2018
permalink
disable cache on orm
Per query: $query->from_cache(false)-> ... Globally: \Orm\Query::caching(false); Note that I think this is 1.9/dev code, so you might have to upgrade if you're still on 1.8.
Comment by
WanWizard
March 2018
permalink
[Bug report]FTP core class
I still would like to have all information displayed on the fuel error page when this happens, because currently it's still guess work to what exactly is causing it.
Comment by
WanWizard
March 2018
permalink
[Bug report]FTP core class
I can't reproduce it here. Test code: $ftp = \Ftp::forge(array( 'hostname' => '172.16.1.43', 'username' => 'root', 'password' => 'pass', 'timeout' =>…
Comment by
WanWizard
March 2018
permalink
[Bug report]FTP core class
The Fuel error page should display the exact filename and line number, and a backtrace?
Comment by
WanWizard
March 2018
permalink
[Bug report]FTP core class
Any more details? What Fuel version? What line triggers this message? What is the error exactly, is it a PHP error, an Exception?
Comment by
WanWizard
February 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
This sounds like an issue in GD, you seem to have a much newer version that I have. I don't see a difference in behaviour here between the GD, Imagemagick and Imagick drivers. Having to do things differently defeats the purpose of being able to…
Comment by
WanWizard
February 2018
permalink
Twig extension not recognized
Nope. Twig should be installed by composer (it is defined in recommends in composer.json) and is added to fuel/vendor by composer. If you have something in app/vendor it is manually installed. It could also be that because of this, you're usin…
Comment by
WanWizard
February 2018
permalink
Twig extension not recognized
That is indeed weird. I have no explanation for it, you might have to do some debugging.
Comment by
WanWizard
February 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
By passing "-auto-orient" to Imagemagick's convert, it behaves the same as gd, taking exif info into account. p..s I used this to test: $result = Image::load(DOCROOT.'assets/img/Portrait_6.jpg') ->rotate(90) ->sa…
Comment by
WanWizard
February 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
I've ran my tests, with both gd and imagemagick. In both cases, everything in my test rotates fine, except your Portrait_6 image with gd. With imagemagick, it did rotate fine. It looks like GD takes the exif information into account. As Portrai…
Comment by
WanWizard
February 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
Thanks. Just to be clear: presets work for both gd and imagemagick, or only with gd? And calling ->rotate()->save() doesn't work for both?
Comment by
WanWizard
February 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
Can you tell me which of those examples I have to use to reproduce this? You have checked your php logs for errors I assume, the fuel codebase hasn't been fully tested against PHP 7.2 yet.
Comment by
WanWizard
February 2018
permalink
Twig extension not recognized
So loading a "viewname.twig" works, the twig syntax in the view works (i.e. twig itself works), but you don't have the extensions available?
Comment by
WanWizard
February 2018
permalink
FuelPHP 1.8 Log newline becomes space
Ah, missed pushing it a again! Thanks for the feedback.
Comment by
WanWizard
February 2018
permalink
Regarding transaction
It is not relevant if they are on the same server, it is relevant if both connections point to the same or to different databases. see https://stackoverflow.com/questions/2239810/multiple-database-and-transactions for more info.
Comment by
WanWizard
February 2018
permalink
Regarding transaction
What database are you using? Not all support distributed transactions across databases, and if they do, they only support it in specific circumstances. Distributed transactions is something you would want to avoid. The standard SQL command TRANSACTI…
Comment by
WanWizard
February 2018
permalink
Possible to generate a fieldset from properties array without using a Model
Yes, there isn't something ready made, as it depends very much on how that array would be structured, and what it contains, which is application specific. But you can use set_fields() as a guidance, to see how it is done.
Comment by
WanWizard
February 2018
permalink
FuelPHP 1.8 Log newline becomes space
Fuel uses Monolog for logging, and by default the LineFormatter doesn't support embedded newlines. But it has the option to enable it. Simplest would be to extend the Log class in your app (see the docs), and overload the initialize() method li…
Comment by
WanWizard
February 2018
permalink
Possible to generate a fieldset from properties array without using a Model
Sure. The basis of the form generation is the fieldset object, you can use its methods to manually build a form by adding fields to it. If you want to automate it using another source of field information, look at what Observer_Validation::set_field…
Comment by
WanWizard
February 2018
permalink
Expected behavior when forging a Temporal Model with an existing ID
Hmm... yeah, true. Shows I'm not an expert on Temperal models. ;-) You could extend \Orm\Model\Temporal, overload the save() method, and do your check there in case of static::is_new() ? Then it would be transparent for your app...
Comment by
WanWizard
February 2018
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,366
Last Active
April 29
Roles
Administrator