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
8248
Activity
Why can't I access my module after it has been loaded and checked?
Have you changed your configuration? If you use the "Controller" sub namespace instead of the "Controller_" class prefix, you have to change the controller prefix in your config.php from 'controller_prefix' => …
Comment by
WanWizard
January 2013
permalink
Occasional requests take over 10 seconds
Absolutely. And I can't think of any reason why this would happen. Config::get() is nothing more than a glorified array_key_exists()...
Comment by
WanWizard
January 2013
permalink
Occasional requests take over 10 seconds
Honestly, I don't have a clue. Run an xdebug trace and analyze it with kcachegrind of webgrind?
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
I'm pretty sure it's not a bug, otherwise it would have been reported earlier, there hasn't been a code change in the profiler for many months. I can not reproduce it, as soon as I enable profiling in config.php and in the db.php …
Comment by
WanWizard
January 2013
permalink
Composite Primary Key error
Sounds like you haven't defined the primary keys in your model?
Comment by
WanWizard
January 2013
permalink
Why function always send us to template
Controller actions always have to return a Response object. If you use a base controller, it's after() method will construct a Response object for you if you haven't done it. So I don't know what you intend to achieve by returning tr…
Comment by
WanWizard
January 2013
permalink
Removing 'Options +FollowSymLinks'
Yes, no problem. If you haven't used symlinks anywhere, you don't need it.
Comment by
WanWizard
January 2013
permalink
Messages reset error using Smarty template in depot project
I don't know what Messages::reset() does, but from the looks of it, it returns a Messages_Instance object, presumably so you can chain further method calls. You can't echo out an object.
Comment by
WanWizard
January 2013
permalink
Why can't I access my module after it has been loaded and checked?
Yes. Have you moved your controllers into a namespace? From the looks of it, not. That page described that by default, controllers and models live in the same namespace, and are prefixed with their function. So a class containing a controller calle…
Comment by
WanWizard
January 2013
permalink
Why can't I access my module after it has been loaded and checked?
You can't simply call controllers like that. Well, technically you can, but since it's not an HMVC call (you'll need to forge a request for that), the context is still set to 'app', so your view will not be found. What go…
Comment by
WanWizard
January 2013
permalink
Custom validation error message with ORM
No, that is not possible. Validation messages are defined per rule, not per field. The only way to do this is to define a custom rule.
Comment by
WanWizard
January 2013
permalink
Why can't I access my module after it has been loaded and checked?
FuelPHP is designed on the JIT principle, which means it doesn't do anything that isn't absolutely needed, until it's needed. In this case, loading a module just means the autoloader is informed that the module exists, and introduces…
Comment by
WanWizard
January 2013
permalink
How can I set multiple primary keys at creating new record?
Can you give the complete backtrace of the error? This error was fixed before 1.4.
Comment by
WanWizard
January 2013
permalink
Login to fuelPHP forum problem
I assume there's something in the forum software that uses hardcoded URL's instead of the current one...
Comment by
WanWizard
January 2013
permalink
Form::input with value zero
Same question as in IRC? This is a bug in 1.4 that was discovered just after the release, and fixed. Wait for the release of 1.5 (which will be soon), or backport fuel/core/base.php from 1.5/develop to 1.4.
Comment by
WanWizard
January 2013
permalink
[ Error ]: Primary key cannot be changed.
You might want to consider upgrading (to 1.4, or 1.5 which is around the corner). This bug has been fixed over 4 months ago: https://github.com/fuel/orm/commit/cf4c397ec71ba6e5fcd05b8b91328dd46eed734d
Comment by
WanWizard
January 2013
permalink
load dataurl using Image class
Don't think so, I think it works with files only. So write it to a temp file and then do your thing?
Comment by
WanWizard
January 2013
permalink
What Does the app/tests folder do in FuelPHP?
It's the location where you put your unit tests, if you decide to write them for the classes in your app.
Comment by
WanWizard
January 2013
permalink
newbie, how to return DB result from model to controller
By default, DB returns database driver result objects, as it's the fastest way to produce results. In case of the MySQL driver for example, it will return MySQL_Result_Object. These objects are by design read-only. This is not a problem, until…
Comment by
WanWizard
January 2013
permalink
Spelling in Oil Scaffold ?
You can't, it's the convention, and the generator is coded that way. You could overload the oil class in your app (see the docs on how to extend classes), and change the code.
Comment by
WanWizard
January 2013
permalink
Using Oil to sniff a database table schema to build scaffolding?
You could try https://github.com/SicoAnimal/fuel-model-generator
Comment by
WanWizard
January 2013
permalink
Right ORM model class names
There is no direct relation between model names and table names, you can just specify the table that belongs to the model in the $_table_name property. So you can name models whatever you want. I use the Model sub-namespace for my models, instead o…
Comment by
WanWizard
January 2013
permalink
[ Error ]: Primary key cannot be changed.
You're still on v1.3? Can you post the entire backtrace?
Comment by
WanWizard
January 2013
permalink
REST Controller ignoring $rest_format variable?
Standard jQuery behaviour. If you don't specify an accept, it will accept everything. Better use setRequestHeader('Accept','application/json; charset=utf-8');or $.ajax({ dataType: ($.browser.msie) ? "text" : &…
Comment by
WanWizard
January 2013
permalink
[ Error ]: Primary key cannot be changed.
To start with the ps: for the moment you'll have to use the "show source" button and manually enclose the snippit with PRE tags. I've been trying to convince the forum builders to add such a button, but so far no luck... Where e…
Comment by
WanWizard
January 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,481
Last Active
7:53AM
Roles
Administrator