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
Extending \Fuel in 1.1 > Problem
Did you check out: Fuel::add_path() (docs, code) I've found the problem with Fuel class not being extendable, will be solved soon.
Comment by
Jelmer Schreuder
October 2011
permalink
Caching results in high memory usage
You're not going to get to 45 MB because of caching as you suggest, I have caching enabled and get about a memory usage of 2.5 to 4.48 MB. So that suggestion is pretty much pure nonsense, if your stuff goes up to 45MB there's more going o…
Comment by
Jelmer Schreuder
October 2011
permalink
Running PHPUnit Tests via Oil
It's a problem in Fuel 1.0 on windows, fixed in the 1.1/develop repo by this: https://github.com/fuel/oil/commit/00044bbf80ed991c87be47ff6de7a89133ba9018
Comment by
Jelmer Schreuder
October 2011
permalink
Understanding Auth:: what is login_hash used for?
You'll have to write it yourself, so give it any name you like.
Comment by
Jelmer Schreuder
May 2011
permalink
Static model instance variables?
That's a pretty basic mistake, check out http://nl2.php.net/manual/en/language.oop5.static.php
Comment by
Jelmer Schreuder
October 2011
permalink
I'm confused about groups and roles
If you create your own parent controller there's no reason that couldn't have a router() method, doesn't matter if you use a Template controller, Rest, or something else.
Comment by
Jelmer Schreuder
October 2011
permalink
I'm confused about groups and roles
http://fuelphp.com/docs/general/controllers/base.html
Comment by
Jelmer Schreuder
October 2011
permalink
I'm confused about groups and roles
Not all that special, basicly boils down to this: public function router($method, $args) { try { return call_user_func_array(array($this, $method), $args); } catch (AccessDeniedException $e) { return ViewModel:…
Comment by
Jelmer Schreuder
October 2011
permalink
I'm confused about groups and roles
My controller methods are loaded through a Controller router() method that catches Exceptions, in this case AccessDeniedException that is thrown by the Model when a user with insufficient rights tries to access a model he doesn't have access t…
Comment by
Jelmer Schreuder
October 2011
permalink
I'm confused about groups and roles
Rights given to '#' are given to all groups, it's a wildcard that doesn't need to be assigned to groups. Location and rights have no absolute meaning, they're what you make them mean. A common way to use them is as location…
Comment by
Jelmer Schreuder
October 2011
permalink
Is it a good idea to add a "Procedural helpers" section in the docs that outlines all the helpers?
There's no reason for that, they're already documented with the classes they provide shortcuts for. There's no reason to search for "procedural helpers", you're not going to use something because its got a procedural …
Comment by
Jelmer Schreuder
October 2011
permalink
Inner join
I've updated the repo to include this.
Comment by
Jelmer Schreuder
September 2011
permalink
Inner join
It actually wouldn't be that hard to add support for it, there's already an array passed for where & order_by conditions. Allowing a join_type key in there wouldn't be much trouble. Change for example this line: https://github.co…
Comment by
Jelmer Schreuder
September 2011
permalink
Inner join
Can't be changed. It's indeed a left join while I thought we had changed that to inner joins a long time ago, don't have a clue why we changed it back tbh.
Comment by
Jelmer Schreuder
September 2011
permalink
Understanding Auth:: what is login_hash used for?
The table should have the login_hash, the user_id, the login-time and possibly the user's IP and user agent. What you do after that is check if there's a row in your logins table for which the login_hash, user_id (and possibly IP, user_ag…
Comment by
Jelmer Schreuder
May 2011
permalink
Weird recursion with Validation
$val->errors() will return an array of Validation_Error objects, each of which will contain references to the Fieldset it belongs to and to the field that caused the error. Both of those contain references to eachother which print_r/var_dump wil…
Comment by
Jelmer Schreuder
September 2011
permalink
Accessing different parts of ORM object
Relations are available as object properties, in this case it'd be $model->kr_website_data which will give you the array. Or $model->kr_website_data[4] which will give you the 1 instance in there, but you'd have to know the instance…
Comment by
Jelmer Schreuder
September 2011
permalink
ORM inserts with relationships
Michael Kreis wrote on Wednesday 28th of September 2011: Jelmer Schreuder wrote on Friday 20th of May 2011: The problem is that the relation needs the primary keys in order to be established, but to get to that the model_to still had to get sav…
Comment by
Jelmer Schreuder
May 2011
permalink
ORM + relations + order_by?
Take a look at the examples in the docs: http://fuelphp.com/docs/packages/orm/crud.html#read It's only supported for eager loading, lazy loading as in your example just grabs the relation without additional conditions.
Comment by
Jelmer Schreuder
September 2011
permalink
fuel 1.1 dev
Dmitry Barko wrote on Sunday 25th of September 2011: And what about docs? http://fuelphp.com/docs/classes/cache/advanced.html http://fuelphp.com/docs/packages/auth/types/login.html http://fuelphp.com/docs/packages/auth/types/acl.html etc. TOD…
Comment by
Jelmer Schreuder
September 2011
permalink
fuel 1.1 dev
1.1 is pretty stable but big changes might happen and from time to time there might be a bit of not-fully tested or unfinished code in there. It always has the latest bugfixes, but it's also where changes happen. For production sites I'd …
Comment by
Jelmer Schreuder
September 2011
permalink
Fieldsets and ORM
'type' and 'options' need to be under a key named 'form' and that's only supported as of 1.1 (which is still in development). You put in 'varchar' for 'username' but that's a data_type and…
Comment by
Jelmer Schreuder
September 2011
permalink
Auto checking CSRF Token
As I said: autoloading makes sure the token is generated even when it's not yet been requested by PHP. Which I need because many forms may be loaded by AJAX calls and take their token from the cookie, which wouldn't exist yet if CSRF is…
Comment by
Jelmer Schreuder
September 2011
permalink
Auto checking CSRF Token
I'm against auto-failing because you can't control it and always end up in the default error template. Autoload CSRF is to have the CSRF key generated even when it's not used in PHP, it's not pointless and I'm actively usin…
Comment by
Jelmer Schreuder
September 2011
permalink
$this->template->menu becomes quoted when rendered
http://fuelphp.com/docs/general/security.html#output http://fuelphp.com/docs/general/views.html#security
Comment by
Jelmer Schreuder
September 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