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
Pass a model result as array from controller to view via Ajax
I'm not stopping you, I'm only highlighting best practice. Fuel doesn't care. The only thing you have to look out for is that it outputs exactly what you think it does. As to why you don't get your json returned, I don't kn…
Comment by
WanWizard
March 2014
permalink
Using Validation Class without using Fieldset Class
If you're talking about the v2 packages, pop into IRC and talk to Steve. I haven't used them yet, so I can't help you with it.
Comment by
WanWizard
March 2014
permalink
Pass a model result as array from controller to view via Ajax
Normally, you would not mix REST and non-REST functions in the same controller, but you would have specific controllers for your REST API, which extend Controller_Rest instead of Controller. Output handing of standard controllers isn't designe…
Comment by
WanWizard
March 2014
permalink
Error! Fuel\Core\FuelException [ Error ]: The requested view could not be found: cu/category/index
Or an extension mismatch?
Comment by
WanWizard
March 2014
permalink
Error! Fuel\Core\FuelException [ Error ]: The requested view could not be found: cu/category/index
Rights issue?
Comment by
WanWizard
March 2014
permalink
Using Validation Class without using Fieldset Class
There are no docs yet (there is no new documentation system yet). You can find the repository here: https://github.com/fuelphp/fieldset It is installable through composer: https://packagist.org/packages/fuelphp/fieldset The repo has a short readme…
Comment by
WanWizard
March 2014
permalink
Using Validation Class without using Fieldset Class
Thanks for the kudos! You should have a look at the Fuel v2 fieldsets, you will love it! They can be fully customized using renderers instead of templates, so you have 100% control over the HTML it will generate for each of the field types.. v2 i…
Comment by
WanWizard
March 2014
permalink
Error when I want to generate a package
Nope, should work fine. So you have to figure out why the APPPATH constant in your oil script is empty (or points to the root). Afaik it should work fine on Windows.
Comment by
WanWizard
March 2014
permalink
Using Validation Class without using Fieldset Class
Why not? A lot of our apps use JQuery, and without problems. It just means that you have to tweak the template that is used to generate the form (in config/form.php), and if you're doing really special stuff, generate the individual fields ins…
Comment by
WanWizard
March 2014
permalink
Error when I want to generate a package
p.s. this also indicates you're using Fuel v1.7.x, and I'm not sure it has (full) package generation support. I think that was added quite recently.
Comment by
WanWizard
March 2014
permalink
Error when I want to generate a package
line 52 does: require APPPATH.'bootstrap.php'; The error says "require(\bootstrap.php)", which would indicate the APPPATH contant contains "\", which is absolutely wrong. It is set on line 35 of the same "oil&qu…
Comment by
WanWizard
March 2014
permalink
Using Validation Class without using Fieldset Class
There should not be any code in a view. If you construct fieldsets in a View, you are not following best practices. And as a side effect, you don't have the fieldset in your controller, where you need it. You can use Validation without a field…
Comment by
WanWizard
March 2014
permalink
How to build an Observer for a second ID in EAV Containers
If you want to follow best practices, there should not be any dependency between the observer and the model. It's probably better to create the EAV objects the old-fashioned way, and not through automatic assignment in the model. So use someth…
Comment by
WanWizard
March 2014
permalink
Using Tabbed Interface for User Profile
The example comes from oil, which generates it, so there's a single view with the form for both create and edit, and code doesn't need to be replicated. It does indeed require the main view to pass data on to the _form view (I personally n…
Comment by
WanWizard
March 2014
permalink
How to build an Observer for a second ID in EAV Containers
Assuming the observer can have some external means of fetching the current level_id, it should be an observer on the EAV model (not on either building or level), that runs on create.
Comment by
WanWizard
March 2014
permalink
Using Tabbed Interface for User Profile
Afaik it works exactly the same as any other view. or something along those lines.
Comment by
WanWizard
March 2014
permalink
Error when adding my own unit tests
I have to pass that on to a PHPUnit expert...
Comment by
WanWizard
March 2014
permalink
Here goes my fourth Framework in four days.
Thanks for the kudos! And we would love that too... :-)
Comment by
WanWizard
March 2014
permalink
How to pass value to select input in a form from controller
View variables are rendered in a local scope (views are rendered in a closure to be exact), so they are not available outside of it. So if you have a variable in your main view, it is not available in a child view, unless you pass it on. So you nee…
Comment by
WanWizard
March 2014
permalink
Orm cuts data in object from query results
I have never seen that before, or experienced in our applications. Why is "from_cache" set to false? That might have something to do with it, it's not reliable for complex queries. And it is virtually never needed, especially not for…
Comment by
WanWizard
March 2014
permalink
Invalidating Orm Cache
Orm's internal caching only exists for the duration of the request (it sole purpose is to make sure you get the same object if you select the same record multiple times), so it is extremely unlikely that this is the cause. Perhaps DB caching i…
Comment by
WanWizard
March 2014
permalink
Upload File Script
@Zaaldian: I couldn't, I haven't touched any Windows in years, and never used XAMPP... ;) @sibinx7: thanks for clarifying!
Comment by
WanWizard
March 2014
permalink
Default parameters in ViewModels
The challenge is that the Viewmodel itself doesn't have a data container, it uses the associated View object to store variables. So you can't set values until you have a View assigned. You could overload the Viewmodel class, add something…
Comment by
WanWizard
March 2014
permalink
Orm cuts data in object from query results
Which version of Fuel?
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
Without knowing what the exact setup is, it is impossible to find a solution. I would contact the hoster, and ask them. They have designed their web hosting platform, so they should be able to tell you rewriting is done on that platform, it's …
Comment by
WanWizard
March 2014
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
2:12AM
Roles
Administrator