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
error : Maximum function nesting level of '100' rea
What exactly are you doing here? In your code, only a view is returned. Yet the format class is called, indicating a conversion of some sort. Line 89 (in 1.6, in later versions that's a comment) is in the to_array() method, extracting data fro…
Comment by
WanWizard
November 2013
permalink
Multi server fuelphp?
I'm not sure what the question here is? A task queue refers to background batch processing, which I can't match with "many people access server"... I general, the distribution of load between multiple servers is not really a F…
Comment by
WanWizard
November 2013
permalink
Extra Data Returned when Api with Session set is called
If you use cookie sessions, crypt is used to encrypt the session cookie. So it could indeed be an error due to an invalid crypt config (or the absence of file rights to create or update the crypt config).
Comment by
WanWizard
November 2013
permalink
Extra Data Returned when Api with Session set is called
No errors in the log. Are you testing using a real REST call, or via the browser? You can also modify your index.php, and log the result of the request to a file before echo'ing it out. Then you can see exactly what Fuel has generated.
Comment by
WanWizard
November 2013
permalink
How to setup code completion in Phpstorm?
Has been posted several times. You have to add a dummy file to your project, which will tell your IDE the class mapping. Here's an example of such a file: https://gist.github.com/kenjis/2364280
Comment by
WanWizard
November 2013
permalink
Extra Data Returned when Api with Session set is called
If you have an error, warning or notice, it should be recorded in your apache log.
Comment by
WanWizard
November 2013
permalink
Extra Data Returned when Api with Session set is called
I don't see anything strange about the code. And as far as I'm aware Session doesn't output anything. Are you using output compression? If so, there might be some error message attached, that is converted to rubbish by the decompress…
Comment by
WanWizard
November 2013
permalink
Primary key on model Model_Content_Type cannot be changed.
You can not have a PK that is also an FK. If you disconnect a relation (because you delete the parent), the FK will be set to NULL, which is not an allowed operation for a PK.
Comment by
WanWizard
November 2013
permalink
Querying a query. How does it work?
This query has a WHERE clause on students, so obviously it will never return courses without students, as there WHERE clause will be false? If you don't put the WHERE in, you say "give me all courses, and all students who registered for t…
Comment by
WanWizard
November 2013
permalink
Fuel 2.0 assets
With regards to your minifier question: everything in the framework should work without external dependencies (with the exception of other composer packages). So no binaries, no optional PECL extensions, nothing Linux only, etc...
Comment by
WanWizard
November 2013
permalink
Fuel 2.0 assets
There has already been quite a bit of "think work" performed in the area. If you want to help, best thing to do is to hop onto IRC (#fuelphp), and get hold of Steve (@uru).
Comment by
WanWizard
November 2013
permalink
Auth::has_access() on multiple drivers
The mutliple driver design was meant to be a system for mutliple auth backends. If will only check drivers that are in a logged-in state, so it your user is authenticated by your second driver, the has_access() method of your first driver will retu…
Comment by
WanWizard
November 2013
permalink
remember me
You don't have to do anything. If you call Auh::check(), and no user is currently logged-in, it will check for a remember-me cookie, and if present, will use that to login.
Comment by
WanWizard
November 2013
permalink
Database prefix problem
Ah, your problem is that the alias is prefixed too. That's only a cosmetic issue, but if it bothers you, please create an issue for it at https://github.com/fuel/core/issues, linking to this thread. Or send in a PR with the fix.
Comment by
WanWizard
November 2013
permalink
Database prefix problem
I don't understand what you mean? You have defined a table prefix in your configuration, and are now suprised that all your tables are prefixed?
Comment by
WanWizard
November 2013
permalink
Database prefix problem
Do you have a prefix configured in your db.php config file? If so it will be used to prefix all table names.
Comment by
WanWizard
November 2013
permalink
Call to protected method Fuel\Core\Image_Gd::_resize() from context
Use a class alias file to fix your IDE, such as this one: https://gist.github.com/huglester/3860656 I just have it in the root of my project, excluded in git so it's not in our repo's.
Comment by
WanWizard
November 2013
permalink
Call to protected method Fuel\Core\Image_Gd::_resize() from context
I think you hit a bug that is already fixed in 1.8/develop, and will be part of the upcoming 1.7.1 release. Looking at your code, I notice you're using \Fuel\Core. You should never do that, that will ruin all core extensibility. All Fuel class…
Comment by
WanWizard
November 2013
permalink
Custom Observer throwing error, not found
Your custom observer should not be in the Orm namespace, since that namespace is reserved for the Orm package (which is a core package and should not be altered). Any other namespace will do, this works fine: protected static $_observers = array( …
Comment by
WanWizard
November 2013
permalink
Using SSL with PDO MySQL connections
2.0 only uses PDO, and no longer the native platform drivers. It has the option of passing in custom PDO attributes from the config. It does not have anything specific for SSL, so you will need to create two DB definitions, one with and one without…
Comment by
WanWizard
November 2013
permalink
Quote Identifier Security Advisory
It is in some cases possible that malicious code is injected to the the fact that the $1 will be replaced as-is with the input value. If that is posted and/or insuficciently validated, you run a risk.
Comment by
WanWizard
November 2013
permalink
Disabled options in Form::select();
No, there is not.
Comment by
WanWizard
November 2013
permalink
Could restful work in modules
Yes, not a problem. Everything you can do in app you can do in a module. Just call them via http://yourhost/main/restapi/list and http://yourhost/honda/restapi/list. Make sure your module path is defined in app/config/config.php (it's comment…
Comment by
WanWizard
November 2013
permalink
1.7 Image class failing when using force_extension
I'm afraid it will never be finished. ;-) Image was a class contributed, but the developer hasn't been around for a long time, and nobody really knows how it works, as the code is a bit of a mess. It will not be part of Fuel v2, it will …
Comment by
WanWizard
November 2013
permalink
1.7 Image class failing when using force_extension
The image class is a bit of a mess I'm afraid. If I look at check_extension(), it first checks a forced extension. Which isn't there, as you correctly observed. Then it loops over the valid extensions array, and checks if the file has suc…
Comment by
WanWizard
November 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,373
Last Active
5:37AM
Roles
Administrator