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
Bootstrap autoloader issue in production
Issue with file rights on the production server, so the class file isn't found by the webserver?
Comment by
WanWizard
January 2019
permalink
mssql driver
It isn't very decent to use the efforts of other people through an open source product, and then not contribute your own improvements back. As mentioned before, we don't use Windows (or any other MS product) and we don't really use Po…
Comment by
WanWizard
January 2019
permalink
mssql driver
Some remarks: 1. What doesn't work?2. Why did you never report it didn't work? 3. Why write your own, and not update the existing drivers?4. Why create them as core classes when they aren't?
Comment by
WanWizard
January 2019
permalink
set message within callable validation method
We do the same. set_message() is more for one-time custom messages or messages you want to set from your custom validation rules which can't be in a global file, for example in case of module code.
Comment by
WanWizard
December 2018
permalink
Page load times
Thanks for the feedback. I'll add this to the troubleshooting section of the docs.
Comment by
WanWizard
December 2018
permalink
mysql field type
I can only assume: because it didn't exist 8 years ago when that file was ported from the Kohana framework. I'll add the update to my todo list, I'm pretty sure the other drivers were never correctly covered too...
Comment by
WanWizard
December 2018
permalink
Page load times
Ok. Crypt uses sodium now, and if libsodium isn't avalable, it will be emulated in PHP which is slow. But only one call shouldn't really matter. If you have xdebug active, can you make a trace file, and email that to me at wanwizardfuelphp…
Comment by
WanWizard
December 2018
permalink
Twig view parsing issue
Ok, missed the fact that there is a default in the config file, so it's never null. Had the time to dig into this a bit, it seems you can inject a custom file loader into twig, which would be a better solution, as that could use fuel's fin…
Comment by
WanWizard
December 2018
permalink
Page load times
That is a very unhealthy difference. We run all our apps, and the apps of most of our clients, on 1.9-dev, and haven't noticed anything significant. I've ran an xdebug cachegrind on a dashboard page request of the app I'm currently w…
Comment by
WanWizard
December 2018
permalink
Twig view parsing issue
I'm not a Twig user and my knowledge is limited, but Twig itself is not aware of the way Fuel templates work, and doesn't have access to or uses the Fuel file loader. There is a "parser.View_Twig.views_paths" configuration key, d…
Comment by
WanWizard
December 2018
permalink
Page load times
Is this an average, or a one-time measurement? Because if I check the standard 1.9/dev welcome controller, on a 50 request test, I get values between 1.9s en 25ms, caused by environmental factors. The difference betwen 1.8 and 1.8.1.6 are just a few…
Comment by
WanWizard
December 2018
permalink
How can I renew data in the existing ORM\Model object?
The cleanest way, without having to fiddle with the ORM, is to use a normal DB query: $a = DB::select()->from('table')->where('id, '=', $id)->as_object('Model_Something')->execute();
Comment by
WanWizard
December 2018
permalink
How can I renew data in the existing ORM\Model object?
No, if the data changes outside of the ORM, the only way to refresh the data is to rerun the query. Why is rerunning the query a problem? Are you mis-using the ORM model for other things, as it should only contain the DB data, so a reload can't…
Comment by
WanWizard
December 2018
permalink
Router :: route wrapper
You can't without quite a bit of code (to pick up that user id) in your route.php, which is something you would want to avoid. Instead, route to "admin/user/edit" without the number, define the method as "action_edit($id = null)&…
Comment by
WanWizard
December 2018
permalink
Login Page problem
There is an example of an Auth controller in the docs: https://fuelphp.com/docs/packages/auth/examples/auth.html
Comment by
WanWizard
December 2018
permalink
A Warning with dompdf
Never used DomPDF, so I can't comment. I think you need to figure out which variable is non-numeric, and why. Perhaps you are missing some setup code somewhere?
Comment by
WanWizard
December 2018
permalink
extending Model which extends Orm/Model
You're the first I know of that uses multiple ORM models for the same table. Normally, you have an ORM model for each table, and you have non-ORM model classes functional to your app, which is turn use one or more ORM models to interact with th…
Comment by
WanWizard
December 2018
permalink
Template controller is not working
The page error is a routing error, so it can't find the controller that should serve that page. The name of the controller looks file, so perhaps there is custom routing defined that overrides the standard mapping. It could also be a rights is…
Comment by
WanWizard
December 2018
permalink
Template controller is not working
You don't provide any information, so I can't help. For starters, if you get an error, what error is it?
Comment by
WanWizard
November 2018
permalink
Template controller is not working
What exactly doesn't work? Please describe what you expect to happen, and what does happen. Also any error messages or log entries can be useful.
Comment by
WanWizard
November 2018
permalink
Primary keys always get reset using Orm
Upgrade your ORM package to 1.9/develop, and set protected static $block_set_pks = false; for all models that require the PK to be set manually, and are being set through forge().
Comment by
WanWizard
November 2018
permalink
pagination issue with missing posts
You're welcome! ;-)
Comment by
WanWizard
November 2018
permalink
pagination issue with missing posts
The queries you post don't match the code you posted. But I see the problem, your information wasn't complete, it is not a simple query, it is a query with relations. What you have is documented here: https://fuelphp.com/docs/packages/orm/…
Comment by
WanWizard
November 2018
permalink
pagination issue with missing posts
So, again, what is the offset and the per_page? Dump $pagination to verify. You enable the profiler in your app config.php, and then you enable database profiling per connection in your db.php.
Comment by
WanWizard
November 2018
permalink
pagination issue with missing posts
Depends on what offset and per_page is? count() returns the count in the resultset, not in the table. Enable the profiler and check the SQL that is generated.
Comment by
WanWizard
November 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,368
Last Active
9:34AM
Roles
Administrator