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
Chat System
No offence, but this sounds a bit like "I want to build a car. It needs to have 4 weels. How can I do it with FuelPHP?". FuelPHP is an application development framework for the PHP programming language. As such, it aids in application dev…
Comment by
WanWizard
March 2014
permalink
Chat System
Can you be more specific? What do you want explained?
Comment by
WanWizard
March 2014
permalink
Upload::Process not throwing Exception
Just noticed you capture the process() call. The check happens in the constructor, so depending on your config (auto_process comes to mind) the class might be instantiated somewhere else, before you get to this bit of code.
Comment by
WanWizard
March 2014
permalink
Upload::Process not throwing Exception
Is that controller in a namespace? If so you need to catch \Exception, otherwise PHP tries to catch a class called "Exception" in the current namespace, which is never thrown.
Comment by
WanWizard
March 2014
permalink
RSS Package?
Mine is an RSS client, so for reading feeds, not for creating ones. I don't have experience with the other one.
Comment by
WanWizard
March 2014
permalink
Very simple blog application
Cool! I'm definitely going to find the time to install it, and have a look. And maybe add it to the "example applications" section of the tutorials page in the docs?
Comment by
WanWizard
March 2014
permalink
FuelPHP Packages and autoloading
Chances are that by the time it gets to loading the package, the Error class is already loaded. Which is why the documentation states you should do this overloading in your app bootstrap. What does a var_dump(class_exist('Error', false)…
Comment by
WanWizard
March 2014
permalink
FuelPHP Packages and autoloading
You have to add the package namespace to the core namespace. See the bootstrap of the Auth package as an example. All core classes are aliases to the global namespace. You override a core class by changing this alias, to it points to your new class…
Comment by
WanWizard
March 2014
permalink
RSS Package?
Yes, on a daily basis, for info feeds (I use it to keep an eye on change or commit log feeds, vendor end-of-life notice feeds, etc) it's still a very good solution. Generating an RSS feed is very simple, it's just an XML structure, not su…
Comment by
WanWizard
March 2014
permalink
phpseclib - creating RSA encrypted key
The problem is in the modifications we had to make to support PBKDF2, which it doesn't natively. If we start using the Composer package (which isn't all that btw, it means for example losing the namespace), we need to rewrite that part, …
Comment by
WanWizard
March 2014
permalink
phpseclib - creating RSA encrypted key
Eh... Forget it. See https://github.com/phpseclib/phpseclib/issues/20 Pushed the fix to 1.8/develop.
Comment by
WanWizard
March 2014
permalink
phpseclib - creating RSA encrypted key
The current PHPSecLib is 0.3.6, while we have implemented 0.2.2, so it's quite possible there are differences. It was never meant to be used by framework users, only internally. Can you create an issue for it at https://github.com/fuel/core/is…
Comment by
WanWizard
March 2014
permalink
phpseclib - creating RSA encrypted key
It is because it is defined in Crypt_DES, but from what I can see that isn't loaded as a dependency. You can probably fix it using: new Crypt_DES(); $crypt = new Crypt_RSA(); $crypt->setPassword('123456789'); $key = $crypt->cr…
Comment by
WanWizard
March 2014
permalink
Remember_Me() question
match_ip is disabled, so that can not be the cause. There haven't been any recent changes in Session, so 1.7/master should be up to date. What you can do is (temporary) swap to the 1.8/develop fuel/core/session files. I have added additional…
Comment by
WanWizard
March 2014
permalink
Remember_Me() question
Those two snippets are the same?
Comment by
WanWizard
March 2014
permalink
i am creating cache but that cache is store on server
Cart data (a shopping in progress) is normally stored in the user session, and user session data should always be stored server side for security reasons. Using cookies for sessions should only be used for very simple applications that don't h…
Comment by
WanWizard
March 2014
permalink
Remember_Me() question
A remember-me cookie is a standard session cookie (i.e. equal to a session configured for cookie storage). So all configuration and restrictions for sessions apply, If I compare the two, I see a different IP hash (so your PC had a different iP add…
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
No, multibyte is a character set like utf8 (but there are plenty of others) where characters are represented by two bytes. Compared to ASCII, where one byte is used. You need a characterset like this to be able to work with non-western languages, fr…
Comment by
WanWizard
March 2014
permalink
mod_php PHP error in HTACCESS fuelphp
There aren't that many requirements, the few that are there are also listed in the docs: - minimum PHP 5.3.3 - finfo pecl extension installed (must be default in 5.3, but some hosters doen't) - rewrite is only needed if you want to remove …
Comment by
WanWizard
March 2014
permalink
How does \Uri::current() work?
There is an issue with the use of Uri::current() in 1.7.1 in relation to HMVC calls (https://github.com/fuel/core/issues/1641), which was fixed recently. If you're not on 1.8/develop, it should be safe to backport the Uri class. Or wait for 1.7…
Comment by
WanWizard
March 2014
permalink
Call composer package
Fuel uses the composer autoloader, so just load the classes as defined by the composer library (tcpdf in this case)?
Comment by
WanWizard
March 2014
permalink
i am creating cache but that cache is store on server
Huh? What do you want to cache client side, and how is that supposed to get there? Also, there is no Fuel client side, so maybe this is not the place to ask this question?
Comment by
WanWizard
March 2014
permalink
Queue package
I don't know. ;) We usually refer to composer packages as libraries (also in Fuel v2 which is composer driven), to avoid confusion between the two. On Bitbucket, you give the instructions to create a task, and in that task, put this code:
Comment by
WanWizard
March 2014
permalink
Queue package
To be clear, with package I mean: http://fuelphp.com/docs/general/packages.html
Comment by
WanWizard
March 2014
permalink
Queue package
No, but you referred to it previously as a package, hence my remarks. So it's not a package?
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,370
Last Active
2:39PM
Roles
Administrator