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
DB Class question
Next time use [ code] and [/ code] (without the spaces ofcourse. Also I think you got CI & Fuel mixed up in your examples. function get_client_info($client_id = null) { $query = DB::select('*')->from('clients'); …
Comment by
Jelmer Schreuder
May 2011
permalink
$obj->save();
Google is your friend
Comment by
Jelmer Schreuder
May 2011
permalink
security issue?
We use only output encoding by default which is done by views (check the docs), the output you add to the body should already be cleaned and not need any further cleaning. XSS cleaning cleans up unwanted javascripts and other dangerous stuff, it wi…
Comment by
Jelmer Schreuder
May 2011
permalink
$obj->save();
Whenever saving fails it will always throw an exception. The method will always return true, unless the objects was frozen and saving isn't allowed which is the only reason save() would ever return false. This is because "freezing" i…
Comment by
Jelmer Schreuder
May 2011
permalink
relation issue, Unknown column
Ah, you're on RC2 aren't you? This is only supported in the latest dev branch.
Comment by
Jelmer Schreuder
May 2011
permalink
relation issue, Unknown column
I meant the error message
Comment by
Jelmer Schreuder
May 2011
permalink
relation issue, Unknown column
Could you give it anyway, because it can't be exactly the same... there is some subtle difference this should cause.
Comment by
Jelmer Schreuder
May 2011
permalink
relation issue, Unknown column
Does the characters table have a column with name 'user_id'? If not why would you expect your where condition to work? I can't check your models because Scrapyrd is timing out right now. But judging from the query user_id is part of…
Comment by
Jelmer Schreuder
May 2011
permalink
'like' keyword
You have to tell SQL on which site you allow additional characters. ->where('field', 'like', '%allow left') ->where('field', 'like', 'allow right%') ->where('field', &…
Comment by
Jelmer Schreuder
May 2011
permalink
Can I separate app from core and packages?
Comming from CI I'd expect you to find this as it works exactly the same https://github.com/fuel/fuel/blob/master/public/index.php#L11
Comment by
Jelmer Schreuder
May 2011
permalink
Why models and controllers are in a separate forder?
Actually: for transparancy. All classes are always autoloaded and the autoloader is very much optimized. The namespace links to either the core or to a package an the global namespace (non namespaced) is tied to App. From there the underscores are …
Comment by
Jelmer Schreuder
May 2011
permalink
Why the pink color gamma?
Any other needed than that we think this is an awesome design?
Comment by
Jelmer Schreuder
May 2011
permalink
Why models and controllers are in a separate forder?
Could you try to rephrase that? I have no clue what you're trying to ask. But to get an answer you could try reading this blogpost.
Comment by
Jelmer Schreuder
May 2011
permalink
before_save
I don't really need to look at Yii for this, I know how to implement it in our Orm. Me disliking the idea has little to do with how it is implemented, it is about it being bad practice to work like that. Well, i prefer to have a method tha…
Comment by
Jelmer Schreuder
May 2011
permalink
validation on 2 inputs
Write your own rule, and there's 2 options: 1. if it will always be send via POST you can just check the other value using Input::post('var') 2. fetch the very latest develop and get it from the currently running validation instance:…
Comment by
Jelmer Schreuder
May 2011
permalink
How to get controller name in views
\Request::active()->controller
Comment by
Jelmer Schreuder
May 2011
permalink
form validation errors
http://fuelphp.com/docs/general/views.html#security
Comment by
Jelmer Schreuder
May 2011
permalink
before_save
Huh, you want it to fail but not give notice of the failure? Throwing an exception will stop the saving or deletion dead in its tracks if it happens before_save/before_delete. And when that happens it should happen clearly with a reason given as to…
Comment by
Jelmer Schreuder
May 2011
permalink
before_save
Throw an exception and catch it specificly if you want to handle it. The way the Observer_Typing or Observer_Validation works is by throwing a specific exception. If for instance I was using both observers I could handle them like this: try { …
Comment by
Jelmer Schreuder
May 2011
permalink
MongoDB?
Phil is working on this, you can check it out in the feature/mongodb branch: https://github.com/fuel/core/tree/feature/mongodb
Comment by
Jelmer Schreuder
January 2011
permalink
Module config files
I'm closing this thread as any further comments on this should go to your github issue.
Comment by
Jelmer Schreuder
April 2011
permalink
Module config files
Forgot one thing: this only works in the current develop branch, it's not in RC2. This is how it should work: https://github.com/fuel/core/blob/develop/classes/fuel.php#L243 (Fuel::find_file() is the method used by Config::load(), Lang::load(…
Comment by
Jelmer Schreuder
April 2011
permalink
Module config files
Config::load('Module\\config.php'); // where "Module" == the module namespace
Comment by
Jelmer Schreuder
April 2011
permalink
Output method in Request
It's a bug in the docs, that method was renamed to response() and outputs the response body when echo'ed. $output = Request::factory('admin/login')->execute()->response(); [edit: I edited my reply as I made a mistake …
Comment by
Jelmer Schreuder
April 2011
permalink
CRUD relation models
I'm not exactly sure how that answered my question, I didn't ask why you need it (that I userstand). But to explain it: for some reason your example seems part of a controller that you expect to magicly know the user id that was just crea…
Comment by
Jelmer Schreuder
April 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