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
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
REST Controller ignoring $rest_format variable?
The reason for this sequence is that it's considered good practive to use the HTTP ACCEPT header to signal the type of response the client wants. Ideally you should not restrict the client as to the desired format, and for your REST API it do…
Comment by
WanWizard
January 2013
permalink
_404_ overwrite the Uri::segment ?
Yes. 404 is generated by the router when it detects it has nowhere to route, and it will do that by throwing an HttpNotFoundException. If you don't have any code in place to capture that exception, it will bubble up to your index.php, where i…
Comment by
WanWizard
January 2013
permalink
How can I set multiple primary keys at creating new record?
The first one should work to. As long as a model is in "new" state, AND no value has been assigned to the primary key column(s), you should be able to assign it like that too. Are you use that exact syntax isn't working? And if so,…
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
Database profiling needs to be enabled seperately since it's quite performance impacting. You enable it on a per-connection basis, in your db.php (profiling => true).
Comment by
WanWizard
January 2013
permalink
MySQL and MongoDB in parallel
Let's correct that: There isn't anything "derived" from CodeIgniter in FuelPHP, other than the Unzip class. At the moment, Mongo and Redis are supported through separate classes, they don't run via the query builder. So it&…
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,400
Last Active
1:44AM
Roles
Administrator