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 1.8.2 PHP 7.3.11 query
Database_Result_Cached no longer exists. You need to have two classes, Database_OCI_Result (non-cached), and Database_OCI_Cached (cached). Just take the two MySQL (if you're using PDO) or the two MySQLi classes (if you don't) as an example.
Comment by
WanWizard
November 2019
permalink
Fuel 1.8.2 PHP 7.3.11 query
I can't look into your code, but there are two result objects: a standard one, and a cached one. The standard one doesn't cache anything, but simply fetches the next row from the result as you iterate over it. This implies there is no rand…
Comment by
WanWizard
November 2019
permalink
Modify error log string
You can do that, by overloading Log::initialize(), and creating your own monolog handlers in static::$monolog. After that, it is standard monolog stuff. We've created a custom processor, but perhaps only a modified line formatter will do the t…
Comment by
WanWizard
November 2019
permalink
How can I delete my FuelPHP Forum account?
Yes, inform us, which you just did. Consider it done. ;-)
Comment by
WanWizard
November 2019
permalink
Future of the framework
It was more a generalisation, I understand there will always be exceptions. ;-) Good to hear you want to get involved, we'll have to think about how to document the todo list so others can easily contribute.
Comment by
WanWizard
October 2019
permalink
Future of the framework
Why would you be upset? Our code is not open source, and not for sale. As to docs and forum, I don't think anyone is debating that, I welcome your contributions. If I had a team of 20 people, and the funds to pay them, things might be differen…
Comment by
WanWizard
October 2019
permalink
Future of the framework
On a business psychology course, a coach once told me: "Everything a human being does is driven by 3 factors: Money, Status, and Fun". Developing Open Source didn't use to be about money, some did it for the status it brings ("I…
Comment by
WanWizard
October 2019
permalink
Issue with Views when using symbolic links
What OS? What webserver? Did you check if follow symlinks is enabled? ...what the exact error is that you get when you try to read the file? Did you check what the webserver and/or PHP log file says? I can't really say much without so little in…
Comment by
WanWizard
October 2019
permalink
Issue with Views when using symbolic links
What OS? What webserver? Did you check if follow symlinks is enabled? Did you check if there is no SELinux or AppArmor blocking access? Did you create the test.php to check what the exact error is that you get when you try to read the file? Did you …
Comment by
WanWizard
October 2019
permalink
Issue with Views when using symbolic links
I don't know, it's not a framework issue, it is a server issue. Create a test.php in your public directory, and do a file_get_contents() of your view file. Does that work?
Comment by
WanWizard
October 2019
permalink
Issue with Views when using symbolic links
Northing wrong with that, we use symlinks to make theme files public. It is most likely that your webserver doesn't have the permission to read the files, you need to give specific config to allow symlinks to be followed (it is a security measu…
Comment by
WanWizard
October 2019
permalink
Future of the framework
I'm really itching to get started again, but at the moment, the brain still lets me down. It is however slowly improving, I hope to be in a position to do something for an hour or two a day, without falling asleep, by the end of the year. Hope…
Comment by
WanWizard
October 2019
permalink
Module resources not auto-loading
The point is that if Auth is not loaded, there can never be any user present, so there is no reason to get user information. And the class_exist() avoids autoload being triggered, which will crash the app as you have noticed. This is because Log is…
Comment by
WanWizard
October 2019
permalink
Module resources not auto-loading
We have this in our monolog processor: // if we have Auth, and a current logged-in user, add it if (class_exists('Auth', false) and $user = \Auth::get('username')) { $record['extra']['user'] = $user; }
Comment by
WanWizard
October 2019
permalink
Future of the framework
The honest answer is: I wish I knew. I had a stroke in 2014 which severly limited my mental capacity (which is pretty shit I can tell you, if you work in IT), and this is only slowly recovering. With this limitation I try to maintain the current co…
Comment by
WanWizard
October 2019
permalink
ORM Delete
That is because by default, "cascade_delete" on the relation is false. The ORM doesn't know that the client record has no meaning without a parent, so you have to define that. It could for example very well be that the child has othe…
Comment by
WanWizard
October 2019
permalink
Format:forge() decoding dose not work
The output filter is used on data send to a view. So if you are using views instead of Controller_Rest to output json, yes, that can have an influence. If you want to pass the data to the view in raw form, you have to set the appropriate flag.
Comment by
WanWizard
October 2019
permalink
call_fuel_func_array()
The point here is that if you know the number of arguments, calling the function directly is a lot faster than using call_user_func_array(), and this is what call_fuel_func_array() does. This is still true today, although speed varies between PHP v…
Comment by
WanWizard
October 2019
permalink
Format:forge() decoding dose not work
A5:SQL is a Windows tool, and Windows doesn't understand utf-8 unless the application explicitly does conversions. Maybe that is your problem?
Comment by
WanWizard
October 2019
permalink
AJAX
Sorry, made a typo. And I think $this->response($model->jan($val)); would have been better, looking again at your code. Your code would fail as soon as the framework decides it needs to write a header, or other output. Which is why it is bett…
Comment by
WanWizard
October 2019
permalink
AJAX
If you're using Controller_Hybrid or Controller_Rest, is should be: $val = $_POST['shouhinName']; $model = new Model_Shelf(); $this->response(array( 'jan' => $model->jan($val); )); You'r…
Comment by
WanWizard
October 2019
permalink
AJAX
Ajax is transparent for Fuel, it's just another HTTP request. I would personally not mix the two request types in a single action, at a minimum have distinct actions for ajax requests. You can do that by extending Controller_Hybrid instead of C…
Comment by
WanWizard
October 2019
permalink
AJAX
Input::post() reads posted data in www-form-data format (which you would also find in $_POST). If you post json, you need to use Input::json().
Comment by
WanWizard
October 2019
permalink
Format:forge() decoding dose not work
What DB are you using? What is the type of column you store the data in? What is the exact DB character encoding used for the database, table and column? What if you access that column using a tool like PHPMySQLAdmin or Adminer?
Comment by
WanWizard
September 2019
permalink
Format:forge() decoding dose not work
Maybe you haven't loaded PHP's mbstring extension?
Comment by
WanWizard
September 2019
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
12:27AM
Roles
Administrator