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
Persistent Orm Cache
I don't really think that is the way to go, runtime caching is something very different (it's optimization really, not actually caching) from persistant caching. I would suggest approaching this like query caching: cache output by a key b…
Comment by
Jelmer Schreuder
November 2011
permalink
using parser package
Lol, that's not the issue - Dan probably forgot to initialize those submodules before creating the zip.
Comment by
Jelmer Schreuder
September 2011
permalink
\ before Class Referances
http://nl.php.net/manual/en/language.namespaces.basics.php#example-225 Edit: also moved this to general as it has nothing to do with Auth.
Comment by
Jelmer Schreuder
November 2011
permalink
weird subselect
Searching helps as I've explained this about 20 times already. But in short: if you place the limit on the join result you can't fetch to-many relations as they would limit the number of rows instead of the number of returned objects. For…
Comment by
Jelmer Schreuder
November 2011
permalink
FuelPHP is it ready for real world applications?
In all fairness: the Query Builder in Fuel is a lot faster than CI's QB - which is responsible for an important part of the speed. Here's how I approach using an ORM: In the admin area Use it as much as you like, won't get any massi…
Comment by
Jelmer Schreuder
October 2011
permalink
FuelPHP is it ready for real world applications?
In RC1 to-many relations only return 1 object, no matter how many were fetched - a bugfix gone wrong just before the RC release.
Comment by
Jelmer Schreuder
October 2011
permalink
Model Edit - "Property "updated_at" not found for Model_Cv_Question"
The column needs to be present in the table, no way to save it otherwise. Adding it to the model is like any other property: http://fuelphp.com/docs/packages/orm/creating_models.html#propperties Or if you don't use the $_properties setting an…
Comment by
Jelmer Schreuder
October 2011
permalink
Model Edit - "Property "updated_at" not found for Model_Cv_Question"
You've probably added the Observer_UpdatedAt without having added a property for it to use.
Comment by
Jelmer Schreuder
October 2011
permalink
FuelPHP is it ready for real world applications?
1.0 has been final for months and gotten a bugfix release 1.0.1, little beta-tagged about that. Having said that: 1.1 is probably more stable, even though some of the new code is being tested in the current RC release most of it has been used for m…
Comment by
Jelmer Schreuder
October 2011
permalink
order_by on main table
Looked into it, doesn't look like there was ever a good reason for this so it's solved in 1.1-dev.
Comment by
Jelmer Schreuder
October 2011
permalink
Validation trim and updating Input values
$_POST isn't edited, it's the input and shouldn't change during a request as the request input doesn't change during a request - that's just logically wrong. If you want the values as they're returned by validation use…
Comment by
Jelmer Schreuder
October 2011
permalink
Modules 1.1-RC1 - cannot get rid of warnings - example required
One correction I also made in my post above: where I said Request I meant Response instance for action returns. Errors of this type are mostly the result of a partial upgrade, or something went wrong with pulling the core because you had made chang…
Comment by
Jelmer Schreuder
October 2011
permalink
Modules 1.1-RC1 - cannot get rid of warnings - example required
Not sure what is happening but all that is not true: 1. Action methods must have a return value that is either a Response, View or ViewModel instance or a string. Not having that is only supported for backwards compatibility. 2. The Controller::aft…
Comment by
Jelmer Schreuder
October 2011
permalink
How to get controller name in views
I wasn't being sarcastic, I may have doubled down a bit but how the framework works is important. But also one thing you seem to miss is that segments don't necessarily match the module/controller/action, when using routing it may get to …
Comment by
Jelmer Schreuder
May 2011
permalink
How to get controller name in views
Except that it's used in request class to call the action from that controller which is internal fuelphp problem? Actually the primary reason for the existance of the properties is internal, that they're also available is secundairy. …
Comment by
Jelmer Schreuder
May 2011
permalink
Code question
We have some set coding guidelines among which are no single line if-statements, that all parentheses are on a line of their own and that exclemation marks get spaces on both sides. The and/or syntax is shorthand-if that is still in line with these…
Comment by
Jelmer Schreuder
October 2011
permalink
Code question
It is indeed an old version, new one is here: https://github.com/fuel/fuel/blob/1.1/master/public/index.php It's pretty simple: the right side of any logical "and" statement is only executed when the left side evaluated to true. Oth…
Comment by
Jelmer Schreuder
October 2011
permalink
Validating a Unique Filed
You need to add Myvalidation as a callable to the Validation instance, otherwise there's no way the Validation could ever find the rule. $fieldset->validation()->add_callable('Myvalidation'); Or add the rule to your own Va…
Comment by
Jelmer Schreuder
October 2011
permalink
No Results when trying to use WHERE
You use either direct querying by using find() with params or you use method chaining which needs an explicit execute. All of this is pretty well illustrated by well commented examples in the docs: http://fuelphp.com/docs/packages/orm/crud.html#read
Comment by
Jelmer Schreuder
October 2011
permalink
No Results when trying to use WHERE
Did you put ->get() at the end? You need to tell the query to execute, otherwise you're left with just a Orm\Query object.
Comment by
Jelmer Schreuder
October 2011
permalink
FrozenObject error when saving object
Only reason I can think of this might happen is when you tried to save, caught an exception and retried saving. But I think I already put safeguards against that in place. Don't have the time to research this now, if you want to be sure I don&…
Comment by
Jelmer Schreuder
October 2011
permalink
Why do get methods return by reference?
Pretty simple reason, otherwise you couldn't do this: $view->array['key'] = 'something'; As the array is returned by reference you can deal with it just like an actual object property. So yes the benefits far outwei…
Comment by
Jelmer Schreuder
October 2011
permalink
Query with relation broken in 1.1
to-many only takes one row now, just fixed this in 1.1/develop branch.
Comment by
Jelmer Schreuder
October 2011
permalink
Best practise / advices: Using the cache
In case of the file driver, the expiration timestamp is part of the cache file header, so it should be possible to detect the expiration, delete the cache file, and return false. That's how it works, with auto-expiration I meant including …
Comment by
Jelmer Schreuder
October 2011
permalink
Best practise / advices: Using the cache
You need something with auto-expiration, file cache for example doesn't support that. Memcached supports that, Redis as well and APC caching does (you need 1.1 for that though). I'd let searches expire within an hour or so. You'll ha…
Comment by
Jelmer Schreuder
October 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