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
Document Versioning
Sounds like a job for an observer. Observers are like plugins you can use with the ORM to execute specific tasks at events within the ORM, like just before or after a query. Some are included, have a look at how they work. I think there's also…
Comment by
WanWizard
July 2011
permalink
Bug with session class?
It's always possible to add extra checks, but that will add additional execution time, which isn't needed for the vast majority of the the users. For the future, we'll have to think about how we're going to communicate the impac…
Comment by
WanWizard
July 2011
permalink
Bug with session class?
Ok, different than I thought. The keys array is part of the session cookie. So if you have a valid cookie from pre-RC3 code, then that will still contain the 'ip_address' field. As I wrote before, the keys of this array are assumed to be …
Comment by
WanWizard
July 2011
permalink
Issue with upload class
Pushed an update that add's a re-check of the saved_to path after the callback. It was intended behaviour. i.e. if you alter something in the callback, you are supposed to know what your doing, and return a $file array that is still valid. I…
Comment by
WanWizard
July 2011
permalink
Bug with session class?
There is only one DB::insert() in the sessions' db driver, which is in the create() method. It uses the $this->keys array to define both the field names and the values for the insert statement. If you have 'ip_address' there, you&…
Comment by
WanWizard
July 2011
permalink
Sessions don't stick
If that is the case, I'll classify that as a bug. I'll look into that. edit: it terminates with exit, which is not done, as shutdown events won't be executed. I'll fix this. edit: has been fixed.
Comment by
WanWizard
July 2011
permalink
Render a module view from outside the module?
Note that the preferred way if doing this is to use a request, and use a module controller to render the view. This way you won't create any dependencies between modules, or app and module. $view = Request::factory('modulename/controller/…
Comment by
WanWizard
July 2011
permalink
Bug with session class?
Database layout has been changed from ip_address to ip_hash in RC3.
Comment by
WanWizard
July 2011
permalink
Issue with upload class
I'm not in a position to test at the moment. I see in the code (line 556) that the array is passed by reference, that doesn't seem right. Could you change that, and see if that is the culprit?
Comment by
WanWizard
July 2011
permalink
Language Translation Task
This looks very cool! I hope Bing is up to scratch, otherwise things can get very funny...
Comment by
WanWizard
July 2011
permalink
Fuel Core : comprehension/analysis - Config
Not sure that you mean by path fallback. At first, this was only possible when passing a FQFN, which will be returned by find_file() unaltered. But as you can have multiple module locations, and you don't know where a module is installed, this…
Comment by
WanWizard
July 2011
permalink
extending simple auth class
You don't need to add anything to a bootstrap, that also is modifying the package. Instead, tell Auth to use your driver (\Login\Auth_Login_SimpleAuth) instead of the default driver. For this to work the Login module most be loaded, either thr…
Comment by
WanWizard
July 2011
permalink
Fuel Core : comprehension/analysis - Config
By default config files are saved in app/config if no existing file is found. This code allows you to specify 'module::filename' to create a new config file in a module config directory.
Comment by
WanWizard
July 2011
permalink
Config "magic": search within the module of the active request first
RTFM See http://fuelphp.com/docs/classes/request.html#method_add_path. The $prefix parameter determines if the path you're adding will be appended (default) or prepended (or prefixed)... So in your module controller you can add \Request::acti…
Comment by
WanWizard
July 2011
permalink
Config "magic": search within the module of the active request first
Currently the search order is: first active request paths, then global search paths. This behaviour doesn't change. You can manually add search paths to the global list using Fuel::add_path(). You can manually add search paths to the request u…
Comment by
WanWizard
July 2011
permalink
Usage of setlocale in Fuel::init
Afaik that is only so for timezone, not for locale. I'm interested in the 'pitfalls' and 'unexpected behaviour'. I've read PHP's documentation on it, but apart from an issue when using thread based webservers like…
Comment by
WanWizard
July 2011
permalink
Config "magic": search within the module of the active request first
Use it the way it was designed to work? When called from a module via a request, the module is always searched first, allowing you to override global files. In general, when you have a config/view/other file with the same name in both the module an…
Comment by
WanWizard
July 2011
permalink
Usage of setlocale in Fuel::init
What is exactly the issue you have with it?
Comment by
WanWizard
July 2011
permalink
Assets do not work after changing the location of index.php
You have a misunderstanding of what DOCROOT is. DOCROOT is your webservers docroot. And not the folder you decide the index.php should be in. If you move your "application root" to a folder of the docroot, you'll have to modify your …
Comment by
WanWizard
July 2011
permalink
How would I break execution of a rest request if I have an invalid session key
Other than an exit or a redirect, I wouldn't know of ways to stop execution from a before() method. The method wasn't designed to be used for this. Use router() instead, and only call the requested action if the validation is successful.
Comment by
WanWizard
July 2011
permalink
basic session help
What code base are you using? There were some fixes post-RC3 (so in develop branch) to the Config class to fix similar error messages.
Comment by
WanWizard
July 2011
permalink
Bug in Fuel::find_files() ?
Because Fuel::find_file() is, as the name implies, about finding files. It's not about finding directories. Most Fuel code that uses this method (for example when loading views or config files) would choke terribly when a directory would be re…
Comment by
WanWizard
July 2011
permalink
Package Working on Localhost but not on server
Start debugging the application. If you can establish (for example by placing a die() before your if) that on the server your controller and action method is correctly called, you can rule out any issue with Fuel, with routing, and with rewriting. …
Comment by
WanWizard
July 2011
permalink
extending simple auth class
As a general principle, never modify framework code. It will lead to a merge misery when it becomes time to upgrade. Either extend an existing driver, or write a new driver. See http://fuelphp.com/forums/topics/view/3275 for a similar discussion.
Comment by
WanWizard
July 2011
permalink
Package Working on Localhost but not on server
Fuel only loads the defined 404 page if the requested controller, or the controller method can not be located. If you have established that the controller method is correctly called, it is not Fuel that loads the 404 view, it must be related to you…
Comment by
WanWizard
July 2011
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,369
Last Active
11:22AM
Roles
Administrator