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
One to Many in package model extend to app model?
This error is probably generated by the Warden code itself, which runs in the \Warden namespace. Because you haven't defined the 'model_to' in your relation, it will probably try to find Model_Property in the \Warden namespace, and n…
Comment by
WanWizard
October 2012
permalink
create new user
Creating a new user is as simple as http://docs.fuelphp.com/packages/auth/simpleauth/login.html#/method_create_user You'll have to write the interface around it. You can find an example in our Depot project on github, which contains a registra…
Comment by
WanWizard
October 2012
permalink
I need help with a the DB class
$result = DB::update('scoreboard') ->value("score", DB::expr("score + 1")) ->where('uid', '=', $uid) ->execute(); See http://docs.fuelphp.com/classes/database/usage.html#/es…
Comment by
WanWizard
October 2012
permalink
Controller Hybrid and template object
If you call the controller using AJAX, the Hybrid (and REST) controller assume you want to return data (in the form of xml or json). It therefore doesn't setup any views, that would be a wasting CPU cycles as you're not going to generate …
Comment by
WanWizard
October 2012
permalink
Get events I'm invited to, and attending only.
From a design point of view, I would say that 'invited' and 'attending' are statusses of the relation between user and event. So I would create the following: Users -> has_many belongs_to Users Events -> has_many belongs…
Comment by
WanWizard
October 2012
permalink
Controller Hybrid and template object
Start by telling us what's in that before(), because I might be bad at guessing. But my guess is that you either don't call parent::before(), or you do it after that line, so $this->template doesn't contain the view object.
Comment by
WanWizard
October 2012
permalink
Hello
What are you trying to do? Can you post the code on http://scrp.at and tell us the line that generates that error?
Comment by
WanWizard
September 2012
permalink
How can I get $name of Fieldset instance?
Seen it, thanks.
Comment by
WanWizard
October 2012
permalink
How can I get $name of Fieldset instance?
There is currently no method to retrieve the name of a fieldset instance. If you require this, please create an issue for it on http://github.com/fuel/core/issues so it can be picked up.
Comment by
WanWizard
October 2012
permalink
Twig and outputting a form but getting plain text
The default security model of FuelPHP is that everything send to a view is encoded to prevent html or js injections. This means that if you intentionally pass html (or js) to a view, you have to disable encoding for that variable. return Response…
Comment by
WanWizard
October 2012
permalink
fuel-package Twitter (token issues)
Quickly peeked in the code, and I wonder if that has ever worked. I can't work out how $token can ever be an object there...
Comment by
WanWizard
October 2012
permalink
Need help getting started
You can't just simply replace classes and hope it works, Fuel's architecture is fundamentaly different from Zend Framework.
Comment by
WanWizard
October 2012
permalink
Need help getting started
What are the questions you have? Perhaps you can pop into IRC (#fuelphp), there are always people online to help you out.
Comment by
WanWizard
October 2012
permalink
Random LIMIT 1 being added and stuffing up queries
Looking again at the query you posted, I noticed it doesn't reference 'users' at all, but 'sessions' twice. But your ORM query does. The subquery should contain a subquery on users, because that's what you relate to. S…
Comment by
WanWizard
October 2012
permalink
Config options for selecting redis database
There is currently no support for multiple databases per connection for the redis cache driver. Please create a feature request for this specifying the use case: http://github.com/fuel/core/issues
Comment by
WanWizard
October 2012
permalink
How do I change password on this forum?
Yes, but very well hidden: http://fuelphp.com/edit-profile
Comment by
WanWizard
October 2012
permalink
count(static::$_rules) < 0 in class Model_Crud
I've passed this on to the developer.
Comment by
WanWizard
October 2012
permalink
Passing array from top controller to module.
Assuming your module controllers are called using a second request (an "HMVC" call), there is no need to change things, passing data to requests is fully supported. You can pass data on to the child request as a parameter of execute() met…
Comment by
WanWizard
October 2012
permalink
First module class
@Potreb, afaik there is no such thing as "upload.path" in the config. If you want to set it, that code works fine. You can get it again using Config::get('upload.path').
Comment by
WanWizard
October 2012
permalink
First module class
keevitaja wrote on Saturday 6th of October 2012: i'm just curious why do you need to define const DS while you could just use const DIRECTORY_SEPARATOR We're coders, and therefore lazy. Fuel uses DS becaue it is a lot shorter, it also …
Comment by
WanWizard
October 2012
permalink
Wrap Fieldset elements with divs
If you don't build in your view (which is the preferred solution) but generate the HTML in your controller, you'll have to disable output escaping when passing it. Fuel by default escapes everything sent to a view. $myview->set('…
Comment by
WanWizard
October 2012
permalink
Random LIMIT 1 being added and stuffing up queries
This has been explained a million times. The ORM is NOT a query builder. it's an ORM. One of it's jobs is to guard the integrity of the data. If you limit on the ourside you get incomplete results (if your related table contains more reco…
Comment by
WanWizard
October 2012
permalink
use my own hash method
You can extend any of the Auth classes in your app, and overload it's methods. See the section in the docs about extending (http://docs.fuelphp.com/general/extending_core.html), which is applicable to package classes too (if they are added to …
Comment by
WanWizard
October 2012
permalink
Random LIMIT 1 being added and stuffing up queries
You rewite sessions using ORM because the existing ones are "overkill"? Ah, well... A find() is always limited to one, with one exception: find('all'). The limit is added because you create a join, which can potentionally result…
Comment by
WanWizard
October 2012
permalink
Always load language file
It is never a good solution to start hacking code to work around something. Instead try to understand what goes wrong, and either fix it if it's a bug in your code, or report it if we need to fix something. What version of Fuel are we talking …
Comment by
WanWizard
October 2012
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,394
Last Active
July 4
Roles
Administrator