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
8243
Activity
Initial Database Setup
On OS-X you can also have the problem that the commandline PHP uses a different php.ini from the one your webserver is using, causing stuff (for example PDO drivers) to be missing.
Comment by
WanWizard
September 2013
permalink
Initial Database Setup
Correct. The idea is that you put generic (= not-environment specific) configuration in app/config, and use the environment folders to override that. That works for every config file. I have for example email config files in every environment, beca…
Comment by
WanWizard
August 2013
permalink
Initial Database Setup
If I read the comments in that db.php correctly, you've changed the global db.php (which is in app/config), and not the environment db.php (by default app/config/development/db.php). Since both are merged on load, your settings are overwritte…
Comment by
WanWizard
August 2013
permalink
FuelPHP with XAMPP
Cool. Problem solved. Thanks for the feedback.
Comment by
WanWizard
August 2013
permalink
FuelPHP with XAMPP
I'm running XAMPP on Windows Server 2012 to test FuelPHP in a Windows environment, and I don't have an issue with this, so I don't think it's XAMPP related. If the root loads fine, but no other URI does, even if you load it expl…
Comment by
WanWizard
August 2013
permalink
Oil produces empty migrations
Does it work without --soft-delete? And can you create an issue for it at https://github.com/fuel/oil/issues, so someone can have a look and fix it if needed?
Comment by
WanWizard
August 2013
permalink
fuelphp localhost configuration any one. Need help
Can you be a bit more specific? * Install FuelPHP * Create a VirtualHost definition * point its DocumentRoot to the ./public folder of your installation Nothing more, it's the same as every other local installation.
Comment by
WanWizard
August 2013
permalink
Upload creates ghost file
I've just pushed a fix (to 1.7/develop) that should prevent double processing if auto_process is enabled in the configuration.
Comment by
WanWizard
August 2013
permalink
Code question: Upload
Ah, ok. $item == 'element' and $item = 'field'; is short for if ($item == 'element') $item = 'field'; It uses the fact that PHP stops evaluating a boolean expression if it has the answer (in an and-operati…
Comment by
WanWizard
August 2013
permalink
Code question: Upload
It's very simple. The Upload class has been a part of Fuel for over two years now. Recently we swapped it by the new Upload package we've created (from scratch) for Fuel 2.0. Since this isn't compatible with 1.x, we needed to add a F…
Comment by
WanWizard
August 2013
permalink
Upload creates ghost file
Can you explain where, and what you think is misleading? So we can correct them?
Comment by
WanWizard
August 2013
permalink
Naming Conventions for ORM Models
Ah, ok. In that case, I already answered that. ;-)
Comment by
WanWizard
August 2013
permalink
Naming Conventions for ORM Models
Define "non-ORM" logic? For me, a model is the abstraction layer between my code and my data. So methods relating to retrieving, storing and processing data go in the model. So my controllers don't contain: Model_Blah::query()->…
Comment by
WanWizard
August 2013
permalink
Issue with 404 Handling
Ok. Thanks for confirming that.
Comment by
WanWizard
August 2013
permalink
Issue with 404 Handling
So what is the problem now exactly, because you've lost me a bit. - It is an issue with 1.6.1. Yes, we know that, that's why it was fixed. - There is no issue with 1.7. Yes, because we fixed it. Am I correct, or is it different?
Comment by
WanWizard
August 2013
permalink
Possible bug with Uri::segment()
According to the docblock in the code, the index is base-1, so there is no such thing as segment(0). Which is logical, you're asking for the first segment. segments() gives you the raw segment dump in an array, and arrays always start at 0.
Comment by
WanWizard
August 2013
permalink
Issue with 404 Handling
I can not reproduce that, when I take a stock 1.7 install, and try to access "/welcome/wrongaction", I get the 404 view (APPPATH/views/welcome/404.php) produced by the action_404... Your example can also never work, because "/test&qu…
Comment by
WanWizard
August 2013
permalink
"Cannot redeclare class" issue
That's not what it says. That section is about changing the "Controller_" prefix to "\Controller\" namespace. You are now mixing the two. The way the cascading filesystem works, is that it takes the namespace and the class…
Comment by
WanWizard
August 2013
permalink
Issue with 404 Handling
If that is all you have, it will default to the index action, and if that exists, it should call it. If you have a method (an additional URI segment), and that doesn't exist, either the controller's router method (
Comment by
WanWizard
August 2013
permalink
"Cannot redeclare class" issue
You usually get this when you have either a namespace issue or a case issue. The autoloader is case sensitive, so if you use two different ways to load the same file, you get this error when the autoloader tries to load the same file for the second…
Comment by
WanWizard
August 2013
permalink
Issue with 404 Handling
is the HttpNotFoundException caught in your index.php? And does your _404_ route point somewhere? You don't have a route defined that would capture that URI?
Comment by
WanWizard
August 2013
permalink
to_array bug with nested singular relations
Fix pushed: https://github.com/fuel/orm/commit/ecd9362870ca6cce324b3c442ffec7fa69fb25cd Thanks for reporting this.
Comment by
WanWizard
August 2013
permalink
to_array bug with nested singular relations
I've ran these tests: class AAA { public function test() { static $var = 0; $var++; echo "In class ",get_class($this),", variable is now: ", $var, " "; } } class BBB extends AA…
Comment by
WanWizard
August 2013
permalink
Errors Handling
If the 500 was generated by your webserver, Fuel doesn't come into play (you have a server error, PHP isn't even loaded), so I'm not sure what you're on about.
Comment by
WanWizard
August 2013
permalink
Errors Handling
To trigger a 500 error, use throw new \HttpServerErrorException(); To handle it, catch it in your index.php, the same way the 404 is caught, and issue a new request to a controller method that handles your 500 error.
Comment by
WanWizard
August 2013
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,389
Last Active
1:38AM
Roles
Administrator