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
SiliconGulf.com - A School Website
Just an FYI, I'm getting errors on several URLs: http://www.silicongulf.com/events/september [url=http://www.silicongulf.com/events/october ]http://www.silicongulf.com/events/october[/quote][/url] That's a very serious security risk…
Comment by
Jelmer Schreuder
September 2011
permalink
Problem with Query->count() and where conditions
That's fixed in the 1.1-dev branch, may backport it if we release a 1.0.2
Comment by
Jelmer Schreuder
September 2011
permalink
auth check not workin
Make sure though you're not calling perform_check() or logout() directly on the driver, there's logic in Auth_Login_Driver::check() and Auth::logout() that's required for it to login & logout correctly.
Comment by
Jelmer Schreuder
September 2011
permalink
RuntimeException [ Error ]
How about an export method instead of the to_array() method that exports an array on no input or "array" but exports an object of any given type with input (true = alias for stdClass). Should also allow to "add to" an object ins…
Comment by
Jelmer Schreuder
September 2011
permalink
RuntimeException [ Error ]
Once passed to the View it shouldn't be saved, it's very-very bad practice to do so. The problem here is though that it'd be hard to do this without ending up with a huge if/else structure inside htmlentities for each different type …
Comment by
Jelmer Schreuder
September 2011
permalink
RuntimeException [ Error ]
Orm objects extend Iterator and ArrayAccess, allowing them to be cleaned like normal arrays.
Comment by
Jelmer Schreuder
September 2011
permalink
View partials - best way to do them?
foreach($photoset['photoset']['photo'] as $photo) { echo View::factory('articles/_photo', array('photo' => $photo)); }
Comment by
Jelmer Schreuder
September 2011
permalink
RuntimeException [ Error ]
That's not the problem, Orm\Model instances are encoded automaticly and only need to be added to the whitelist or passed through ->set('var', $var, false) when you don't want them output encoded. This is however an Orm\Query …
Comment by
Jelmer Schreuder
September 2011
permalink
Still getting parse error at line 9 after installing PHP 6.0
Actually it's an out-of-devepment version with a state that read "Rest in peace". PHP6 is an abandoned attempt at making PHP fully UTF8, an attempt that failed and put development in a state of confusion for some time. PHP 5.4 is the…
Comment by
Jelmer Schreuder
September 2011
permalink
forum vulnerability
BTW, how come this forum is not FuelPHP-based? You really expect us to create a framework, CMS and forum at the same time? I have a life and a job that have way more priority than what our site runs on. Especially as PyroCMS & its forum mod…
Comment by
Jelmer Schreuder
September 2011
permalink
ORM Limits and Related Tables
Added methods Orm\Query::rows_limit() and Orm\Query::rows_offset() which are keys 'rows_limit' and 'rows_offset' in array usage. Work both exactly the same as their non-rows_-prefixed counterparts. Note: when no subquery is used…
Comment by
Jelmer Schreuder
July 2011
permalink
ORM - Transactional Support?
No, nothing planned. Don't think it should go into the Orm either, you can start/close/rollback transactions with the DB class. Allowing the Orm to do the same would suggest it's a different type of transaction while the Orm would just us…
Comment by
Jelmer Schreuder
September 2011
permalink
Bug or not
There are a few bugs in the logic for complex where queries in v1.0.x, these are fixed in the 1.1/develop branch and may be included if we release a v1.0.2 version.
Comment by
Jelmer Schreuder
September 2011
permalink
where != null
->where('category_id', '!=', null)
Comment by
Jelmer Schreuder
September 2011
permalink
[ORM - Observer validation before_save] How to set validation message?
The Observer_Validation uses an instance named after the Model's class. For validating Model_Example this might look like this: $val = Validation::instance('Model_Example'); $val->set_message('password_hash', 'Passw…
Comment by
Jelmer Schreuder
September 2011
permalink
creating a auth driver
And don't forget about: http://fuelphp.com/docs/packages/auth/drivers.html About extending: extend in a package of your own or from your App, never go editing inside package of someone else because you will get into trouble when updating it.
Comment by
Jelmer Schreuder
September 2011
permalink
Question on Security class
It's in 1.1/develop branches of github.com/fuel/fuel & github.com/fuel/core - it's 2 changes: 1. Remove 'stdClass' from your array in app/config/config.php 2. Added the last boolean condition on this line I may also update …
Comment by
Jelmer Schreuder
September 2011
permalink
Question on Security class
Good point. I added stdClass as foreachable like Iterator objects & arrays as it can't have any hidden properties and should thus be fully sanitized when done foreaching.
Comment by
Jelmer Schreuder
September 2011
permalink
Question on Security class
Just checked it out and it's a mistake, Phil added it a while back but it should never have been put there.
Comment by
Jelmer Schreuder
September 2011
permalink
DB class and MySQL functions / formatting MYSQL timestamp
If I'm not mistaken: DB::select(array(DB::expr('DATE_FORMAT(timestampfield, "%Y-%m-%d %H:%i:%s")'), 'dtime')); DB::expr() wraps the string in a Database_Expression object that prevents it from being quoted. It&…
Comment by
Jelmer Schreuder
September 2011
permalink
Many inserts
If you feel like that: write it up & pull-request. But doing massive DB operations with an ORM is pretty much insane, the added overhead of creating objects for each row is massive at that scale and unnecessary, which is why you should write SQ…
Comment by
Jelmer Schreuder
September 2011
permalink
Many inserts
You could try the search function, was asked & answered before. But it's not possible with the Orm and not a planned feature either at this point. Aside from that: if you're inserting 60000 rows into a database you don't want to…
Comment by
Jelmer Schreuder
September 2011
permalink
Help pls with Many to Many relations
http://fuelphp.com/docs/packages/orm/relations/many_many.html
Comment by
Jelmer Schreuder
September 2011
permalink
fatal error
Means an exception is thrown in your View and you should catch it.
Comment by
Jelmer Schreuder
September 2011
permalink
Is there a routing solution for this?
It's run through preg_replace, thus this should work as long as your ids are numeric: 'users/([0-9]+)' => 'users/view/$1'
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