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
Trigger a method through oil and pass a variable
You're running a commandline PHP script, so there is no browser. Which means that things like Sessions, Reponses, redirects, etc, don't work. I don't see why calling another method in your class won't work. Altough you call it u…
Comment by
WanWizard
September 2012
permalink
Can't Run
It's been fixed for 1.4/develop ( see https://github.com/fuel/core/commit/350234f2855351a24a8d126f1476aa64061a6a6f ). You can port the driver back to your 1.3 installation if needed.
Comment by
WanWizard
September 2012
permalink
A question for the FuelPHP Devs
We need to work on a detailed roadmap, and assign tasks. This will also allow us to be more specific about an RC date. There are some core classes that will have priority over others, such as Session. Jelmer's been very busy the last month due…
Comment by
WanWizard
September 2012
permalink
A question for the FuelPHP Devs
There isn't a clear timeline, as we are not a company sponsored team, we have to do this in our free time. And there are times when we don't have any. I think it will be reasonable to expect a least a 2.0 RC towards the end of the year. T…
Comment by
WanWizard
September 2012
permalink
duplicate session cookies set in redirect response
Thanks. I'll have a look.
Comment by
WanWizard
September 2012
permalink
Rest Controller $this->response not returning anything - v1.3
Nothing has changed to the REST controller in quite some time. Do you perhaps have an after() method in your controller that is not correct (i.e. doesn't take the response as a parameter and/or doesn't return the response)?
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
Session updates happen through a shutdown event, and it's the session driver that sets the cookie. One of the issues I've observed with cookies in combination with redirects, is that some browsers try to optimize the process. When they di…
Comment by
WanWizard
September 2012
permalink
duplicate session cookies set in redirect response
That is odd, the cookie is set in Fuel's shutdown event, and should only be run once. Let me know if you can reproduce it, and if you can, please post your test code on http://scrp.at so I can use that to test here.
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
Ok, I'll have a look.
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
What driver were you using before? Just want to check if it's not a driver specific issue.
Comment by
WanWizard
September 2012
permalink
UpdatedAt Observer for custom fields?!?
You add: protected static $_observers = array( 'Orm\\Observer_Self' => array( 'events' => array('before_insert'), ), ); to define the observer. You then define a public method _event_before_inser…
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
I use FF as default browser too, and haven't seen this behaviour. The session class is built so that if in encounters a collision, if will drop the session update instead of the entire session. So it's a lot more resilient to cookie issue…
Comment by
WanWizard
September 2012
permalink
Using module classes outside the module
Yup, no problem. I do it all the time. Every module I create has a class called 'Module' in modules/module-name/classes, which is called by the base controller to fetch menu items, check rights, get authorisations, etc. Stuff like this: …
Comment by
WanWizard
September 2012
permalink
UpdatedAt Observer for custom fields?!?
Welcome here j-one. No problem with your english. You are correct, the UpdatedAt observer will update the timestamp whenever something is changed in the object. Writing your own observer class, or using the ObserverSelf in combination with a method…
Comment by
WanWizard
September 2012
permalink
Using module classes outside the module
Nope, clueless. If the url works, then the autoloader knows how to load the class. \Account\Auth::method should work fine.
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
Does this happen in all browsers? If it happens regularly/predictably, maybe you could debug it, and see if every response includes the session cookie in the header? Does your application do concurrent ajax requests?
Comment by
WanWizard
September 2012
permalink
ORM Model returns all relations, even if not queried
No, it doesn't. It has a feature called 'lazy loading', which makes sure that if you request a relation that hasn't been loaded yet, it will load it on the fly. If you enable the profiler you'll see it lauches a second quer…
Comment by
WanWizard
September 2012
permalink
V1.3 Image_Driver Issue
No problem, I try to keep up with what's going on here. But you can reach the dev's quicker via an issue. We'll just tell you off and close it when you're wrong... lol.
Comment by
WanWizard
September 2012
permalink
V1.3 Image_Driver Issue
I've commited a fix (to develop), you can pick them from the 1.3/develop repo if needed.
Comment by
WanWizard
September 2012
permalink
V1.3 Image_Driver Issue
Looks like a bug. This commit introduced this feature, but it was only implemented for the gd driver. And we missed that when we merged the pull request. Thanks for reporting it. When you spot something like this, just create an issue at http://git…
Comment by
WanWizard
September 2012
permalink
Is it possible to use the
Not through ORM, as that will only retrieve records as-is. You'll have to use a DB query for this.
Comment by
WanWizard
September 2012
permalink
Auth user keeps being logged out automatically
Assuming it's not a code issue, it might be an issue with the cookie configuration. Can you check what happens with the session cookie that is sent to the browser? Where do you store your sessions? If in the database, is a new session record g…
Comment by
WanWizard
September 2012
permalink
One template for whole project
Assuming you refer to Controller_Template, all file loads in FuelPHP are cascading. So if you load view "templates/page" from a module, it will check the views folder of the module first, and if not found, it will check the views folders …
Comment by
WanWizard
September 2012
permalink
V1.3 event problem
Just checked the code. The Config file loader does throw a ConfigException when the file is not found. But this is caught by Config::load: try { $config = $file->load($overwrite); } catch (\ConfigException $e) { $config = …
Comment by
WanWizard
September 2012
permalink
V1.3 event problem
That is odd. Where exactly do you get this message? And what message? A PHP error? An exception thrown? Where exactly in the code? Because config files don't need to exist (a lot of them don't by default), that should not generate a messa…
Comment by
WanWizard
September 2012
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
2:47PM
Roles
Administrator