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
After deploy autoloader failing
You don't by accident develop on Windows, and deploy on linux or MacOS? And if so, did you stick to the naming conventions? If not, know that a Windows filesystem is case insensitive (user.php is the same as User.php), but on Linux it isn'…
Comment by
WanWizard
November 2011
permalink
After deploy autoloader failing
How do you refer to "User" in Customvalidation? Where is this class defined? It sound very much like a namespace error...
Comment by
WanWizard
November 2011
permalink
Security question
You can use whatever you want, FuelPHP doesn't enforce anything. We even provide htmlawed as vendor package in the core if you want to filter for every eventuality. And no matter what you do (except removing parts of the input), I can come up …
Comment by
WanWizard
July 2011
permalink
Hard to install it for former CodeIgniter developer on Windows platform
There is no requirement, FuelPHP has mysql (3.x/4.x), mysqli (5.x) and PDO drivers. You can choose the desired one in your database configuration.
Comment by
WanWizard
December 2011
permalink
Ningauth package problem
In your bootstrap, you add the 'Shopify' namespace to the core, which means all classes defined in this namespace will become part of the global namespace. And this will lead to class name collisions. For example, your classes/shopify.php…
Comment by
WanWizard
December 2011
permalink
Hard to install it for former CodeIgniter developer on Windows platform
That's not going to work, FuelPHP requires PHP 5.3+.
Comment by
WanWizard
December 2011
permalink
Hard to install it for former CodeIgniter developer on Windows platform
That depends on the webserver you use. If you use WAMP, there should not be any difference between linux and Windows in terms of installation. If you install inside the docroot (which from the looks of it you do), use the htaccess example for that …
Comment by
WanWizard
December 2011
permalink
Ningauth package problem
You're not using namespaces properly. When you call classes from other then the current namespace, you have to prefix them. For Fuel's classes, they all live in the global namespace, so you have to use $var = \Session::get(); if the code…
Comment by
WanWizard
December 2011
permalink
Wrapping FuelPHP around an email piping script
That's what I tried here but I couldn't get that to work, stdin was empty...
Comment by
WanWizard
December 2011
permalink
Wrapping FuelPHP around an email piping script
Hmm... Looks like the cli input feature of oil eats up all input. I'll have to pass this on to Phil...
Comment by
WanWizard
December 2011
permalink
Migration class name conflict
Maybe it thinks you're already at 2 due to the previous failure?
Comment by
WanWizard
December 2011
permalink
Upload Class. Diferent validations for diferent inputs in the same form
You will have to create a validation callback, here's an example (using a closure): http://docs.fuelphp.com/classes/upload/usage.html#/method_register. It gets passed the entire file array, so you can do custom validations based on the field n…
Comment by
WanWizard
December 2011
permalink
Wrapping FuelPHP around an email piping script
You could create an oil task which works from the commandline. See http://docs.fuelphp.com/general/tasks.html for more info.
Comment by
WanWizard
December 2011
permalink
Migration class name conflict
The obvious answer is: make sure the classnames are unique.
Comment by
WanWizard
December 2011
permalink
Observer UnexpectedValueException
You should not prefix with 'Observer_', the ORM class does that for you, that's why you get it twice.
Comment by
WanWizard
December 2011
permalink
Warden
It depends on the platform, and what you have installed. On some, you will have to install the desired locale files first.
Comment by
WanWizard
September 2011
permalink
cpu is high
It is absolutely stable, I've been using it to develop applications since January, 2 months after conception. Like any other framework, it is in constant development, so the best is to choose a release version, and stick to it, doing a control…
Comment by
WanWizard
November 2011
permalink
cpu is high
That will produce a very simple query. If that causes CPU load, there's either something wrong with the platform your using (lack of CPU power or memory), or with the configuration. Activate the profiler to see what queries are generated, and …
Comment by
WanWizard
November 2011
permalink
Get Str::tr() to accept dot notation?
Can you add a feature request for this, linking to your solution?
Comment by
WanWizard
November 2011
permalink
Dinamically re-set DB connection
You can create a custom instance: $db = \Database_Connection::instance('customname', $configarray);
Comment by
WanWizard
November 2011
permalink
ie8 session dropping out
Is the session cookie succesfully send to the client? Does the client send it back?
Comment by
WanWizard
November 2011
permalink
One class instance in every hmvc request.
You need this in your bootstrap: // Add classes you want to override here Autoloader::add_classes(array( 'View' => APPPATH.'classes/view.php', )); And class View extends Parser\View { } Which works fine here. Maybe som…
Comment by
WanWizard
November 2011
permalink
One class instance in every hmvc request.
You have to understand how the framework works in relation to views. FuelPHP uses lazy rendering, which means View objects aren't rendered until they are cast to string (which happens for example when you echo it). If you have a nested constru…
Comment by
WanWizard
November 2011
permalink
controller inside a controller
You don't HAVE to do anything. You can do whatever you want. FuelPHP is flexible enough to accomodate you. // this works too $result = \Module\Controller_This::that($parms); // or this $object = new \Module\Controller_This(); $result = $objec…
Comment by
WanWizard
November 2011
permalink
controller inside a controller
If you don't want an HMVC call, don't make one. HMVC calls aren't meant to call other class methods, it's a complete framework request, which is supposed to return the output related to the call (in most cases, html, xml or json…
Comment by
WanWizard
November 2011
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,368
Last Active
3:49AM
Roles
Administrator