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.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
mod_rewrite and 404 on assets
It probably has something to do with that alias, because it points to your index.php, but assets don't run through index.php, they have to be accessed directly. [url=http://localhost:81/appli/public/index.php/assets/css/bootstrap.css?133072284…
Comment by
WanWizard
March 2012
permalink
$database is empty when the _select_db function is called
I'm a bit confused here. _select_db() is a method in the MySQL and MySQLi connection drivers. But you're using PDO syntax in your db.php? What driver is configured (it's in app/config/db.php)? If not PDO, remove the 'dsn', …
Comment by
WanWizard
March 2012
permalink
Forum Fix
Correct. It's not a problem fixing the issues, it's a problem finding someone that can and will do it...
Comment by
WanWizard
March 2012
permalink
Problem with session / rotation time - How to troubleshoot?
That doesn't really solve the problem, you will have the same issue with two windows open. Make sure the rotation time is longer then the longest running request, and you should be save against most trouble. We're working on improvements …
Comment by
WanWizard
February 2012
permalink
Heip: populating select form from DB
That is documented (see Database, Usage): $result = DB::select()->from('users')->execute(); // returns an array with 'id' => 'email' pairs for every record in the resultset $key_value_array = $result->as_a…
Comment by
WanWizard
March 2012
permalink
my view doesnt render right if I use # in my url
It is. De page loads fine, then some JS kicks in and removes most of the content.
Comment by
WanWizard
March 2012
permalink
ORM and distinct sentence?
No, there is no point. As the ORM always selects all columns, and all your tables have a unique key, a DISTINCT select would still return all records.
Comment by
WanWizard
March 2012
permalink
Routing issue
Cool. Let me know if you have more questions (which I can answer in Dutch if you want if you PM me on IRC) ...
Comment by
WanWizard
March 2012
permalink
Simpleauht's profile field serialization wierdness
No, as SimpleAuth doesn't use models, it uses direct DB calls. Do a \Debug::dump() in your view to see what is different about the profile_fields value for logged in users, otherwise you keep guessing as to what the issue might be.
Comment by
WanWizard
March 2012
permalink
How to Select only specific model fields and not ALL related fields?
Currently, the ORM will select all columns. There are no plans to change that at the moment.
Comment by
WanWizard
January 2012
permalink
Simpleauht's profile field serialization wierdness
You can not pass serialized data to your view. FuelPHP's security system will escape it, which makes it no longer valid. Either pass it to the view without escaping (not very secure), unserialize in your controller before passing the object to…
Comment by
WanWizard
March 2012
permalink
Routing issue
What do you expect? While driving you tell your wife to take a right turn, and you expect her to go left anyway, since that crossing has a left turn too? This is what routing does, it tells FuelPHP how to route URI requests. Searching for a control…
Comment by
WanWizard
March 2012
permalink
many to many create question
Define your many to many using a 'table_through', and you should be able to use order_by('Character_Cloth.order', 'ASC').
Comment by
WanWizard
March 2012
permalink
[METHOD] set_form_fields
set_form_fields() is defined in orm/classes/model.php. You pass it a Fieldset instance, on which you can define the fields.
Comment by
WanWizard
March 2012
permalink
REST Controller passing empty array to response results in a 404
No, you're not missing something. In the 1.1 release codebase that was the behaviour. In 1.1/develop, it now returns a 'no_data' status, which by default is set to 204. In both cases, an empty reponse is considered 'no data'…
Comment by
WanWizard
March 2012
permalink
FuelPHProfiler
Haven't thought about that. Ideally I don't want it to be configureable anymore, you should be able to activate the profiler on any page load, if in a development environment. Easiest is probably a GET variable ( like "?enable_profi…
Comment by
WanWizard
January 2012
permalink
easily set permissions for entire section?
There is nothing that forces you to use a controller/method mapping for access control. I never do, I use functional definitions in my ACLs, and use has_access('admin.function') to check for access rights.
Comment by
WanWizard
March 2012
permalink
scaffold admin without simpleauth?
Github has a pretty decent help page: http://help.github.com/submodules/
Comment by
WanWizard
February 2012
permalink
REST Controller JSON collection not returned as array
The REST controller uses Format::to_json() to convert the result your controller action returns into json. Internally, that uses Format::to_array() to convert objects to array's. That in return is json encoded. Your result is the standard resu…
Comment by
WanWizard
March 2012
permalink
Date::create_from_string No Windows Platform ?
I'll update the docs with a date example that is not ambiguous.
Comment by
WanWizard
March 2012
permalink
scaffold admin without simpleauth?
Either clone them (and maintain them manually) or create a submodule for them (which does the cloning for you).
Comment by
WanWizard
February 2012
permalink
FuelPHProfiler
Downside of that is that you're still adding HTML elements to the DOM that are foreign to the page. Probably the impact of a single button isn't that much, but still I can think of very common jQuery code that would make the button useles…
Comment by
WanWizard
January 2012
permalink
scaffold admin without simpleauth?
Not entirely sure what you mean. A repository is just a folder structure on disk, you can have a lot of them, and they don't interfere with each other. A git repository holds all information for all branches that you have in your repository (w…
Comment by
WanWizard
February 2012
permalink
Docs Model
This report isn't entirely correct. The docs use: namespace Model; class Welcome extends \Model { public static function get_results() { // Database interactions } } and with the namespace it is absolutely correct. For …
Comment by
WanWizard
March 2012
permalink
unterminated string literal error
If you have this error then your files are stored with CRLF line-endings, which is against the coding standards. Use an editor that is capable of saving files with LF line-endings, and configure your git client properly. See http://help.github.com/…
Comment by
WanWizard
March 2012
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
WanWizard
Joined
January 2011
Visits
2,373
Last Active
1:15PM
Roles
Administrator