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
How to add link to image in css file which is in access folder
Use a relative path: /* custom empty table background */ .dataTables_empty { background: url("../img/table/table-empty.png"); }
Comment by
WanWizard
January 2014
permalink
Ormauth get_groups() not working as expected. Docs example fails.
As you sure that is it? According to the code, get_groups returns array('Ormgroup, $user->group)). $user->group is a one-to-many relation, which means it's an array of zero or more group objects. So $info[1] is not an object, it…
Comment by
WanWizard
January 2014
permalink
How to use OrmAuth
1. Just create a new record in the groups table 2. Same a a group, just create a role record 3. See http://fuelphp.com/forums/discussion/12690/users-and-permissions 4. Technically, there isn't. 5. An arbitrary name. As to Groups vs Roles: a gr…
Comment by
WanWizard
January 2014
permalink
Ormauth get_groups() not working as expected. Docs example fails.
ORM objects are simple (from the outside), every column in the table the object is linked to will be a property in the object. So to get the group name, you do access $object->group.
Comment by
WanWizard
January 2014
permalink
Ormauth get_groups() not working as expected. Docs example fails.
That looks like a copy/paste from SimpleAuth, and is indeed wrong. Ormauth returns Orm models, not strings.
Comment by
WanWizard
January 2014
permalink
Getting an object for a row using find()
Ok, so 'id' is the foreign key? An ORM model has an to_array() method, which can give you the object properties into an array. You can not run a query using ORM that returns an array, it's simply not what an ORM is for. The ORM also …
Comment by
WanWizard
January 2014
permalink
Getting an object for a row using find()
How can a query on 'id' (which I assume is the PK) return 3 rows? And on there other hand, if there are 3, the get() should return 3, this query is as simple as they come. So $data['clubs'] should be an array with 3 Model_Clubs …
Comment by
WanWizard
January 2014
permalink
How to upload from specific input file?
The v1 Upload class is a facade on the Fuel v2 package, which is object driven, and has a File object for each uploaded file. // get the instance $upload = \Upload::instance(). // get all valid file objects $validfiles = $upload->getValidFiles…
Comment by
WanWizard
January 2014
permalink
How to upload from specific input file?
To start with your first post: I don't understand what you are trying to say. You include three file input fields in your form. So a user can upload three files. Nothing you can do about it, as soon as the user hits submit, $_FILES will contai…
Comment by
WanWizard
January 2014
permalink
When is 2.0 released?
There is no release date set yet, and there is still quite a substantial todo list: https://github.com/fuelphp/fuelphp/wiki/TODO---2.0-Alpha Although there are quite a few people already using 2.0 (or packages of it) to build applications, realisti…
Comment by
WanWizard
January 2014
permalink
how to update via ORM with multiple where conditions?
Remember, an ORM is an Object mapper, there is one object for every row in your database table. If you want to update a single entry: // get_one() returns a single model object, or null $object = Model_AF::query()->where('account_id',…
Comment by
WanWizard
January 2014
permalink
Pagination issue...
Also, what do you intend to do with 'offset' => \Pagination::get('offset') )); As you created a pagination object ($pagination) containing your configuration, you can't use static calls because they work on the default …
Comment by
WanWizard
January 2014
permalink
Long execution time when getting user with Warden's ORM Auth package
Please don't post the same question twice, or post in threads that don't have a relevance to the question.
Comment by
WanWizard
January 2014
permalink
DB as_object()
$result will be an array of Model_Users objects. So the same result as Model_Users::find('all') (with this query).
Comment by
WanWizard
January 2014
permalink
Changing password without confirm old password
There is an example of an Auth controller in the docs, including registration and password recovery. See http://docs.fuelphp.com/packages/auth/examples/auth.html#/password-recovery
Comment by
WanWizard
January 2014
permalink
Pagination issue...
Only obvious thing I see at the moment is that you have defined an impossible uri_segment. Your pagination URL contains only 1 segment, so it can't create segment 3 (as 2 is missing).
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
That didn't solve the problem, that worked around it. You have a serious problem somewhere, either in your installation or with your host. And you need to sort that out, not change framework code. Have you tried to deploy the 1.7.1 zip direct…
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
What solved the initial error btw? How come the Inflector class is found al of a sudden?
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
I don't know. The ReflectionClass is there, it has a method called newInstance, so it should not give that error.
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
Then I'm out of idea's. The error is Call to undefined method ReflectionClass::newInstance() but the method is absolutely there.
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
According to your phpinfo(), that PHP version is compiled with Reflection support, so there is reason why it should not be there. Can you upload a test file, containing
Comment by
WanWizard
January 2014
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
You are sure you're running PHP5? That is a built-in class, so it should always be there: http://uk1.php.net/manual/en/reflectionclass.newinstance.php
Comment by
WanWizard
December 2013
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
No problems with permissions (no read rights means it can't be found too)?
Comment by
WanWizard
December 2013
permalink
Router ErrorException [ Fatal Error ]: Class Inflector not found
Really no idea. You're sure the deployment went ok, and the ./fuel/core/classes/inflector.php file is actually there?
Comment by
WanWizard
December 2013
permalink
Issue Regarding system's timezone settings. Time Zone Error
Yes, Fuel v1 requires 5.3.3. as minimum version. The gmt_offset is in seconds, so 3600 shifts the time one zone east. If you are at +5, it should be 18000.
Comment by
WanWizard
December 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,371
Last Active
May 14
Roles
Administrator