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
8243
Activity
Thoughts about feature: Support localized language URLs?
You're not getting my point. Since there are a lot of possible implementations, it does not belong in the framework. Dealing with i18n is (very) application specific, and we are very strict in this: application specific code will not go in the…
Comment by
WanWizard
January 2013
permalink
Custom exceptions
Your stuff should not be in the \Fuel\Core namespace, that is a namespace that is only used internally, and should not appear anywhere in your code. So define your class in the global namespace, and catch \HttpApiErrorException.
Comment by
WanWizard
January 2013
permalink
cURL request causing 404
The curl driver throws a RequestException (which extends HttpNotFoundException) when the response body is empty (the result of curl_exec()). So your request returns no data.
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
Thanks for the feedback.
Comment by
WanWizard
January 2013
permalink
Thoughts about feature: Support localized language URLs?
We're not in favour of this type of solutions. Dealing with i18n is very application specific, and should imho not be part of the framework. If you incorporate this, you will "force" users to use this method. It might also impact the…
Comment by
WanWizard
January 2013
permalink
Get/Set Cache to Sub Directories
You can use Fuels 'dot-notation' to organize your cache structure. The file driver will convert that to a folder structure. So if you use a cache key like "admin.users.user_016", it will create app/cache/admin/users/user_016.cac…
Comment by
WanWizard
January 2013
permalink
Auth user keeps being logged out automatically
No. I use FF as my main browser, and I have not observed this behaviour. DB sessions tend to be very stable. Recently upgraded to 1.4? And if so, did you make sure your timezone settings are ok?
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
I've just pushed the fix. If you use a repo clone, just pull the updates for fuel/core in. If you have installed it from the zip, download the zip again, and replace the fuel/core folder.
Comment by
WanWizard
January 2013
permalink
Generate: uses int in migration, mysql_timestamp in model observer
That is odd, can you create an issue for it on http://github.com/fuel/orm/issues ?
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
The issue is known, and only related to cookie sessions. I haven't had time to fix it, but will look at it later today.
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
I'll see if I can setup a test environment today. Can you create an issue for this at http://github.com/fuel/core/issues so it stays on the radar?
Comment by
WanWizard
January 2013
permalink
Query Caching Question
If the third parameter is false, it will not create a cache item if the query does not produce a result. If it is true, the empty result will also be cached.
Comment by
WanWizard
January 2013
permalink
Application translation files are auto loaded or not ?
No, they are not. For exactly the reason you give. You have to explicitly load them, or add them to the always_load section in your app config.
Comment by
WanWizard
January 2013
permalink
Generate: uses int in migration, mysql_timestamp in model observer
What do you mean, normal? That ORM models by default include the timestamps?
Comment by
WanWizard
January 2013
permalink
Speeding up cascading file system
Yes. I have to say I don't notice a lot of improvement from it, even on a normal installation.
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
I can't reproduce that (and I use this technique in each of my applications). The only thing that has changed is the contents of the session cookie. Instead of sending control data back and forth, validation now happens server side. This means…
Comment by
WanWizard
January 2013
permalink
Is it a good or bad idea to use Lang class in exception messages?
shouldn't be a problem, providing the exception isn't thrown because of a Lang issue...
Comment by
WanWizard
January 2013
permalink
File share packages
I would go for your own classes, and use the File class where needed. There is too much you don't need in the File class, so imho you'll create a complex dependency which doesn't need to be there.
Comment by
WanWizard
January 2013
permalink
Catching an HttpServerErrorException
You mean you still get the exception? Try \HttpServerErrorException, because the class is defined in the global namespace, not the Fuel\Tasks namespace.
Comment by
WanWizard
January 2013
permalink
Speeding up cascading file system
It's for the core and packages, so there are no changes. They are copied there during the startup process when the ramdisk is created.
Comment by
WanWizard
January 2013
permalink
Speeding up cascading file system
I am not aware such a tool exists. But if you think this is such an issue: I run all my apps of a centrally installed fuel installation (so core and packages are not part of the application install), and I use a ramdisk for that (a few Mb will do).
Comment by
WanWizard
January 2013
permalink
Passing variables to a ViewModel
Why would you want to "misuse" a viewmodel for this purpose? Why not create a standard class for it?
Comment by
WanWizard
January 2013
permalink
Cannot catch exception
Best port of call would be the changelogs: https://github.com/fuel/core/wiki Pay particular attention to the sections about deprecated or removed code, and changes impacting backward compatibility. And I would go to 1.5, since that was released th…
Comment by
WanWizard
January 2013
permalink
Module Routes
No, then it will indeed not work, because routes are not processed recursively. Which in your case will be solved by a second Request, which will process the routes again. It just comes across as quite heavy, basically doubling the amount of reque…
Comment by
WanWizard
January 2013
permalink
Module Routes
I think you can achieve the same using '(:any)' => 'frontend/$1'
Comment by
WanWizard
January 2013
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,400
Last Active
12:11PM
Roles
Administrator