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.
Jelmer Schreuder
Fuel core developer, check my bio on the about page.
Discussions
1
Comments
792
Activity
Find array problem
$selected = Model_Category::query()->where('category_id', 'IN', Input::post('category'))->get();
Comment by
Jelmer Schreuder
August 2011
permalink
ORM Limits and Related Tables
Yeah, just refer tot the topic in your issue. Bottom line is: issues I don't forget, topics I forget after replying. Important is that you don't take the array input as the default. Method chaining off the Query object is the primary way …
Comment by
Jelmer Schreuder
July 2011
permalink
Packages, Namespaces, and Re-usable Code
You can not namespace them in which case you don't need to add the core namespace, or you can namespace them and you have to include the namespace while registering them. The advantage of namespacing them is that it's better practice (all…
Comment by
Jelmer Schreuder
August 2011
permalink
Find array problem
Not sure what you were expecting but the first param of Orm\Model::find() is either 'all'/'first'/'last' or a primary key (which can be anything, including an array as there might be mulitple PKs). This works as the 2 …
Comment by
Jelmer Schreuder
August 2011
permalink
ORM Limits and Related Tables
Check my earlier comment on the issue as to why this solution was chosen and what other possibilities there are. Currently I have very little time and as no one ever created an issue about this it's not anywhere near my radar once I have more …
Comment by
Jelmer Schreuder
July 2011
permalink
Packages, Namespaces, and Re-usable Code
Scott Travis wrote on Wednesday 31st of August 2011: More specific questions are "what is a namespace?" A native PHP 5.3 concept: http://nl3.php.net/namespaces and "why doesn't Fuel just auto-detect and make usable all of…
Comment by
Jelmer Schreuder
August 2011
permalink
How to optimize fuel?
Fuel itself is very lightweight, thus the optimization you need will be that of your own code. Write optimal PHP and Fuel won't get in your way performance wise.
Comment by
Jelmer Schreuder
August 2011
permalink
Multiple PK's
That should work without any trouble, the system was setup with support for multiple PKs (if it's a string it's cast to array($string)).
Comment by
Jelmer Schreuder
August 2011
permalink
Core extension not working
If the autoloader can't find it you didn't name the file right or didn't name the class right. - class MyHtml should be at "app/classes/myhtml.php" (fully lowercase path!) and may extend either Fuel/Core/Html or Html - cl…
Comment by
Jelmer Schreuder
August 2011
permalink
Module containing underscore and namespaces.
It's a known limitation, if you know a way to do it in nicely we're always open to suggestions (read: pull-requests). Fair warning: we won't sacrifice a shitload of performance or take some ugly hacks into the core to satisfy a very…
Comment by
Jelmer Schreuder
August 2011
permalink
A proposal for caching ORM queries
but when i send several requests (eg: 1000 request) to the page uses this caching solution, memory usage and total time increases too this solution increases memory usage and total time for me, at least 30% whether webserver responses one reque…
Comment by
Jelmer Schreuder
August 2011
permalink
New versions of fuelphp
Basicly it comes down to this: Version numbers: x.y.z 1.0.z = bugfixes & security fixes 1.y = small api changes, mostly nothing that can't be fixed by a project-wide find/replace x.0 = full new version, everything may change Any method …
Comment by
Jelmer Schreuder
August 2011
permalink
Validation in Model
http://fuelphp.com/docs/packages/orm/observers/included.html#os_validation Or use: $fieldset_instance->add_model('Classname');
Comment by
Jelmer Schreuder
August 2011
permalink
Different type of actions in same controller
I should have been more specific: with that statement you disable the template for the Controller_Template, you still won't have the response function as that's part of the Controller_Rest. You can convert output to the correct format usi…
Comment by
Jelmer Schreuder
August 2011
permalink
Different type of actions in same controller
$this->auto_render = false;
Comment by
Jelmer Schreuder
August 2011
permalink
A proposal for caching ORM queries
@bperin I like the basic idea but it might be better to make this a Query property and have get()/get_one() attempt cache before running the query. Which would give you a query like: $comments= Model_Comment::find() ->related(…
Comment by
Jelmer Schreuder
August 2011
permalink
Extending Validation class
Have you checked if you can reach the class using normal means? This exception means the autoloader can't find the class. The fault is probably somewhere in either the classname or path, or there's a namespace above it. The Validation cla…
Comment by
Jelmer Schreuder
August 2011
permalink
Error on version 1.0.1 install
Are you downloading the right file? Or are you pulling the correct branch? Dan only made the changes to do with forge() instead of factory() after releasing 1.0.1 so I kinda doubt that's in the official download...
Comment by
Jelmer Schreuder
August 2011
permalink
Str::truncate
Bug reports should go into the issue tracker on Github.
Comment by
Jelmer Schreuder
August 2011
permalink
Cache Driver -> APC
No plans, but it's likely there will be one sooner or later. Write it up and pull-request if you need it, that's how a community framework like Fuel grows.
Comment by
Jelmer Schreuder
August 2011
permalink
Routing: replace hyphens with empty string in method/actions
I don't have time to look into this right now, but basicly this is just a preg_match pattern that is parsed here: https://github.com/fuel/core/blob/master/classes/route.php#L156 As far as I see the whole Route class does nothing with hyphens, …
Comment by
Jelmer Schreuder
August 2011
permalink
Performance
That tells everybody exactly nothing without anything to compare it to. Even comparing to a simple PHP page isn't fair if that page doesn't take care of stuff like security, auth and DB. All of this is only meaningfull if we know what you…
Comment by
Jelmer Schreuder
August 2011
permalink
Multipart form-data with Fieldsets
The enctype is part of the attributes for the form, thus it would be $fieldset->set_config('form_attributes', array('enctype' => 'multipart/form-data'));
Comment by
Jelmer Schreuder
August 2011
permalink
bug in file class
This bug is already in the bugtracker, will be fixed soon for the develop branch. If you find a bug it's always best to check the github bugtracker (it has a search function) and if it's not in there to report it there. We don't acce…
Comment by
Jelmer Schreuder
August 2011
permalink
Error 2048 - Declaration of before() should be compatible with that of Controller_Template::before()
@WanWizard should it even be there? before() always gets called without params, thus allowing it to take params seems useless? Or am I mistaken?
Comment by
Jelmer Schreuder
August 2011
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
Jelmer Schreuder
Joined
January 2011
Visits
7
Last Active
May 2016
Roles
Administrator