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
Why is my data not transfered to the view?
use set_global('monkey', Model_Monkey::find($id)); instead of using set().
Comment by
WanWizard
December 2012
permalink
Fuel Theme tutorial ? Best practice example for Fuel Theme?
Don't know if one exist. If you don't mind diving into code, check out http://github.com/fuel/depot. A bit outdated atm, but it should give you an idea on how it works...
Comment by
WanWizard
December 2012
permalink
Why is my data not transfered to the view?
You're loading _form using render() from your edit view. Those are two different Views, each with their own local variable context. A variable set on one view isn't available in another, unless you have used set_global().
Comment by
WanWizard
December 2012
permalink
Fieldset Class does not add id to form tag
lol. I like questions that are solved before I can reply... :-)
Comment by
WanWizard
December 2012
permalink
Response status of a REST controller if format not supported or not set
Note that your method should return the return value of $this->response(), if not the after() method will construct a new response due to a lack of response from your method. Post your method on http://snipr.it so I can have a look. Your method…
Comment by
WanWizard
December 2012
permalink
How to setup checkbox property to accept 0 or 1 for values
That's unfortunately not something we can do anything about. The input tag type "checkbox" is designed so that it's not present in the posted data when not checked. If would have been a lot easier if you would have been able to…
Comment by
WanWizard
December 2012
permalink
Is there ability to set empty value for select option?
That was a bug in the array_to_attr() helper function (which is in fuel/core/base.php), which is fixed in 1.5/develop. See https://github.com/fuel/core/commit/dfe71da5da48557c33c3c21f484f716649144ce1 if you don't want to move your app to 1.5/d…
Comment by
WanWizard
December 2012
permalink
Asset::render('something') always return empty
Ah, you've been caught by lazy rendering! If you have build your own templating system using plain views, you have the problem that parent views are always rendered before child views. Quite logical if you think about it, it doesn't know …
Comment by
WanWizard
December 2012
permalink
Why is my template content showing up on one server and not the other?
If this is the result of a single browser request, it could be that some assets are missing or permissions on assets are wrong. In the default .htaccess, assets are excluded from rewriting to index.php by a "file-exists" check. If that fa…
Comment by
WanWizard
December 2012
permalink
Create Table When Using 'oil generate model' Confusion
Cool. Happy codin' !
Comment by
WanWizard
December 2012
permalink
Asset::render('something') always return empty
Sounds logical, but that would mean that echo Asset::render('header');would never work. And it works fine here, I use that on a daily basis. Looking deeper into the code, you'll that before it gets to this line, it fetches informatio…
Comment by
WanWizard
December 2012
permalink
Missing argument 1 for Fuel\Core\Asset::render()
1.5/develop has public static function render($group = null, $raw = false)so it should be optional. I ran a "blame" on asset.php, the optional value has been introduced on 2012-11-16. Which is after 1.4 was released, so it's in 1.5/d…
Comment by
WanWizard
December 2012
permalink
Create Table When Using 'oil generate model' Confusion
I haven't had time to figure out how to add a 'code' button to this editor, and the forum maker isn't really helpful... I click on the "Show source" button, then enclose the code in ... . What version of Fuel are you …
Comment by
WanWizard
December 2012
permalink
Response status of a REST controller if format not supported or not set
It will return HTML if you request the method by the browser, as that's what the HTTP_ACCEPT header says you accept. In normal circumstances it will never reach the "if all else fails" bit... So when and why do you think you get an u…
Comment by
WanWizard
December 2012
permalink
Response status of a REST controller if format not supported or not set
There is always a valid format, if all else fails it will fall back to the format defined in the rest config file, which is 'xml' by default. So your case isn't really valid, if you want a specific format you'll have to check $…
Comment by
WanWizard
December 2012
permalink
Create Table When Using 'oil generate model' Confusion
Checked 1.4 as well, which generates exactly the same code.
Comment by
WanWizard
December 2012
permalink
Create Table When Using 'oil generate model' Confusion
If I do that here (using 1.5/develop at the moment), it generates:
Comment by
WanWizard
December 2012
permalink
Error by using Response::redirect before Session::set
Your code snippet doesn't use the session class, so that is absolutely not the cause of the problem. Passing validation objects to a view is unrelated to the error message.
Comment by
WanWizard
December 2012
permalink
Error by using Response::redirect before Session::set
What same problem? Can you be more specific? What are you doing? What happens?
Comment by
WanWizard
December 2012
permalink
Long execution time when getting user with Warden's ORM Auth package
I understand that. As said, I don't use it, so I don't know what Warden does exactly. If it's a simple query on a single table, they only reason for the time difference could be object instantiation. As a test, you can run the same …
Comment by
WanWizard
December 2012
permalink
Long execution time when getting user with Warden's ORM Auth package
You should not use the ORM for batch operations, it's simply not suited for it. The main reason for this is that the ORM caches all retrieved objects, so even if the query time is acceptable, the memory usage will not be when loading large amou…
Comment by
WanWizard
December 2012
permalink
Is there any example of swfupload
The Session driver needs to know what to look for in the posted data. This is defined in your session config file. "post_cookie_name" most contain the post variable name that contains the cookie, in this case it should be set to "fu…
Comment by
WanWizard
December 2012
permalink
No v1.2.1 in Git repo
We always need contibutors! If you have an idea, create a feature request on github so it can be discussed. As a Workaround, you could create a Controller_Hybrid in app/classes/controller, that extends \Fuel\Core\Controller_Hybrid, and contains a m…
Comment by
WanWizard
December 2012
permalink
'This is not a valid Fuel installation so Oil is a bit lost.'
lol. no problem...
Comment by
WanWizard
December 2012
permalink
Add MongoDB driver for session
Please create a feature request for it: http://github.com/fuel/core/issues
Comment by
WanWizard
December 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,369
Last Active
7:12AM
Roles
Administrator