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
Asset management
Take a look at canton7's Casset for FuelPHP. I've been using it since the start and I really love it: http://github.com/canton7/fuelphp-casset
Comment by
Peter
July 2012
permalink
Access the $_properties name
Gonab wrote on Friday 20th of July 2012: thank you for your quick reply. It works great. I got to dig more by myself. I don't have the reflex enough to look at inside the existing code of Fuel. Since it's not in the docs, I don'…
Comment by
Peter
July 2012
permalink
Access the $_properties name
Since 1.3 you can set a complete array with set(): $data = \Input::post(); $model->set($data)->save(); If you're using 1.2 you use values() instead of set(). Make sure every key in the array is a property of the model (or of one of …
Comment by
Peter
July 2012
permalink
key_from of has_one must be primary key?
Have you set the $_belongs_to relationship in Model_B?
Comment by
Peter
July 2012
permalink
v2 release date?
It's best to start coding with 1.2.1, since the first beta of FuelPHP 2.0 is coming the end of this summer (correct me if I'm wrong).
Comment by
Peter
July 2012
permalink
Validation with Model_Crud
Hi Harro, the validation() method gives me: http://scrp.at/bAz then the run() method gives me just boolean false. my model: http://scrp.at/bAA my controller: http://scrp.at/bAB
Comment by
Peter
July 2012
permalink
External HTTP Request API Client?
Hi Matt, I think you want this: $url = 'http://www.mywebsite.com/mypage.html'; $data = \Request::forge($url, 'curl')->execute()->response(); You are correct that this is not in the docs.
Comment by
Peter
July 2012
permalink
Fuel-opauth package.
Thanks!
Comment by
Peter
June 2012
permalink
removing index.php
Remove it in your app/config/config.php file.
Comment by
Peter
June 2012
permalink
[Twig] How to use a custom extension
A Twig Extension for FuelPHP example: https://github.com/canton7/fuelphp-casset/tree/master/classes/casset/addons
Comment by
Peter
June 2012
permalink
how to set url root not public?
You don't have to change anything, just rename the public folder to for example public_html if that's the docroot on your server.
Comment by
Peter
May 2012
permalink
URGENT HELP: I get this error when I deployed on a production server
Seems you don't have PHP 5.3 or higher installed. You can run phpinfo() in an empty file to check the PHP version.
Comment by
Peter
May 2012
permalink
i find fuelphp 1.2rc is load 99 files.
How did you get to 99 files? A clean FuelPHP 1.2 RC1 'Hello World' install loads 32 files.
Comment by
Peter
May 2012
permalink
how can i return one row? when use DB.
A simple search through the forums: http://fuelphp.com/forums/topics/view/6092
Comment by
Peter
May 2012
permalink
Image Uploading with a Form
Then the fileinfo PHP extension isn't loaded.
Comment by
Peter
May 2012
permalink
Populating Fieldset when fetching the model - not working?
Maybe a FuelPHP developer can make this clear. JasonJudge wrote on Monday 28th of May 2012: Edit: this is what I used to generate the initial model: https://github.com/SicoAnimal/fuel-model-generator The model it generates is quite verbose, but …
Comment by
Peter
May 2012
permalink
Populating Fieldset when fetching the model - not working?
Is the model an ORM model or not? Don't know why it's not working, but I'd specify the default values in the model, not in your controller. If you want to populate the form with values from a database (editing an entity) you use popu…
Comment by
Peter
May 2012
permalink
Deleting relations
You'll probably never have to use has_one. In that case most of the times the better way is to merge the tables to 1 table. In this case you don't need a has_one relationship, but a belongs_to. The blog (post?) belongs to a category and a…
Comment by
Peter
May 2012
permalink
Using ORM to populate select options
And if the options don't change very often, you can decide to cache the results: http://docs.fuelphp.com/classes/database/usage.html#caching
Comment by
Peter
May 2012
permalink
Using ORM to populate select options
You can make a function in your model which fetches the options from the database and that array to the property in the $_properties array. Make sure you execute the function in the init() method, so every time you instantiate that model the option…
Comment by
Peter
May 2012
permalink
Global template replace by other
You can set $this->template in you before() method.
Comment by
Peter
May 2012
permalink
where put error_reporting code?
Check fuel/app/config/config.php
Comment by
Peter
May 2012
permalink
where is link IRC channel
Instead of opening several topics with simple questions, you could do a little bit of research yourself: http://fuelphp.com/contribute "We have a #fuelphp IRC channel on freenode where the main devs and the community are often available for di…
Comment by
Peter
May 2012
permalink
Sentry - Authentication Package
dpetrie wrote on Tuesday 22nd of May 2012: Note to everyone using sentry, the repo name has changed to sentry-fuel from sentry. Thanks. Will Sentry 2 (with ACL?) be developed for FuelPHP too or just for Laravel?
Comment by
Peter
December 2011
permalink
Fieldset class and bootstrap twitter
As far as I know, you can't add a class to a label with FuelPHP's Fieldset class. But what you can do is use jQuery to add that class or add or modify your CSS code that you don't need to add that class to a label but you select it l…
Comment by
Peter
May 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
Peter
Joined
June 2011
Visits
0
Last Active
July 2012
Roles
Member