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
Can the profiler be enabled from anywhere else but config?
This has been asked before, so a search should give you the answer. I personally use this in my app config: 'profiling' => Fuel::$env !== 'production' and isset($_GET['profile']),which means you can activate the pro…
Comment by
WanWizard
December 2012
permalink
Problem with Auth Tutorial when not being an Admin user
You arrive at login. Auth::check() is false, so you are presented the login form You login as a non-admin. The login succeeds, and you get redirected to 'admin'. You get in the before(). The action is 'index', because of the redi…
Comment by
WanWizard
December 2012
permalink
Weird duplicated 404 request
That should be there, it's what captures all 404 cases. The framework will throw a HttpNotFoundException when it encounters a 404 situation, which is then caught in your index.php, and which will fire a new request for the 404 route. If you r…
Comment by
WanWizard
December 2012
permalink
smarty outputting blank page with no errors
If there is an error it should be recorded in your webserver logs. Views work by running their code, then capturing their output. If there is a fatal error, there's nothing to capture.
Comment by
WanWizard
December 2012
permalink
Response status of a REST controller if format not supported or not set
I haven't backported it, and I expect a 1.5 to be released soon, I don't think I will. If you're using git, and you sync with our repo, cherry picking is easy enough.
Comment by
WanWizard
December 2012
permalink
Problem with Auth Tutorial when not being an Admin user
I don't know the tutorial, but I looked briefly at it, and at one point it checks for membership of '100', and if not, it redirects to "admin/login". Check your code to see if that doesn't redirect back if already logge…
Comment by
WanWizard
December 2012
permalink
smarty outputting blank page with no errors
You've got full error reporting on? If the template has a PHP error, the resulting view is empty.
Comment by
WanWizard
December 2012
permalink
How to update my data in the save() method
I don't think any of the methods are properly documented, that's still on my todo list...
Comment by
WanWizard
December 2012
permalink
Delete Key in Models array possible
If xml is a property (i.e. a column in your table), you can't remove it, you can only 'unset' it: unset($animal->xml);
Comment by
WanWizard
December 2012
permalink
How to update my data in the save() method
Because that 4th line overwrites the fetched object with a new one? If it is your intention to update the values of the object fetched with the find(), then do so, and don't forge a new object. $animal->from_array($animal_array); would do…
Comment by
WanWizard
December 2012
permalink
Fatal error: Exception thrown without a stack frame in Unknown on line 0
What session driver are you using? Objects tend to be very big, so storing them in the session might not be a good idea. Also, if you use ORM, know that objects are cached, so you can do a find on primary key in another method without it generatin…
Comment by
WanWizard
December 2012
permalink
How to update my data in the save() method
I'm not sure what you're trying to do here. Why would you forge a new object if you want to update an existing one? Any why save an object, and then create a new one in which you save an xml version of itself? It all looks very complicated…
Comment by
WanWizard
December 2012
permalink
username as first parameter
That is correct. To work around that you'll need routes for your other pages that are captured before the generic catch-all, but that's far from ideal either. Using the 404 as a catch-all is quite common, you'll only have to make s…
Comment by
WanWizard
December 2012
permalink
username as first parameter
You can only do that with a front controller. You route every request to it (that matches your URI format), and have it check the parameters. If they match, you can use an HMVC call to a second controller to deal with the information, and if they d…
Comment by
WanWizard
December 2012
permalink
Fatal error: Exception thrown without a stack frame in Unknown on line 0
This indicates an error in either the error handler or the shutdown handler (most likely). By this time PHP is already tearing down the session, and no error handler is available anymore, so it barfs out this fine and descriptive error message... :-…
Comment by
WanWizard
December 2012
permalink
How to paginate limit the number of related items whith offset and limit?
If you use a related query, by default the limit is placed on the subquery to prevent incomplete results. If you don't care about that, use 'rows_limit' and 'rows_offset' instead.
Comment by
WanWizard
December 2012
permalink
$query->related() calls
That works too, but I find it not intuitive to pass an array in an array, it would be more logical to keep the same way or working as with the chained methods.
Comment by
WanWizard
December 2012
permalink
Weird duplicated 404 request
Why would your 404 action be called if the requested action (in this case 'test') exists, and is called? Check your webserver log to see it this is caused by external requests. When you request 'test', does that result in a sing…
Comment by
WanWizard
December 2012
permalink
Weird duplicated 404 request
You don't have a missing asset, or some rights issue, that causes a second rewrite to index.php?
Comment by
WanWizard
December 2012
permalink
$query->related() calls
As things stand at the moment, it's a typo, and the code expects your second example. But in my opinion this is incorrect, as that syntax doesn't allow you to insert a where clause other then "is equal". Which means the code nee…
Comment by
WanWizard
December 2012
permalink
Strange Errors
The Fuel autoloader requires all filenames to be lowercase. You don't mention the OS you're using, but on Windows (and some Mac-OS versions) you can get away with mixed-case filenames, on other platforms you don't. So fuel/app/clas…
Comment by
WanWizard
December 2012
permalink
how to routing without index.php
The default FuelPHP installation is not meant to be installed inside the docroot, or a folder of the docroot, as you have installed it. This means you'll have to adjust the .htacess to your environment. See http://docs.fuelphp.com/installation…
Comment by
WanWizard
December 2012
permalink
Oil ceates full ULRs instead of partials
I don't know exactly where these snippets come from, and why $uri contains a fully qualified URI in the second case. But I assume it's a URI created with Uri::create(), which uses the base_url defined in your config file. If that is set t…
Comment by
WanWizard
December 2012
permalink
Response status of a REST controller if format not supported or not set
Ok, did some debugging and it does indeed ignore the status in response() if the format defined is not supported by the Format class. Fixed here: https://github.com/fuel/core/commit/f391be45a8155e5e4dedfe0d93cf0ffaec7ed10d You can backport this to…
Comment by
WanWizard
December 2012
permalink
What will be with fuelphp?
Nobody will take his place, as nobody "has" a place in the team. We are all "developer", full stop. We already knew Jelmer was about to do other things last summer, and you haven't noticed it until he formally announced it.…
Comment by
WanWizard
December 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,369
Last Active
3:32PM
Roles
Administrator