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
Insert multiple in one query?
I just get the sense that these types of features are being avoided simply because people can implement them by themselves. Which is true of course but if users have to implement a lot of these features then you start to wonder why you're u…
Comment by
Jelmer Schreuder
July 2011
permalink
Insert multiple in one query?
I find it weird FuelPHP dev's seem so resistant to implementing features that will actually make it stand out amongst all the other frameworks. That's a very obnoxious comment. We are open to anything, but we have jobs/lives we find i…
Comment by
Jelmer Schreuder
July 2011
permalink
Insert multiple in one query?
No, not a planned feature either. If you want it you'll have to code it up yourself and pull-request.
Comment by
Jelmer Schreuder
July 2011
permalink
Is this type of coding frowned uppon in the php community?
It's about preference, I prefer to use {} as well. The coding guidelines for code for the core require it. Only reason for me to use foreach:...endforeach; is in templates where {} don't make sence as there's a lot non-PHP in betwee…
Comment by
Jelmer Schreuder
July 2011
permalink
Feature suggestion : Array::deep_merge()
Already in develop
Comment by
Jelmer Schreuder
July 2011
permalink
URI separator constant
You may be overthinking this a tiny bit...
Comment by
Jelmer Schreuder
July 2011
permalink
how to loop the result..
my primary key is unique, as a matter of fact, I didn't define any primary key, it's an empty array, because the table doesn't have any? Which is the problem, the Orm needs a primary key to distinguish one row from the next, with…
Comment by
Jelmer Schreuder
July 2011
permalink
Module method calls
The latter, otherwise if you'd change the namespace you'd have to change each and every call to a class.
Comment by
Jelmer Schreuder
July 2011
permalink
validate a posted array?
No, because you validate fields - not parts of fields. If you use an array for fields that means you consider it one field, not multiple. Thus if you want to validate an array you have to write a validation method for that array.
Comment by
Jelmer Schreuder
July 2011
permalink
How to call user find classes functions on fuelphp?
Actually, that statement was always wrong and has been fixed in the docs in development: Only 1 level of subdirectories is auto-detected, if you want to go deeper you need to use routes to rewrite the subdirectory to a controller name (which uses…
Comment by
Jelmer Schreuder
July 2011
permalink
global controller question like cakephp has
Trav Johnston wrote on Thursday 21st of July 2011: thanks bperin, i thought that may be the case. Question: can you extend a controller that is an extenstion of an other controller? eg: Controller_Session extends Controller -> Controller_Adm…
Comment by
Jelmer Schreuder
July 2011
permalink
Odd ordering result with ORM related query
Could you replace ->get() with ->get_query() and echo the output (you'll get a Database_Query instance which can be cast to string to get the SQL). That'll help in determining if something is wrong.
Comment by
Jelmer Schreuder
July 2011
permalink
Package Working on Localhost but not on server
Most of the time problems like these are caused by a case insensitive testing environment and a case sensitive server. Check if all your filenames & direnames within the Fuel dirs are fully lowercase.
Comment by
Jelmer Schreuder
July 2011
permalink
my own auth?
The Auth is essentially a "core" package, thus should be extended like a Core class: Extending Core classes
Comment by
Jelmer Schreuder
July 2011
permalink
Copying a directory
It should copy both, if it really doesn't try to track it down and pull-request or post an issue on github.
Comment by
Jelmer Schreuder
July 2011
permalink
perform check problem
Can't be sure from this log, the beginning seems completely logical, and after that "common" doesn't really tell me what happens so I don't know why it'd be called a second/third time. Having said that the perform_chec…
Comment by
Jelmer Schreuder
July 2011
permalink
Copying a directory
You're right, I added the $ in the develop branch.
Comment by
Jelmer Schreuder
July 2011
permalink
Bug in Fuel::find_files() ?
I'm quite sure it doesn't as Fuel itself wouldn't function at all if that were true.
Comment by
Jelmer Schreuder
July 2011
permalink
ORM Limits and Related Tables
Study the SQL, the problem is that there's a couple of options and the Orm needs to choose one: - limit by the original model (how our Orm works) Makes it possible to limit one->many & many->many, otherwise impossible. Might return …
Comment by
Jelmer Schreuder
July 2011
permalink
base class is not working
it helped to know me about many things 42... and now you know everything
Comment by
Jelmer Schreuder
July 2011
permalink
Variables through functions, the Fuel way
Controllers are still instantiated, you can add as many properties to them as you like (just don't overwrite $this->response or $this->request) and call them using $this->property.
Comment by
Jelmer Schreuder
July 2011
permalink
Display UK date format
Seems you found something of a bug, still this would work: \Date::factory($subscription->expiry_date)->format('uk'); I just fixed it: To change the default timezone you have to change the pattern for the 'local' key, this…
Comment by
Jelmer Schreuder
July 2011
permalink
base class is not working
Of course you can use it, the Controller is an exception though because it needs to extend its base controller constructor exactly in order to get both the Response & Request objects set on it. You can still do it, but as I quoted from the late…
Comment by
Jelmer Schreuder
July 2011
permalink
base class is not working
Why are you overwriting the __construct() method? You're disabling an important part of Fuel's application flow by doing this, thus causing your error. EDIT There's actually a warning about this in the latest version of the docs whi…
Comment by
Jelmer Schreuder
July 2011
permalink
ORM Limits and Related Tables
Ahh, I misread your SQL the first time. We limit the amount of the object requested because that'll lead to the best results most of the time, and is right from a logical point of view. This also leads to the best results when doing a query w…
Comment by
Jelmer Schreuder
July 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