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
Validation which depends on other values
You can access the current validation instance using $validation = \Validation::active(); And using that you can retrieve a validation field object using $field = $validation->field('fieldname'); You can then retrieve it's valu…
Comment by
WanWizard
July 2015
permalink
Integrating Fuelphp in Wordpress
I can't help you any further, WordPress is something I wouldn't touch with a 10 foot pole...
Comment by
WanWizard
July 2015
permalink
Class not found in live environment
This is not according to the Fuel coding standards: Model_SchoolDay which should be ucfirst, and should be defined in a file that is completely lowercase, including the path. So my guess would be you're developing on Windows (or possible on a …
Comment by
WanWizard
July 2015
permalink
Problem with pagination
Then it's time for an upgrade, or if not possible, backport the pagination class from the current release. The old version was riddled with bugs, it was rewritten for I think 1.6.
Comment by
WanWizard
July 2015
permalink
Integrating Fuelphp in Wordpress
Which Fuel version are you on? That example seems to be from before 1.7, current versions don't require the autoloader in the app bootstrap anymore. Just use the app/bootstrap that was part of your Fuel install, and only add the line that l…
Comment by
WanWizard
July 2015
permalink
Problem with pagination
Which Fuel version are you on?
Comment by
WanWizard
July 2015
permalink
Fatal error in my application (in production only)
This is always a challenge to find, since PHP is already is shutdown mode, and the exception handler isn't operational anymore, so PHP can not give a proper error message. 5.3.5. is an antique, but it should be able to run Fuel without problem…
Comment by
WanWizard
July 2015
permalink
Fatal error in my application (in production only)
What version of Fuel are your using? What version of PHP does 1&1 run? And what type of webserver? Are you sure all your file rights are set ok? You get this error if an Exception occurs in PHP's shutdown event. FuelPHP uses this to clean…
Comment by
WanWizard
July 2015
permalink
How to add uploaded file information using model method "add" to data base table
Ok, glad you've got it covered.
Comment by
WanWizard
July 2015
permalink
What could be a reason user automatically logs out after login?
Issue with the session? No session loaded?
Comment by
WanWizard
July 2015
permalink
How can models be updated using php oil?
Without having the table you mean, no, that does not exist (as part of the framework).
Comment by
WanWizard
July 2015
permalink
Problem with pagination
That is weird. Are you sure there is data for a third page? Pagination will check if that is the case, and if so it will adjust the page counter.
Comment by
WanWizard
July 2015
permalink
How can models be updated using php oil?
There is a task called "fromdb", that will generate a migration from an existing table. You will have to verify the result, not all info needed can be extracted from the database...
Comment by
WanWizard
July 2015
permalink
Auth::login() function vs Auth::force_login()
How did you create the user you're using to try to login? If you didn't use Auth::create_user(), perhaps you used the wrong hashing algorithm?
Comment by
WanWizard
July 2015
permalink
How to run module migrations programatically?
Let's keep the answers in one place, so see the response there.
Comment by
WanWizard
July 2015
permalink
Presenter in base controller works not as expected
Fuel uses a model of late rendering for both views and presenters, which means the object is only rendered when it has to be. This also means that your Presenter's before is only called when the object is rendered, which is long after your con…
Comment by
WanWizard
July 2015
permalink
model self relation
If you want tree's you'd better look at nested sets. You can define self-relations without problems in ORM, but you can not construct a query that automatically and recusively returns the complete tree regardless of the depth.
Comment by
WanWizard
July 2015
permalink
model self relation
You mean you have a table that has a recursive relation, i.e. one-to-many relation to itself?
Comment by
WanWizard
July 2015
permalink
Use two auth drivers for two database tables
As I already said, if you have two SEPARATE logins, you can not use this system. Multiple driver support is designed for a single login towards multiple backends that may contain the same user, for example: first try the corporate Active Directory,…
Comment by
WanWizard
July 2015
permalink
How to add uploaded file information using model method "add" to data base table
If you're input is invalid, the ORM will throw a database exception. If the input is valid from a database point of view, but the INSERT failed, save() will return false. If save() returns true, the INSERT was a success. If your input contains…
Comment by
WanWizard
July 2015
permalink
How to add uploaded file information using model method "add" to data base table
forge() requires an assoc array as input. Any keys in that array that don't map to column names will be stored as additional object properties, so it doesn't matter that the array contains keys that do not map to columns. The array may n…
Comment by
WanWizard
July 2015
permalink
How to add uploaded file information using model method "add" to data base table
You create an object, but don't assign it to anything, and you don't save it either. $photo = Model_Products_Photo::forge( $products_photos[0]); $photo->save();
Comment by
WanWizard
July 2015
permalink
Migration creates unnesessary tables
That'll do I guess... ;)
Comment by
WanWizard
July 2015
permalink
how i can execute a module and get output?
As I described, using an HMVC call.
Comment by
WanWizard
July 2015
permalink
Use two auth drivers for two database tables
The problem is that you need a local unique user id, which you will never have with multiple backends for logins. Our Opauth implementation solves that using the users_providers table, which will map a master user to a "dummy" local user.…
Comment by
WanWizard
July 2015
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,369
Last Active
6:13PM
Roles
Administrator