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
Validating array of fields
I must admit I've never tested this, but it shouldn't be a problem. There was indeed a recent bugreport about validating arrays which hasn't been fixed yet, feel free to contribute though. The problem was about which value to display…
Comment by
Jelmer Schreuder
May 2011
permalink
Strange issue with form
Multiple options: // when outputting, will overwrite any previous action $fieldset->build('action/uri'); // using set_config(), currently only possible to set all form_attributes at once (will overwrite previous array) $fieldset->…
Comment by
Jelmer Schreuder
May 2011
permalink
Problem fetching with relations
Models work because their properties don't exist and requests are caught by __set() & __get() magic methods. By declaring them you have made this impossible and nothing will work anymore. Thus you have to remove those properties for the m…
Comment by
Jelmer Schreuder
May 2011
permalink
Problem Accessing Model Class
If your primary key is anything other than "id" you need to set it in your class definition, check the docs.
Comment by
Jelmer Schreuder
May 2011
permalink
Using PHPactiverecord in a module
As always the error message should be read. It can't find the class Post in your namespace, that doesn't look like it has anything to do with the php.ActiveRecord package.
Comment by
Jelmer Schreuder
May 2011
permalink
Problem Accessing Model Class
Are your paths & filenames fully lowercased? (paste those as well, just to check)
Comment by
Jelmer Schreuder
May 2011
permalink
Problem fetching with relations
Post your actual code here, not a rewrite or you might just be missing something I can't check. Most likely what I said still holds true in some way, or $post->comments would return array() or at least show an error of some kind.
Comment by
Jelmer Schreuder
May 2011
permalink
Understanding Auth:: what is login_hash used for?
You don't save the user's password in a cookie, not even hashed. This is why a this-login-only login hash is generated that is saved in the cookie instead of the password, and that's what is checked when checking for the login. Becau…
Comment by
Jelmer Schreuder
May 2011
permalink
Problem fetching with relations
The problem is that your Post model is named Post_Model but in classes/model/post.php (I assume). As such it's not found and never loaded. In the latest ORM version this would throw an exception but in RC2(.1) this would probably return null.
Comment by
Jelmer Schreuder
May 2011
permalink
Strange issue with form
It's cast to a string and encoded. You need to pass it like this: $this->template->content = \View::factory('profile'); $this->template->content->set('form', $form, false);
Comment by
Jelmer Schreuder
May 2011
permalink
Incorrect SQL generated when using and/or combinations and where_open/where_close
What I don't get about your query is why "and_where_open" and "and_where_close" are added twice, that's probably the reason why the last OR becomes an AND (you have both and_where_open and or_where, the first one wins)…
Comment by
Jelmer Schreuder
May 2011
permalink
Not Install inside the document root
From the docs mentioned above: Move the files to your server: - Note the public directory in the source equals your web server's public document directory i.e. public_html, public, htdocs, etc. Move its contents to there or a subdirectory…
Comment by
Jelmer Schreuder
May 2011
permalink
Best practice for plural/singular MVC elements
Fuel doesn't enforce that, it's up to you. I'd call it good practice though. The ORM does use singular model names by default, but you can configure it to use plural names if you want to.
Comment by
Jelmer Schreuder
May 2011
permalink
Not Install inside the document root
Install docs
Comment by
Jelmer Schreuder
May 2011
permalink
PHP 5.3 is very rare on web hosts
Depends on where you live for latency concerns.
Comment by
Jelmer Schreuder
May 2011
permalink
Opinion regarding views
View docs, look for the View::set_global() method.
Comment by
Jelmer Schreuder
May 2011
permalink
PHP 5.3 is very rare on web hosts
PHP 5.2 has been declared end of life by the PHP folks. We're building a new framework and don't want to be held back by old PHP versions and (as we're new) we're not held back by legacy support, this gives us a clean slate to a…
Comment by
Jelmer Schreuder
May 2011
permalink
accessing other columns with many_to_many
This can be done using Nested relations. Model_User HasMany Model_User_Item Model_Item HasMany Model_User_Item Model_User_Item BelongsTo Model_User & BelongsTo Model_Item. After that you can load them like this: $user = Model_User::query()->…
Comment by
Jelmer Schreuder
May 2011
permalink
rest controller
RC2.1 was a hotfix release with just a security fix, we're planning on releasing RC3 shortly with all the latest fixes from the develop branch.
Comment by
Jelmer Schreuder
May 2011
permalink
Uri::create question
This is more of a feature suggestion for Github. I don't have an opinion on this so you'll have to wait for one of the other main devs to comment on this - the chances of which are far more likely when you create an issue in the issuetrac…
Comment by
Jelmer Schreuder
May 2011
permalink
Trying to use database class with functions
Contrary to some other frameworks we don't believe in creating 10 ways to do the same thing, especially for something this small. So no, we won't add a second way for negative comparisson.
Comment by
Jelmer Schreuder
May 2011
permalink
Zipped documentation and online version have different content
This is already current practice. The docs aren't versioned like all the other repo's currently, which is why with each release we include a copy of the docs as it was at that point in time. While we continue to develop v1.0 we also updat…
Comment by
Jelmer Schreuder
May 2011
permalink
Best way to avoid code duplication with templates
Check Extending Core classes on how to extend a Core class like Controller_Template without overwriting it. Just be sure to call parent::before() and parent::after() when you overwrite those methods or the Controller_Template won't function th…
Comment by
Jelmer Schreuder
May 2011
permalink
security issue?
Dan fixed it
Comment by
Jelmer Schreuder
May 2011
permalink
security issue?
You're right, I checked and Security::clean_uri() isn't called anywhere - must have gotten lost during the routing rewrite. We'll look into this ASAP!
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