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
Issue with CSRF
The token only exists as a cookie value. This cookie is send to the server with your request, and server side, the value of the cookie is compared with the value in the POST data. If your ajax request doesn't update the cookie when it receives …
Comment by
WanWizard
October 2020
permalink
cookie
You mean something like https://stackoverflow.com/questions/5639346/what-is-the-shortest-function-for-reading-a-cookie-by-name-in-javascript ?
Comment by
WanWizard
October 2020
permalink
[Bug report] How to pagination templating missing
There are the templates you mentioned pre-created, which you can find in the pagination.php config file, in the core/config directory. The file also contains some comments that should help you with what's what. You can create your own in the p…
Comment by
WanWizard
September 2020
permalink
Fuel ACL
The caches are created once the permissions are computed, and reset when an update is made. If you update the data outside of Auth, you need to flush the cache yourself after you made an update. Calculating effective rights is complex and time consu…
Comment by
WanWizard
September 2020
permalink
Can we define route like larabel Routing?
Assuming that you mean "action_index($id)": 'user/perrformance' => 'user/index', You can't route to methods that aren't prefixed with "action_", that is by design.
Comment by
WanWizard
September 2020
permalink
Future of the framework
As long as it is free, I can live with it. There is no budget, and I doubt our sponsor is willing to pay for stuff they don't host (which is sort of free for them).
Comment by
WanWizard
September 2020
permalink
Future of the framework
Current CMS is PyroCMS. As to hosting, Fuel's sponsor (FlexCoders Ltd) does, besides Fuel development, also managed hosting. So we have a managed VM available for free that currently runs fuelphp.com and fuelphp.org (was reserved for the new …
Comment by
WanWizard
September 2020
permalink
Future of the framework
So far no complaints. ;-)
Comment by
WanWizard
September 2020
permalink
Fuel ACL
I see your issues. Adding the column to the model properties isn't that complicated, that is a simple class extension in the app which won't interfere with the Auth code. There is some discussion about ORM filter conditions on relations a…
Comment by
WanWizard
September 2020
permalink
Fuel ACL
You mean like a multi-tenancy setup? With possible "admins" per company? We have one app in maintenance with something like that (not ACL, but mutli-company data), and in that app it is solved by adding the company_id to the relevant table…
Comment by
WanWizard
September 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
Fixes have been committed to 1.9/dev, so if you want to test, please.
Comment by
WanWizard
September 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
Thanks. Without the option to test it myself at the moment, I've left some comments on the PR.
Comment by
WanWizard
September 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
If you can, please. My home server has crashed with a mainboard failure earlier today, so I can't do much until the replacement has arrived and it is up and running again...
Comment by
WanWizard
September 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
You mean: you run a query with a related model, but there are no related records. In this case the empty relation is not created, so access assumes there was no relared model, and it will fire a lazy load query (which obviously doesn't return …
Comment by
WanWizard
September 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
Very interested to see what you come up with. All our apps run on 1.9/dev, and I haven't heard of any issues. Having said that, we never design apps with multiple primary keys, all our tables have meaningless auto-increment ID keys.
Comment by
WanWizard
September 2020
permalink
Route and argument capture in controller
"page/:vimeo/:category" works fine. The cause of the problem are the brackets. The Router will convert the named parameters to a regex group, which you place into another group with your brackets. Which causes the segment to be into the r…
Comment by
WanWizard
August 2020
permalink
Route and argument capture in controller
That doesn't sound logical, I can reproduce it, so I will have to look into that.
Comment by
WanWizard
August 2020
permalink
Route and argument capture in controller
Yes. Routes are processed in order of definition. So "/category/test" is matched by the first rule, not the second. Same is true for the second set (video/...). Solution, swap them... ;-)
Comment by
WanWizard
August 2020
permalink
How to generate model from existing tables
In your db.php config file. Use "mysql" instead of "pdo". As long as you are using ANSI SQL, the PDO driver works fine, because it is generic SQL. But commands like list columns are RDBMS specific, they can't be implemented …
Comment by
WanWizard
August 2020
permalink
How to generate model from existing tables
Don't use the generic PDO driver if a native driver exists, as functions like that are RDBMS specific, and therefore not implemented in the generic driver. What database do you use? If you use MySQL / MariaDB, use the mysql driver instead. It e…
Comment by
WanWizard
August 2020
permalink
Use Sessions without cookies
You can't. The HTTP specification clearly states that a browser MAY discard any data as soon as it sees a redirect, and issue a new HTTP GET for the new location. All browsers do, some don't even make downloaded data available, and javascr…
Comment by
WanWizard
August 2020
permalink
Use Sessions without cookies
You can't use a response (at all, not only the header) when you redirect, the browser will discard all responses on a redirect of any time.
Comment by
WanWizard
August 2020
permalink
Use Sessions without cookies
In your controllers' after() method. It gets the response passed as argument, so you can do: public function after($response){ $response->set_header('Session-Id', \Crypt::encode(\Session::key()); return $response; } You can…
Comment by
WanWizard
August 2020
permalink
[Bug report][fuel/dev-1.9]I could not get related data using orm
I can't imagine that being the case, it is such an important function of the ORM, if that wouldn't work, most of our apps won't run. I'm currently our of office, I can only have a look at it when I'm back next week.
Comment by
WanWizard
August 2020
permalink
render html as file
A view file in a string is not supported out of the box. Have a look at https://bin.fuelphp.com/snippet/view/PH This is from one of my old apps, it might be of some use for you.
Comment by
WanWizard
August 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
11:29AM
Roles
Administrator