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
8243
Activity
Upload a Image to SQL database using FuelPHP
And? Have you checkted the result of Upload::get_errors()?
Comment by
WanWizard
March 2013
permalink
Upload a Image to SQL database using FuelPHP
Help you with what? You still haven't told me what your problem is? Does the form not work? Does the file not upload? Do you get PHP errors? Exceptions? ... My assumption is that Upload::save() fails, because you have configured 'path…
Comment by
WanWizard
March 2013
permalink
Upload a Image to SQL database using FuelPHP
Apart from the two buttons, there's nothing wrong with the form. You show a bit of code, and ask about your mistake. But you don't say what's goes wrong. I would suggest you dump Upload::get_errors() to see what errors are detected b…
Comment by
WanWizard
March 2013
permalink
Warden send_reset_password_instructions
There are generally two methods: Or you ask for the new password on the page you get to when you click on the link in the email, or you do a forced login in the controller the link points to, and then redirect to the controller in your application …
Comment by
WanWizard
March 2013
permalink
Odd ORM Query Return
This has been explained here several times. The ORM uses a subquery to make sure results are consistent when you include relations, even when you apply limits. Since ORM caches objects, once you have fetched an incomplete result, you can't acc…
Comment by
WanWizard
March 2013
permalink
Change models using oil
No. Other then generating them again from scratch.
Comment by
WanWizard
March 2013
permalink
Sets of checkboxes
That would suggest another issue. Encoding doesn't destroy objects. Are you sure you're passing the fieldset object, and not the result of a build() call to your view?
Comment by
WanWizard
March 2013
permalink
Upload a Image to SQL database using FuelPHP
I don't see where $value comes from. You mean $file?
Comment by
WanWizard
March 2013
permalink
Updating FuelPHP with git
I can't judge that. It depends on what you've done, and what your merge skills are. The fuel/fuel doesn't contain many files, so manually is an option. Think about: public/index.php fuel/app/bootstrap.php everthing in the installatio…
Comment by
WanWizard
March 2013
permalink
Updating FuelPHP with git
p.s. for future reference, it's one of the reasons I have (virtually) no code in app, all code lives in modules. If nothing in app has changed, merging is a breeze... The setup for 2.0 will be different, app will be a separate repository, to f…
Comment by
WanWizard
March 2013
permalink
Updating FuelPHP with git
The root repository (fuel/fuel) has a version too, and should be updated to 1.6/develop, same as will all the other repositories. How you go about that depends on your situation. If you haven't switched your origin, run 'git branch'…
Comment by
WanWizard
March 2013
permalink
Where do observers go?
I can do that for you. :-) btw, there is no set location, you can put observers anywhere you want. I have mine for example in fuel/app/classes/model/observer, and I use 'Model\Observer\Structure' => array( 'events' => …
Comment by
WanWizard
March 2013
permalink
Sets of checkboxes
I'm not sure if it's required to disable encoding on a Fieldset object. Change the false to true and you'll find out. ;-)
Comment by
WanWizard
March 2013
permalink
Sets of checkboxes
I've quickly glanced at that tutorial. It does the fieldset generation in the controller (using the build() method), and passing the generated HTML as one single block to the view. To generate custom form layouts, you can not use the build() m…
Comment by
WanWizard
March 2013
permalink
How to use relations with fieldset
Given the fact that you know the PK of the parent (the 'audi' record), and all models contain a FK which is equal to this PK value (otherwise they are not related), I would query the model table directly: $result = Model_Models::query()-&…
Comment by
WanWizard
March 2013
permalink
Upload a Image to SQL database using FuelPHP
There is a usage example of the upload class in the docs: http://fuelphp.com/docs/classes/upload/usage.html To get it into the database you'll have to read the uploaded file into a variable after you called save(), and save it into the databas…
Comment by
WanWizard
March 2013
permalink
How to disable error reporting in development environment
If error_reporting is set to 0, the error handler will not report anything. If it is set to anything else then zero, it depends on the configuration of 'continue_on' in your app config file. The exception handler always displays the error…
Comment by
WanWizard
March 2013
permalink
I can not retrieve the logged user
Assuming your driver stores the correct login information in the session, you should check if your sessions are configured correctly. Most common issue is incorrect time or timezone settings: - check the server time and timezone - make sure the sam…
Comment by
WanWizard
March 2013
permalink
FuelPHP 1.5.3 config security uri_filter to convert hyphens to camel-case
Fixed in 1.6/develop. If you want to stay on 1.5.3, you might want to backport Arr::unique(), and the line in Security::_init() that caused the error.
Comment by
WanWizard
March 2013
permalink
MongoDB status and usage
2.0 MongoDb is going to be based on https://github.com/FrenkyNet/monga It's composer based, so if you're on 1.6/develop, you can put it in the composer.json, and off you go. If not, you'll have to install composer first.
Comment by
WanWizard
March 2013
permalink
How to use PDO with FuelPHP
You're welcome, happy coding!
Comment by
WanWizard
March 2013
permalink
How to use relations with fieldset
An ORM model has a method called set_form_fields(), which is called by your fieldset object to define the fields of the fieldset based on the model's property definition. You can overload this method in your model (by default it's provide…
Comment by
WanWizard
March 2013
permalink
How to use relations with fieldset
Depends on if you use the ORM or not.
Comment by
WanWizard
March 2013
permalink
How to use PDO with FuelPHP
Yeah, that's the same. But you should not write hardcoded SQL queries. Use the methods provided by the query builder, so you can be sure you're queries are secure and protected against SQL injections. The query builder supports all oper…
Comment by
WanWizard
March 2013
permalink
How to use PDO with FuelPHP
Correct. Something like: $result = DB::select()->from('users')->execute(); foreach($result as $user) { echo $user->name; } You can find quite a few examples here: http://docs.fuelphp.com/classes/database/usage.html
Comment by
WanWizard
March 2013
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,390
Last Active
11:26PM
Roles
Administrator