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
Syntax for database order_by with multiple columns
Also: I've tried replacing the above order_by with the following and all give errors: Then tell us the error, no way for us to help you if you don't let us know what's wrong. Copy past the exact text of the error message and don…
Comment by
Jelmer Schreuder
May 2011
permalink
Database Not Unescaping Quotes Upon Retrieval.
To be honest the only way I think this would happen is if you escaped twice before putting it in the DB. The query builder escapes you queries to get them safely into the database, but those escaping slashes aren't saved in the DB. Only if you…
Comment by
Jelmer Schreuder
May 2011
permalink
Extra Fields in Model
You'd need to declare those properties as public properties within the class, you can't set them once the object has been created because the magic __set() method will catch it. To populate it you'll probably need to write an observe…
Comment by
Jelmer Schreuder
May 2011
permalink
An author critiquing static methods
I read through it and couldn't find anything that really applied to us, quote something if you think it's relevant. In general I'd suggest you read this blogpost I wrote a while back, it goes a little into the whole static thing. Dan…
Comment by
Jelmer Schreuder
May 2011
permalink
Kind of complicated queries (example)
The docs don't contradict in your example, only if you interpret them wrong - otherwise the content you quoted is right on the money. So the ORM as the O stands for returns an object. WanWizard tells me the error I get is caused of the res…
Comment by
Jelmer Schreuder
May 2011
permalink
Kind of complicated queries (example)
About sanitizing the output (or more exactly encoding): http://fuelphp.com/docs/general/views.html#security About the Orm: I would suggest you first try to fully grasp what an Orm does before trying to rewrite custom queries to it. Basicly it comes…
Comment by
Jelmer Schreuder
May 2011
permalink
stdObject or stdClass?
You're right, that's a mistake. I'll fix it.
Comment by
Jelmer Schreuder
May 2011
permalink
Default Timezone
I think you've found a bug, or at least something ambiguous. This used to be set in the config, but it seems like the setting was moved to app/bootstrap.php and the config setting isn't used anymore. It's late and I'm about to g…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Lol, yeah sorry, you're right - it's late and I'm tired.
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Ah, I'm sorry, not sure why it includes the tag in the filename but from a quick check it looks allright. But there's a bug in there that makes the validation() method return a Fuel\Core\Validation instance instead of taking it from globa…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
You need the latest from the develop branch, that's a download from a tag and only has a security fix over RC2. (it is RC2.1) You can download the latest from the core develop branch: https://github.com/fuel/core/zipball/develop FrenkyNet prov…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Mitchell Steinberg wrote on Sunday 22nd of May 2011: I'm sorry, but I'm not sure I followed your answer. However, I downloaded the latest core from the develop branch, and the callback functions still generate an error notice that they&…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Jelmer Schreuder wrote on Sunday 22nd of May 2011: There's an instance of the Validation class in the callables array, as I explained before. Also if you're on RC2, there was a bug in the factory method that made it always return the co…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
There's an instance of the Validation class in the callables array, as I explained before. If the extension methods aren't found that can only mean one thing: it's loading the original class. Are you sure you followed the instruction…
Comment by
Jelmer Schreuder
May 2011
permalink
many-to-many insert
@Dregond Just retrieve the existing Tag model instance like I showed before and add it to the $list->tags array, it'll be automaticly inserted into the table. @Huglester Your suggestion isn't actually good practice, though if I remem…
Comment by
Jelmer Schreuder
May 2011
permalink
many-to-many insert
I can't start programming for you. But if you want to check if there's one or not I'd say basicly something like this: $tag = Model_Tag::query()->where('name', $name)->get_one(); if (empty($tag)) { $tag = new Mo…
Comment by
Jelmer Schreuder
May 2011
permalink
many-to-many insert
That really has nothing to do with the Orm, that's because you made the column unique and entered a duplicate.
Comment by
Jelmer Schreuder
May 2011
permalink
many-to-many insert
Just try
Comment by
Jelmer Schreuder
May 2011
permalink
many-to-many insert
$list->tags is an array, you can add new objects to that array.
Comment by
Jelmer Schreuder
May 2011
permalink
Symbols in URL like @%^
Could you check if this solves it: https://github.com/fuel/core/commit/8d2e3656434c328723fd5ac33cd75a6df0142ae3
Comment by
Jelmer Schreuder
May 2011
permalink
Stopping template render, switch template file, render?
Do you fully grasp how inheritance works? I can't decide for you when you need the router() method, that's up to you. Do you need it for all children? Then it should be in the uppermost parent controller class. Do you only need it in some…
Comment by
Jelmer Schreuder
May 2011
permalink
Email Library
The problem with the current email class, and the reason it's not documented, is that large chunks of it were taken from CodeIgniter and CI's license isn't compatible with our MIT license. Thus for the official final release we can…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
You're adding "validation" which is the Validation class, it supersedes the call to the validation instance and thus required is called staticly (callable string = call static, callable instance = call non-static) on the validation c…
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Hmm, that's too bad - this is a shutdown error, and those don't give a backtrace. Are you sure you're not calling the method _validation_required() yourself staticly? (either from within using static::_validation_required(), or from …
Comment by
Jelmer Schreuder
May 2011
permalink
Multiple Checkboxes and Radio Buttons
Damn, deleted my reply by accident. I'm pretty sure that shouldn't happen. I wrote it in a way that the method should always be called non-static, and this error should show when it's called staticly. Can you put the full report with…
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