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.
Peter
Discussions
13
Comments
78
Activity
One to Many Tables with ORM
http://docs.fuelphp.com/packages/orm/relations/has_many.html You create 2 models: page en property. The model 'page' has_many properties and the model 'property' belongs_to page. If you mean many to many (when you have some stan…
Comment by
Peter
May 2012
permalink
ORM, Fieldset and SimpleAuth
http://fueldepot.exite.eu/ https://github.com/fuel/depot
Comment by
Peter
April 2012
permalink
Simple upload script failing.
You can add it when you open the form. echo \Form::open(array('enctype' => 'multipart/form-data')); Btw, you don't need to specify the form action if it is the same as the current uri.
Comment by
Peter
May 2012
permalink
Profiler does not show up
Thanks Harro - that was the problem. I've set my default line endings to LF so I won't have the problem anymore.
Comment by
Peter
May 2012
permalink
Routing right after installing v1.2 not working
Does {url}/index.php/admin/posts/index work? (like [url=http://localhost/myapp/public/index.php/admin/posts/index]http://localhost/myapp/public/index.php/admin/posts/index[/url] or myapp.local/index.php/admin/posts/index)
Comment by
Peter
May 2012
permalink
Profiler does not show up
@ Solovej Addblock is not the problem; the profiler works fine on http://nevstokes.com/playground/pqp/ but not on my local server with FuelPHP. To be sure I've tested it wit Addblock turned off, but still nothing. Secondly, I've tested i…
Comment by
Peter
May 2012
permalink
fieldset form with method GET
As you can see you can pass the data to the function manually: $fieldset->validation->run(\Input::get())
Comment by
Peter
April 2012
permalink
Posts with comments, comments with comment types
Problem solved, one database relation was not correct. I've fixed that and now it works as expected: foreach($post->comments as $comment) { echo $comment->comment_type->{fieldname from comment_types table}; }
Comment by
Peter
April 2012
permalink
Posts with comments, comments with comment types
Okay no problem, I've added a primary key (id) to that table, and the foreign keys are now just foreign keys (no part of the primary key anymore). But I still don't know how to fetch the values of the comment_types table. This works, but …
Comment by
Peter
April 2012
permalink
Generate migration from models
For the people who want it the other way around (creating models from your existing database tables): https://github.com/SicoAnimal/fuel-model-generator
Comment by
Peter
February 2012
permalink
variable problem
The second time, when you load test2, the function test1 won't be executed so the data won't be set. I think you need to use sessions.
Comment by
Peter
February 2012
permalink
Form: how to add an field?
Same problem here, anyone with the solution?
Comment by
Peter
January 2012
permalink
Silly DB question
Brad Proctor wrote on Thursday 26th of January 2012: How do you guys normally select a single row? Here is what I've got, but it seems a little weird: $result = \DB::select()->from('faq')->where('faq_id', $faq_id)…
Comment by
Peter
January 2012
permalink
Allow direct file access
You can load a CSV file directly into the database with MYSQL LOAD DATA.
Comment by
Peter
December 2011
permalink
Sentry - Authentication Package
Hi Daniel, Looks really great, well done. I've been using the Auth package with SimpleAuth but came across some difficulties and some - for me - illogical things but I've made (inefficient) work-arounds for these things. That's why I…
Comment by
Peter
December 2011
permalink
Favourite / Best IDE to use with FuelPHP?
PHPStorm, but since version 3.0 I'm experiencing some bugs. I know some will be fixed in version 3.1 so I hope that version will be released soon.
Comment by
Peter
December 2011
permalink
Is anyone using jquery mobile w/ fuel?
I'm using jQuery mobile with FuelPHP and I had the same problems with posting forms. The solution is to turn off ajax and handle the form "the old way".
Comment by
Peter
December 2011
permalink
How do I make a task for a cronjob
Brian Perin wrote on Saturday 26th of November 2011: PHP Fatal error: Class 'Fuel\Tasks\DB' not found in /var/www/project/fuel/app/tasks/updates.php on line 24 Error - Class 'Fuel\Tasks\DB' not found in APPPATH/tasks/updates…
Comment by
Peter
November 2011
permalink
What's the best way to return one row using a Model?
Thomas Edwards wrote on Friday 25th of November 2011: That's perfect Peter. Is that in the Docs anywhere, I couldn't see it? It's under "Escaping": http://docs.fuelphp.com/classes/database/usage.html#/escaping
Comment by
Peter
November 2011
permalink
What's the best way to return one row using a Model?
If the database output will be 1 row (selection on primary key or LIMIT 1) you can use: return $query->execute()->current(); which will return and array like: Array( ['username'] => 'Peter', ['countr…
Comment by
Peter
November 2011
permalink
RE: Email class has been removed from the core
Jason Judge wrote on Wednesday 23rd of November 2011: Peter Wiggers wrote on Wednesday 23rd of November 2011: It's not part of the core, but it's a separate package: http://github.com/fuel/email So does "not being part of the …
Comment by
Peter
November 2011
permalink
RE: Email class has been removed from the core
It's not part of the core, but it's a separate package: http://github.com/fuel/email
Comment by
Peter
November 2011
permalink
Advanced Caching?
http://docs.fuelphp.com/classes/database/usage.html#/caching is very fast in combination with APC.
Comment by
Peter
November 2011
permalink
Generate form from validation rules
I have still one question. If I use: echo $val->field('brand'); I get a complete table row with label and textfield etc. But I only want the code for the form element, because I don't use tables. Is that possible? Off course …
Comment by
Peter
November 2011
permalink
Generate form from validation rules
Thanks Jelmer, exactly what I was looking for (setting the form element type in the validation class). Very useful.
Comment by
Peter
November 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
Peter
Joined
June 2011
Visits
0
Last Active
July 2012
Roles
Member