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
v1.6 install problems (composer not installed)
I don't know, I've never seen that before. Perhaps this gives some pointers? https://getcomposer.org/doc/articles/troubleshooting.md
Comment by
WanWizard
May 2013
permalink
external class and oil
You include it in the current scope of the script, with is the Fuel\Tasks namespace, but the file does not contain a namespace, the class is defined in global. So you need to use $s3 = new \Eden_Amazon_S3();to indicate you want to load it from the …
Comment by
WanWizard
May 2013
permalink
oil crashes on monolog
See http://fuelphp.com/forums/discussion/12172/v1-6-install-problems-composer-not-installed. There are issues with github today...
Comment by
WanWizard
May 2013
permalink
v1.6 install problems (composer not installed)
It pulls from github, and they've been having issues all day, I can't update some repositories as well. You can try running composer with "--prefer-dist", which will try to find zipfiles instead of cloning git repositories...
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
Ok, thanks for the confirmation. I've pushed the fix to 1.7/develop.
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
cascade_delete only cascades into relations it knows about (i.e. which are fetched). If you go into the delete_user method, and change the query to $user = \Model\Auth_User::query() ->related('metadata') ->select(\Config::…
Comment by
WanWizard
May 2013
permalink
Is it possible to run multiple domains/sites to same fuel setup using nginx and modules?
Ah, ok. That's quite a non-standard setup you've got here. This means you'll need rewrite rules, so you can do - http://admin.example.org => RewriteRule ^(.*)$ index.php/admin/$1 [L] - http://partner.example.org => RewriteRule …
Comment by
WanWizard
May 2013
permalink
exec oil task ignored from controller!?
I see a lot of reports of this issue from Windows users, but not from linux users. It could be that the user apache runs under doesn't have shell access on your server (which would be logical in a hosted environment), in which case it will ne…
Comment by
WanWizard
May 2013
permalink
exec oil task ignored from controller!?
Looks indeed like they've blocked something...
Comment by
WanWizard
May 2013
permalink
Problem with to_array on nested relations
It has nothing to do with the relation. The second time it sees a (set of) "Model_User" object(s), it says "already seen that class", and skips it.
Comment by
WanWizard
May 2013
permalink
exec oil task ignored from controller!?
Might be your exec() then. Are you sure it's available on your server? Some hosting companies cripple their PHP installation with the rediculous idea that it would make their environment safer...
Comment by
WanWizard
May 2013
permalink
Best way to select metadata for user?
For Ormauth, all models are included in the Auth package. If you insist you want your own model, it should extend the Auth one: class User extend \Model\Auth_User {} yours extends \Model, which is not an ORM model, and is not going to work anyway.…
Comment by
WanWizard
May 2013
permalink
Best way to select metadata for user?
You don't have to do that, ORM will take care of that for you. The metadata table is accessable as an EAV (entity-attribute-value) container, so if your user has a metdata property 'fullname', you can access it as if it were a prope…
Comment by
WanWizard
May 2013
permalink
exec oil task ignored from controller!?
Ah, ok. I don't use exec() myself, so I can't help you on this, but I know on some linux flavours you need to use "env FUEL_ENV=production...", perhaps this is the case here?
Comment by
WanWizard
May 2013
permalink
exec oil task ignored from controller!?
I wonder how this can ever work, APPPATH is not the location of the oil script...
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
I think you can backport the class from 1.7/develop without problems, or just switch the entire Auth package to 1.7/develop. We will probably release a 1.6.1 in a week or so, in which the fixes of the last few days will be backported.
Comment by
WanWizard
May 2013
permalink
Problem with to_array on nested relations
I think the issue is here that you have the same Model in the query twice. to avoid recusive issues, to_array() keeps track of the models it has processed. Which I think accounts for the fact that the second 'user' object is skipped.
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
With the current (1.7/develop) Ormauth Login driver, that should work. It assumes additional data passed are metadata values, but since they are set in exactly the same way as model properties, they would be set correctly. With Simpleauth additiona…
Comment by
WanWizard
May 2013
permalink
Problem with to_array on nested relations
Excluding elements only works on data in the current model, it doesn't work on related data. Please create a feature request for this, with a use-case, at https://github.com/fuel/core/issues
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Doesn't that do exactly the same? It just installs composer centrally and gives you a start script so don't need the php prefix bit (like we do with oil).
Comment by
WanWizard
May 2013
permalink
Problem with to_array on nested relations
Which version of Fuel? Have you looked at the SQL generated (enable the profiler and db profiling to see it) to see if you can spot what could be wrong?
Comment by
WanWizard
May 2013
permalink
Easy way to throttle API requests?
What do you mean by request throttling? Limit the number of requests per second? It total? or per client?
Comment by
WanWizard
May 2013
permalink
oil and Session
Sessions work with cookies, that take care of the persistence between requests. There is no cookie support on the commandline, so you can't use sessions.
Comment by
WanWizard
May 2013
permalink
Pagination with numbers
Can you be more specific?
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Usually the conflicts are minimal, there isn't a lot of code in the fuel/fuel repo.
Comment by
WanWizard
May 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,368
Last Active
7:53AM
Roles
Administrator