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
how to loop the result..
That's your problem, your primary key isn't unique. It has to be, otherwise the ORM can't work with it. The column your defining as your primary key, must also be the real primary key in the database.
Comment by
Jelmer Schreuder
July 2011
permalink
count returns an error
Hmm, that's weird. It should use "id" when no column was given. Make a bugreport on github.com/fuel/orm/issues, but make sure you've updated your Fuel base to RC3 first.
Comment by
Jelmer Schreuder
July 2011
permalink
ORM Limits and Related Tables
Hmm, that condition should go into the subquery not the outer one. Are you sure you're up to date with RC3? Otherwise it's probably a bug. Report it on https://github.com/fuel/orm/issues after you've checked you're working with …
Comment by
Jelmer Schreuder
July 2011
permalink
Class 'SimpleUserWrongPassword' not found
It's already fixed in develop, I forgot to add it to the bootstrap. When it's in the bootstrap it can be requested from the global namespace because the Auth namespace is a "core" namespace (= aliased to global when requested) w…
Comment by
Jelmer Schreuder
July 2011
permalink
using self created classes
Fuel uses PHP autoloading, which means any class is only loaded when used. Otherwise it's not.
Comment by
Jelmer Schreuder
July 2011
permalink
using self created classes
Check http://fuelphp.com/docs/general/classes.html Thus if your class is called "Bargraph" it should be in app/classes/bargraph.php If you put it in the models dir, the name should reflect that as well: classname "Model_Bargraph&quo…
Comment by
Jelmer Schreuder
July 2011
permalink
how to loop the result..
The Orm maps a table row to an object I think. That's basicly what most Orms do, especially those like ours that implement (parts of) the active record pattern. $messages = Model_Message::find()->where('request_id', 1)->…
Comment by
Jelmer Schreuder
July 2011
permalink
Discussion: Development Standards for Packages and Modules etc...
Ok the "Packages are better for sharing" comment was a bit too strong. My basic point is that if you want to share something that's really usefull for many it shouldn't implement too specificly and be very extendable. Both of wh…
Comment by
Jelmer Schreuder
July 2011
permalink
Discussion: Development Standards for Packages and Modules etc...
Personal opinions, not official Fuel guidelines - though I'd expect they'd look something like this if we had them: - Packages are better than modules for sharing - Keep your code modular and easily extended - Make sure changes/extensio…
Comment by
Jelmer Schreuder
July 2011
permalink
Format::Unserialize
In that case you don't understand what the Format class is meant for. It's meant to input something and help you convert/format it to something else. Making it unserialize is nonsense because of this: Format::factory($serialized_string,…
Comment by
Jelmer Schreuder
July 2011
permalink
is this the way to use simple auth
$auth= \Auth::instance(); $auth->create_user('samitrimal', 'samitrimal', 'example@yahoo.com', 100, array('phone' => 3434343, 'address' => 'gaurighat')); Check out this tutoria…
Comment by
Jelmer Schreuder
July 2011
permalink
Format::Unserialize
Why would you want that? Seems pretty useless, only adds overhead and nothing usefull compared to unserialize().
Comment by
Jelmer Schreuder
July 2011
permalink
Class 'SimpleUserWrongPassword' not found
Still looks like a bug, the exception class thrown should exist. I'll look into it.
Comment by
Jelmer Schreuder
July 2011
permalink
Class 'Orm\Model' not found
Have you read what's written above before asking? You probably forgot to add it to the always_load config as is also described in the docs.
Comment by
Jelmer Schreuder
April 2011
permalink
Validation Callback
Instead of one of the documented methods you can also pass a valid callback (string/array) or Closure instead.
Comment by
Jelmer Schreuder
July 2011
permalink
Selected Options in Select Form Elements?
That's the reason the docs are in a repository of their own: you can make issues or (better!) pull-requests to correct anything you feel is wrong. You have a couple of good points there about the wording, but know that we only fix what's …
Comment by
Jelmer Schreuder
July 2011
permalink
Selected Options in Select Form Elements?
Read the docs again. The second param is the "selected" value, when given this overwrites whatever is passed in the last param. Thus in your case you're selecting the non-existant value "none".
Comment by
Jelmer Schreuder
July 2011
permalink
How to get generated query for insert/update.
Just echo the query before using ->execute() or cast it to a string, the Database Query object has a __toString() method that will return the query as build up to that point.
Comment by
Jelmer Schreuder
July 2011
permalink
Order_by Database_Expression Model
Seems to be a bug, if you you create an issue on Github I'll look into it.
Comment by
Jelmer Schreuder
July 2011
permalink
Version 1.0
Would be awesome Frank, all help is very much appreciated.
Comment by
Jelmer Schreuder
July 2011
permalink
Version 1.0
We don't care how big or small as long as the pull-request improves the docs.
Comment by
Jelmer Schreuder
July 2011
permalink
Caching and ORM
There already is a possibility, though not with method chaining. It turns out we forgot to document the Cache::call() method. Your example could also be done like this: $posts = Model_Post::find("all", array( 'where' => a…
Comment by
Jelmer Schreuder
July 2011
permalink
Security fetch_token() vs js_fetch_token()?
Have you tried them both and taken a look at the output? Probably would have taken you less time than it took you to write up this post.
Comment by
Jelmer Schreuder
July 2011
permalink
Website bugged
It's kind of surprising you don't invest the time to develop the Fuel site, with fuel Any such statement only shows ignorance. Either help out with open-source or stop whining, don't go around telling the people who are contribut…
Comment by
Jelmer Schreuder
July 2011
permalink
Modules Migrations
Search the forums, Phil has killed that idea and explained multiple times why. There were plans for allowing tasks in modules/packages which would allow similar functionality, but I think we pushed that back to 1.1.
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