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
ORM Troubles - Getting infomation
They're indexed by their primary key(s), which should also have shown when you var_dump() the $this->user variable.
Comment by
Jelmer Schreuder
May 2011
permalink
ORM Troubles - Getting infomation
Always read the output of a var_dump very carefully, or there's no use to getting it. The get() method returns an array of objects, if you want an individual object you need to use get_one() instead.
Comment by
Jelmer Schreuder
May 2011
permalink
problem with
I just committed a fix for this, if you're not using Git but downloading you only need to replace the orm/classes/query.php file.
Comment by
Jelmer Schreuder
May 2011
permalink
problem with
Could you provide the full trackback including filenames & line nrs? I have an idea what might cause this, but it'll be much easier to debug if you post those.
Comment by
Jelmer Schreuder
May 2011
permalink
problem with
Are you on the latest from the develop branch? Relation conditions are not yet supported in RC2 or RC2.1.
Comment by
Jelmer Schreuder
May 2011
permalink
looking for LIMIT $start, $limit
There's offset & limit which can be used in both array querying & method chaining: // Method chaining $result = Model_Example::query()->limit(20)->offset(40)->get(); // Query with array $result = Model_Example::find('a…
Comment by
Jelmer Schreuder
May 2011
permalink
Base URL in Fuel
In the develop branch there a method Uri::base() that does pretty much the same as Uri::create('')
Comment by
Jelmer Schreuder
May 2011
permalink
OR in where clause
Works just like the DB query builder: Model_Example::query()->where_open() ->where('A', '=', 1) ->or_where('B', '=', 2) ->where_close() ->where('C', '=…
Comment by
Jelmer Schreuder
May 2011
permalink
Capture Errors
You could probably do that easily by extending the Error class.
Comment by
Jelmer Schreuder
May 2011
permalink
Twig
Fork our repo, commit the changes and pull-request to our repo.
Comment by
Jelmer Schreuder
May 2011
permalink
Twig
Check out my replies in this topic
Comment by
Jelmer Schreuder
May 2011
permalink
Namespaces and fieldset
You must have grabbed from the core master branch, in the latest develop I've fixed it to use "new static()" instead of "new Fieldset()"
Comment by
Jelmer Schreuder
May 2011
permalink
Namespaces and fieldset
Hmm that's weird, could you show how you create the fieldset and where you assign it? It should create an instance of Fieldset and not \Fuel\Core\Fieldset...
Comment by
Jelmer Schreuder
May 2011
permalink
Modules + ORM
Actually the most interesting thing about it is that it won't work An abstract class is still a class and you can't extend more than 1 class in PHP, but judging from the use of "implements" in the code I think the intention was…
Comment by
Jelmer Schreuder
May 2011
permalink
DB Class
It's probably because a Database_Result object can't get past the output encoding. Also: next time create your own topic, you're hijacking an old topic to post a pretty unrelated question.
Comment by
Jelmer Schreuder
April 2011
permalink
Namespaces and fieldset
This should have been a bugreport, but I fixed it: looks like there were a couple of mistakes in the class calls in the core. If you pull/download the latest commits from fuel/core develop branch this should work just fine.
Comment by
Jelmer Schreuder
May 2011
permalink
Modules + ORM
To be able to load something from a module that's not active you need to load that module first: \Fuel::add_module("module"); After that you can use their classes by prefixing their namespaces: \Module\Class::method(); Or load …
Comment by
Jelmer Schreuder
May 2011
permalink
Problem fetching result with relations
You are requesting "all" objects, which means that 0 to many objects are returned and thus an array with 0 to many objects is returned. In this case it's just one, but it might just as well be 0 or a 100. $plan would be an object (an…
Comment by
Jelmer Schreuder
May 2011
permalink
Dynamic Modules load and info retrieve
It's fine, just know it's kinda slow (like any dynamic method call) compared to a normal method call. Alternatively you could use call_user_func() instead, when the method or class doesn't exist that will just output false instead of…
Comment by
Jelmer Schreuder
May 2011
permalink
Parser library doesn't find view
I think that was my bad, my quick fix from just now didn't take full paths into account. WanWizard just commited a permanent fix that should solve this as well.
Comment by
Jelmer Schreuder
May 2011
permalink
Parser library doesn't find view
Turned out there was a bug in the latest develop's Fuel::find_file() method, which is needed for loading pretty much everything other than classes. I fixed this, should work fine now.
Comment by
Jelmer Schreuder
May 2011
permalink
Parser library doesn't find view
Hmm, then you're probably still on RC2? There's a small fix in the latest develop that allows the View class to be extended by a package, which wasn't possible before.
Comment by
Jelmer Schreuder
May 2011
permalink
Parser library doesn't find view
To ask the obvious: did you always-load it in the app/config/config.php?
Comment by
Jelmer Schreuder
May 2011
permalink
relation issue, Unknown column
Let me first quote myself: Ah, you're on RC2 aren't you? This is only supported in the latest dev branch. RC2 doesn't support this yet, this was added very recently and will be in RC3 which should be released very soon. (final…
Comment by
Jelmer Schreuder
May 2011
permalink
Problem Accessing Model Class
There used to be one to help Dan out with the hosting costs, will ask him about that. But biggest help is what we say under contribute: help us out with bughunting, bugfixing, writing unit tests & writing/improving documentation.
Comment by
Jelmer Schreuder
May 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