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
SimpleAuth support for Authorization header?
RFC 2617 or http authentication is considered an implementation detail, so it's not part of the Auth package. So you need to implement it the same way as you would implement a normal login page. See http://bin.fuelphp.com/snippet/view/M3 for a…
Comment by
WanWizard
May 2016
permalink
Error message
ok, messages for what exactly? validation messages? what does your model look like (post it on http://bin.fuelphp.com and paste the link here),
Comment by
WanWizard
May 2016
permalink
Error message
What do you mean "in modal"? Modals are front-end technology, Fuel doesn't do those.
Comment by
WanWizard
May 2016
permalink
Can i use Fuel Request (Curl) for uploading a file to a remote server?
There is nothing to change. The option is optional, as the name implies. And parameters must always be passed as an array, see http://docs.fuelphp.com/classes/request/curl.html#/method_set_params. We can't force it to be an array, because the …
Comment by
WanWizard
May 2016
permalink
Can i use Fuel Request (Curl) for uploading a file to a remote server?
Ah, ok. I didn't write the code, and I've never used it to upload a file, so I am trying to figure out what to do based on docs I can find. I'll have to see when I can find the time to setup a small test. As far as I can see, the cu…
Comment by
WanWizard
May 2016
permalink
Can i use Fuel Request (Curl) for uploading a file to a remote server?
It looks like you need to set the option "RETURNTRANSFER" to 1 before this will work.
Comment by
WanWizard
May 2016
permalink
Can i use Fuel Request (Curl) for uploading a file to a remote server?
Yes, that is possible, but you need to specify the correct params, which depend on the PHP version. If you are on PHP 5.3 or 5.4, you need to use the "@" prefix: $params = array( 'filename' => '@/tmp/file/to/upload.…
Comment by
WanWizard
May 2016
permalink
Deleting table in oil
\DBUtil::drop_table('tablename');
Comment by
WanWizard
April 2016
permalink
Clearing browser cache
That is a design problem. If you don't want output cached, you have to make sure the browser doesn't cache it by using the correct headers. And if you use a POST for your buttons instead of a GET, it will force a reload of the page when…
Comment by
WanWizard
April 2016
permalink
Condition in relation and empty result
Thanks.
Comment by
WanWizard
April 2016
permalink
Condition in relation and empty result
Please create an issue for it at https://github.com/fuel/orm/issues with a link to this topic, so it can be picked up.
Comment by
WanWizard
April 2016
permalink
shutdown event
The shutdown event is triggered after the output has been send to the browser and PHP is closing down. It is triggered through a registered shutdown function, and the framework itself uses it to write the session data to the session storage backend.…
Comment by
WanWizard
April 2016
permalink
Adding external php file with
Alternatively use composer to install mpdf (https://packagist.org/packages/mpdf/mpdf) and just use it as documented in the mpdf documentation.
Comment by
WanWizard
April 2016
permalink
Adding external php file with
You should never add code to views, views are for generating output. For PDF generation you can use my PDF package: https://github.com/WanWizard/fuel-pdf It contains the most used packages including mPDF, but your will probably need to update it t…
Comment by
WanWizard
April 2016
permalink
Condition in relation and empty result
A very simple one: /** * */ public static function _init() { parent::_init(); // add a where clause, we need DB::expr here static::$_has_one['pageroot']['conditions']['where…
Comment by
WanWizard
April 2016
permalink
Condition in relation and empty result
Yeah, you can't put code in property definitions, you will have to add dynamic values using the models _init() static method.
Comment by
WanWizard
April 2016
permalink
Adding external php file with
What do you mean by "external php file"?
Comment by
WanWizard
April 2016
permalink
Condition in relation and empty result
WHERE's defined on the relation should become part of the ON clause, and not generate a WHERE clause. I know that works fine on conditions defined in the relation definition in the model, which is what I always use. I have to dive into the cod…
Comment by
WanWizard
April 2016
permalink
Clearing browser cache
You can't, that is a client-side action, in the settings of the browser.
Comment by
WanWizard
April 2016
permalink
Error by using Response::redirect before Session::set
Redirection ends processsing the code, it is considered to be be same as exit. This is documented: http://fuelphp.com/docs/classes/response.html#/method_redirect. So anything you want to do, you have to do before you redirect. The only things tha…
Comment by
WanWizard
April 2016
permalink
Zip Creation in fuelPhp
Create no, download yes, via File::download(). PHP has built-in functions for creating zip files, see http://php.net/manual/en/book.zip.php
Comment by
WanWizard
April 2016
permalink
Logging with backtrace
If the standard functionality doesn't work, you need to create a custom processor, like the one i linked to a few posts back. Then you can wrote to the log whatever you want.
Comment by
WanWizard
April 2016
permalink
Logging with backtrace
It depends on the version of Monolog in use. The default Monolog included is 1.5.x, which does not include this feature. Update to at least 1.12 (I think) in your composer.json and run a "composer update" to make sure you have the correc…
Comment by
WanWizard
April 2016
permalink
Fuelphp Controllers Uppercase in URL
What name did you give the file that contains this controller, "Index.php" (with a capital) by any chance? See http://fuelphp.com/docs/general/coding_standards.html, under "File naming".
Comment by
WanWizard
April 2016
permalink
Logging with backtrace
Fuel uses Monolog (https://github.com/Seldaek/monolog) as it's log processor, through the Log class. You can overload the Log class static Initialize() method. Start by copying the existing method. In your overloaded copy, you can change the f…
Comment by
WanWizard
April 2016
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,367
Last Active
May 4
Roles
Administrator