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
Queue package
It was a package, wasn't it? So there is no relation with the "vendor" folder.
Comment by
WanWizard
March 2014
permalink
Issue with email
What I meant was that is isn't supposed to do anything. "test" and " test " will display exactly the same in HTML. So it is pointless adding \r\n to the HTML body of the email. It is be useful if you send plain text …
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
No, you need to place that just before the fcgi RewriteRule, otherwise it doesn't work. Since it's a shared host, you don't have access to the rewrite log either I suppose? With the time you have spend on it sofar, you probably could…
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
That looks like a crap hoster. Very old PHP version, multibyte support disabled (so any utf-8 will fail). It might be an antique installation that still rewrites to fcgi? In that case, you may have to add: RewriteCond %{REQUEST_URI} ^/cgi-bin/php5…
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
Update your htaccess to the latest version (https://raw.github.com/fuel/fuel/1.8/develop/public/.htaccess)
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
On which Fuel version are you? And are you sure you have the latest .htaccess file? See https://github.com/fuel/fuel/tree/1.8/develop/public FastCGI on Apache is nothing special, it's been supported for quite some time.
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
Are you sure your hoster runs apache? And not for example nginx or another webserver with fastcgi? If you explicitly request index.php (http://yourdomain/index.php) it should not use any rewriting rules, as it will have a direct hit on a file. If t…
Comment by
WanWizard
March 2014
permalink
What is the best way to close a mysql connection?
No, unless there is a PHP bug on the version Pagoda uses that prevents the __destruct() magic method from being called. But I've never seen one. If you insist you want to do it yourself, create a shutdown event that closes it. This should be e…
Comment by
WanWizard
March 2014
permalink
What is the best way to close a mysql connection?
You don't need to do that, every Connection object has an __destruct() that will explicitly do a disconnect. If you don't trigger it with an unset(), PHP will trigger it when the request is finished. If connections aren't closed, hav…
Comment by
WanWizard
March 2014
permalink
Upload::Process not throwing Exception
It throws a \Fuel\Upload\NoFilesException exception. I don't see any encapsulation in the v1 facade class, so you should be able to catch it.
Comment by
WanWizard
March 2014
permalink
Password Change feture not working
change_password() returns a boolean, you can not echo that. echo $v ? 'true' : 'false':
Comment by
WanWizard
March 2014
permalink
Select on a related table
The workaround is to make a model (Patientsusers or so) for the through table too, and define that in both models as a separate relation. You can then do Model_Patient::query()->related('patientsusers')->where('patientsusers.us…
Comment by
WanWizard
March 2014
permalink
Email - get_subject, get_to, get_from, etc..
See https://github.com/fuel/fuel/blob/1.8/develop/CHANGELOG.md It shows you it was added in v1.7.1.
Comment by
WanWizard
March 2014
permalink
Foreign key constraint and indexes use
There is only a constraint definition for the Opauth session and sessionscopes tables, and it is there because Opauth requires it. It was directly copied from the Opauth installation instructions.
Comment by
WanWizard
March 2014
permalink
Fuel and SQL date handling
Apart from that, I prefer the timestamp. It doesn't have to be user readable, it has to be machine readable. A MySQL date string is useless in most operations unless you convert it first. Also, a timestamp is (or should be) always in GMT. So…
Comment by
WanWizard
March 2014
permalink
Tabular Forms
I will check the example. I am sure it works though, most of our applications use it on a daily basis. Here's an example of a working edit action for a simple invoice->invoice lines page: http://bin.fuelphp.com/snippet/view/AF The example …
Comment by
WanWizard
March 2014
permalink
Foreign key constraint and indexes use
Yes, simply because I don't like them. ;-) I know DBA's love them (they don't trust developers with "their" data, and they may have a point). But it's magic that happens outside of your application control (your cons…
Comment by
WanWizard
March 2014
permalink
Fuel and SQL date handling
You don't mention your database, but in most ones you can not store objects (and if you can it's usually if a format that doesn't allow you to query it). In the case of MySQL (as an example), you can only store strings, which either …
Comment by
WanWizard
March 2014
permalink
Facades in Fuel 2.0
It is still very much a work in progress, but I will imagine the current static classes will remain where they are for the time being. Once all service providers are setup and all injecttion factories are ready, all forge() logic should be in there…
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
Not a bad idea. I'll think about it. Or, you can send in a pull request for it?
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
You should only use auto_registration if you don't care about local account, and you don't want to link accounts. It's there for simple "login using twitter" kind of scenario's. You shouldn't use it for more comp…
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
I think that is a very bad idea. If you implement something like this, I can create a fake account somewhere that has someone else's email address, with which I can steal that persons account in your application without knowing the password. …
Comment by
WanWizard
March 2014
permalink
Queue package
Cool. One question though, instructions say: Make a new file in fuel/app/tasks with the name queue.php on your application with the follow code:
Comment by
WanWizard
March 2014
permalink
Password Change feture not working
It throws exceptions if the input is not correct. And returns a boolean if it does. What does it return?
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
That can not be avoided, you have the same with providers that do provide a nickname. If no user is logged in, and you have auto_registration enabled, it will attempt to do so. It has no way of knowing both users are the same physical person. So …
Comment by
WanWizard
March 2014
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,371
Last Active
6:46PM
Roles
Administrator