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
Archive & XML file
Internally to the Format class instance, everything is an array. If your input is XML, use $xml = Format::forge( file_get_contents( '/my/xml/file.xml', 'xml' ) );
Comment by
WanWizard
September 2012
permalink
What is the best way to redirect user to previous page
before() and after() are methods that are called, as their name implies, before and after the requested method is called. before() can be used as a prepping method for your actions, for example to setup a template, assign widget views, check for gl…
Comment by
WanWizard
January 2012
permalink
Ideal banking
Yes, I do in one app (with ABN-AMRO) and I know Frank (FrenkyNet) had some applications that used it (don't know which bank) and he fixed some bugs will doing that. I've only tested the code using http://www.ideal-simulator.nl
Comment by
WanWizard
September 2012
permalink
Can't Run
Even more odd. If in that code in connection.php $compress == false, it will not even go into the if() that uses the constant. To solve your issue just remove that if(), if you don't use compression it's not needed. I'll add an issue…
Comment by
WanWizard
September 2012
permalink
request class and cache
The Request class doesn't have any built-in caching capabilities. But you only need a few lines of code to cache the result using the Cache class, for example with a hash of the URI as cache key. $key = sha1(Uri::current()); try { $respo…
Comment by
WanWizard
September 2012
permalink
Can't Run
That is odd, according to the PHP manual it's perfectly fine to use defined() to check for existence of a class constant. Do you have compression enabled in your db config? If not, it shouldn't even get to the original line in the first p…
Comment by
WanWizard
September 2012
permalink
[SESSION] - Create a session variable
In app controllers the leading slash isn't needed, you're already in the global namespace (unless you have namespaced your app controllers).
Comment by
WanWizard
September 2012
permalink
Can't Run
fixed here: https://github.com/fuel/core/commit/250482b2758ee54955bc63af3abc84c2eec8950a. Issue is no longer needed...
Comment by
WanWizard
September 2012
permalink
Can't Run
Please create an issue for this at http://github.com/fuel/core/issues so someone can have a look at it. Your PHP is probably compiled with the mysqlnd driver, which does not support compression. As a workaround you can simply comment line 83 in the…
Comment by
WanWizard
September 2012
permalink
Problem with Twig and FuelPHP
The parser extends the View class, it is not theme aware.
Comment by
WanWizard
August 2012
permalink
Archive & XML file
PHP has built-in methods for XML manipulation. You can use the Format class to convert XML to other formats, for example array or json. If your archive is a zip file, you can use the Unzip class. Other archive types are not supported.
Comment by
WanWizard
September 2012
permalink
What is the best way to redirect user to previous page
Read the error. This has nothing to do with sessions, but with the fact that the action_index() method doesn't return anything. In this case because you have overloaded the after() method, but don't call the parent::after(), so there is n…
Comment by
WanWizard
January 2012
permalink
[SESSION] - Create a session variable
I never had this problem, so I wouldn't know how to reproduce it. Which version of FuelPHP? There are some issues with Sessions in 1.2 that have been fixed in 1.3, maybe try upgrading first?
Comment by
WanWizard
September 2012
permalink
[SESSION] - Create a session variable
Are you using cookie based sessions? Do you have a redirect after you set the session variable? Have you configured your cookie configuration properly? You need too, and make sure you are doing it correctly. For example, "localhost" is no…
Comment by
WanWizard
September 2012
permalink
[SESSION] - Create a session variable
** Moved to General **
Comment by
WanWizard
September 2012
permalink
Ideal banking
It's a disclaimer, because I'm not in a position to test all supported banks and all products they offer. But other then that, it's working fine in my applications, and I receive similar feedback from other users. Most banks offer a …
Comment by
WanWizard
September 2012
permalink
ORM doesn't work on Triggered Query
Ah, you query the same data twice in a single request? Our ORM is a Datamapper, which means it has a unified datastore which is used internally. When you request the same object twice, it is returned from the datastore, no query is executed. With t…
Comment by
WanWizard
September 2012
permalink
not to strip_tags only for one field using with input_filters
No, that is not possible (directly). The security class only passes values to these functions, so they are not aware of the variable name. The only option would be to extend the Security class and write your own filter method. Having said that, you…
Comment by
WanWizard
September 2012
permalink
ORM doesn't work on Triggered Query
Can you be more specific? What is "can't"? What happens? Any errors?
Comment by
WanWizard
September 2012
permalink
FuelPHP 1.3
There are no changes to the app repo, so you can just replace the core and package folders. You can find the changelog here: https://github.com/fuel/core/wiki/Changelog-v1.3
Comment by
WanWizard
September 2012
permalink
Problem wit magic_quotes_gpc set to on
Tell your host he's a moron, magic quotes has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. And try switching these, so do a stripslashes before encoding it.
Comment by
WanWizard
September 2012
permalink
Class 'finfo' not found
Unfortunately there is no workaround that I know of. Some hosting providers have the (extremely false) notion that disabling fileinfo would increase their security. Some hosting providers compile their own php version, and forgot/didn't/couldn…
Comment by
WanWizard
April 2012
permalink
Save / Cache image from URL
You need to download the image first, it's pretty pointless to cache the url. The most obvious method to fetch it is file_get_contents(), but not every host has that enabled. Alternative is curl, which can be used to fetch remote data without …
Comment by
WanWizard
September 2012
permalink
Crud with multi field primary key
No, the current Model_Crud has no support for compound keys.
Comment by
WanWizard
September 2012
permalink
\Orm\Query::group_by() ?
When running a standard DB query you can automatically create model objects as a result by using the as_object() method. See http://docs.fuelphp.com/classes/database/usage.html#/results
Comment by
WanWizard
September 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
WanWizard
Joined
January 2011
Visits
2,373
Last Active
5:48AM
Roles
Administrator