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
Orm Observer (CreatedAt, UpdatedAt) in package model
Debug the ORM model class, which is what calls the observers.
Comment by
WanWizard
January 2013
permalink
Module DB
Module files are only loaded when the module is active, which is only when you get routed to the module, either via the main request or via an HMVC request. The db config file get's loaded on first use, so if you can construct it so that you d…
Comment by
WanWizard
January 2013
permalink
Stacked event issue
As said, it's currently not designed to pass data from one event to another. Each one will receive exactly the same data, and in general that is a good thing, event handlers should not be dependent on each other. @FrenkyNet is responible for t…
Comment by
WanWizard
January 2013
permalink
How to pass named_params in HMVC
Sorry, missed that this was about "named" params. Only option is to set them directly in the $named_params property, there is no setter for it.
Comment by
WanWizard
January 2013
permalink
Module DB
You can't put database config in a module, it has to be in app/config. This is because it's read before modules are activated, and since config is cached, it will not read it again.
Comment by
WanWizard
January 2013
permalink
Login with Facebook
Look for Ninjauth, it should do twitter/facebook/github and a lot of others that use OAuth/OAuth2. Our depot project is using it too.
Comment by
WanWizard
January 2013
permalink
How to pass named_params in HMVC
->execute(array('myparm' => $myvalue));
Comment by
WanWizard
January 2013
permalink
Tutorial for using rest controller
Good suggestion. There is no such thing as a "default_format", but there is a "rest_format" property which is used if no valid accepted language is found, so I've updated the Controller_Rest to use that.
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
There must be more going on. I just created a new installation of 1.5/develop, changed the welcome controller to use Controller_Template, added a database config, enabled the profiler, and added a DB query to action_index. Profiler pops up in the …
Comment by
WanWizard
January 2013
permalink
Stacked event issue
You are correct in that is isn't called in a chain, all events listening for a specific trigger will receive the same information, it hasn't been designed to pass data from one event to another. imho that would not be a good thing to do, …
Comment by
WanWizard
January 2013
permalink
Extending Auth package
Seems like it has features most people would like to use. See if you can build it in such a way that the Auth driver system can still be used. So you can combine these features with let's say a Radius, LDAP or Active Directory login driver...
Comment by
WanWizard
January 2013
permalink
Orm Observer (CreatedAt, UpdatedAt) in package model
This is the standard Auth package? Which is aliased to global? And you're using $user = Model_User::forge() or $user = \Auth\Model_User::forge() ?
Comment by
WanWizard
January 2013
permalink
Extending Auth package
Click on the "Show source" button, and manually insert in the HTML. Can't seem to convince the forum people to add it to the toolbar, and I haven't had time to hack it in...
Comment by
WanWizard
January 2013
permalink
Stacked event issue
If I run your code, and dump $data: print(htmlentities($data).' '); $data = event::trigger('preview', $data); print(htmlentities($data).' '); $data = event::trigger('preview', $data); print(…
Comment by
WanWizard
January 2013
permalink
Orm Observer (CreatedAt, UpdatedAt) in package model
How do you use this model, because packages don't have support for controllers and models.
Comment by
WanWizard
January 2013
permalink
What will be with fuelphp?
Thanks for the kudos!
Comment by
WanWizard
January 2013
permalink
error 405 on Rest controller
Can't think of any reason why you wouldn't be able to use the name "ajax" for a controller. Did you get the same error when you requested the URL through the browser?
Comment by
WanWizard
January 2013
permalink
What will be with fuelphp?
FuelPHP 1.x package not, as they are not based on Composer, and they will not be. We offer repo space on http://github.com/fuel-packages for everyone willing to have their package stored in a central location, and there's also a subforum here …
Comment by
WanWizard
January 2013
permalink
Generate table with primary key on 2 fields
No, you'll have to generate a default, and modify it manually. You'll probably want a different index mechanism for such a setup as well.
Comment by
WanWizard
January 2013
permalink
Composite Primary Key error
You see it generates the exception in hasmany, indicating it's not failing on the Model_Meetingroom object itself, but on a related object. Check your has_many relations, the other side of each of them must be a belongs_to, with the correct ke…
Comment by
WanWizard
January 2013
permalink
Tutorial for using rest controller
I've looked into the code history, but HTTP_ACCEPT processing has been in there from day one. So it's indeed strange that it isn't documented. According to the code, the sequence mentioned in the docs is also wrong. I'll correct…
Comment by
WanWizard
January 2013
permalink
Tutorial for using rest controller
default_format is only used when no format could be determined. And since on of the checks is using the HTTP_ACCEPT header, a format can virtually always be determined. Either use the ".json" extension, "?format=json" on the URL…
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
The interface is between the query builder (DB classes) and the Profiler, so it doesn't matter what you use, DB calls, Model_Crud or DB should all log their queries. Just tried some DB and DBUtil calls in the same 1.4 test install, and they sh…
Comment by
WanWizard
January 2013
permalink
Session not destroyed after Auth::logout();
Destroying sessions (automatically) is a bad idea. There might be all kinds of other information in the session that you don't want to use. I have plenty of applications where that is the case. So yes, if you want to destroy the session, you…
Comment by
WanWizard
January 2013
permalink
Tutorial for using rest controller
I can't comment on that without knowing what you exactly do, so show your controller code please, and tell us how you call it. The REST controller returns the format in the type configured, or in the type requested. The default format is XML, …
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
1:44AM
Roles
Administrator