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
Auth package, how to save profile_fields
It depends. If you're using Simpleauth, profile_fields is a database column containing a serialized array. Anything you pass to update_user() that is not a valid column will be stored in that array, and you can use the get() method to get it o…
Comment by
WanWizard
July 2013
permalink
View blocks buffering similar to CakePHP's blocks?
In FuelPHP that is not needed. You can use Asset::js() to add your javascript to an asset group, and then at the bottom of the template call Asset::render() on that group with 'true' as second parameter, indicating the group contains raw …
Comment by
WanWizard
July 2013
permalink
"No changes allowed" when attempting to delete parent model
Then I'm out of idea's. There are two places in the code where this exception can be thrown, but I have never seen it happen. Can you post the backtrace, maybe we can deduct from there what is happening.
Comment by
WanWizard
July 2013
permalink
ORM where_or statement for relations
You can use 'or_where', but I'm not sure that works in array notation too, you'll have to try.
Comment by
WanWizard
July 2013
permalink
"No changes allowed" when attempting to delete parent model
This looks ok, and I can't really explain it. An object goes into "frozen" state when it's in the process of being deleted, before updating any related objects. This is done to prevent loops, and should normally be no issue. pl…
Comment by
WanWizard
July 2013
permalink
I am kind of lost in relations
As to your second question: what did you expect? You are requesting a hierarchy after all...
Comment by
WanWizard
July 2013
permalink
I am kind of lost in relations
You can't (directly) see related data, for the same reason you can't see the model object property values directly. Both are constructed dynamically. You access related objects using the relation name as property: $address->address_det…
Comment by
WanWizard
July 2013
permalink
How to get get the sql out put ?
You can try DB::last_query(), but with ORM you're never sure what the last query was. If that doesn't work, enable the profiler in your app/config/config.php, and enable DB profiling in your db.php. The profiler will show all queries exec…
Comment by
WanWizard
July 2013
permalink
Debugging FuelPHP scripts using Netbeans and XDebug
I have to pass this question on. I know a lot of Fuel users use PHPStorm, but I have no experience with it's debugging capabilities.
Comment by
WanWizard
July 2013
permalink
Debugging FuelPHP scripts using Netbeans and XDebug
I think that's more of a netbeans issue, a quick "google" shows lots of pages about php debugging and issues with static classes.
Comment by
WanWizard
July 2013
permalink
Here goes my fourth Framework in four days.
Version 2 will be the same FuelPHP, but then better. :-) One of the major changes will be that some of the static interfaces will be removed, for stuff that should not be global (like Input, which should be part of the request context). Everythin…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
I've opened an issue with Opauth to get them to unify the callback method of all supported Strategies. I think that is a better approach then us documenting the anomalies...
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Perhaps to clarify, the internal callback is constructed by the Opauth driver, and unfortunately not very consistent amongst drivers. Whether or not that is a problem depends on the service. Google seems to want a complete and precise list of callb…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
I've looked at it again, and I still believe you're doing it different then in the example. Both 'int_callback' and 'oauth2callback' are INTERNAL methods of the Opauth drivers, they should and are not exposed in the ca…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Thanks!
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Can you create an issue for that on https://github.com/fuel/auth/issues so someone can pick that up?
Comment by
WanWizard
July 2013
permalink
Relation: module model to module model
In either case you have to make sure both modules are loaded. Then there are three options: - you relate Model_A in A directly to "B\Model_B" - you create a Model_B in A, and have that extend \B\Model\B, and keep the relation in the modul…
Comment by
WanWizard
July 2013
permalink
How to display error message right below the control
That depends on how you have setup your form. If you use a fieldset, you can configure this, and it will happen automatically. You also don't have to create validations manually. If you handcoded your HTML, you need to access errors individua…
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
Just took one of our existing applications, and added this to the action_create method: if ($e = \Session::get_flash('errors', false)) { $i = \Session::get_flash('input', false); \Debug::dump($e, $i); } if ($post = \Inp…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Just installed it, and already found it. Where did you get the idea from that you can do: $opauth = new Opauth($this->_config, true); and get it to work? This is not a plain PHP Opauth setup, this is a FuelPHP Auth controller. Which means …
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
No, set() and set_flash() are treated equally in the code, and saved at the same time and the same way. You don't have a second redirect somewhere, so that it redirects twice before getting to the method that fetches the flash data? Because fl…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
No problem, I hate not knowing why as much as you do... ;)
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
My controller looks exactly like the example in the docs. The example is taken of our app framework auth controller, I only removed the bits specific to our environment, like for example message handling.
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Very good question. the answer is I don't know. If you're willing to, you can make a zip of your entire funding_funnel folder, do me a zip with a database dump (if needed to start), and I'll try to setup your code here and see if I c…
Comment by
WanWizard
July 2013
permalink
module in module folder got loaded without config.php
What I meant was that if you use a URI like /module/controller/method/params the routing engine will detect you're calling a module controller, and will auto-load the module for you. In all other cases where you need to access something in a…
Comment by
WanWizard
July 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,365
Last Active
April 26
Roles
Administrator