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
Better form template that works great with bootstrap
Glad you've got it sorted.
Comment by
WanWizard
September 2012
permalink
Fieldset class and bootstrap twitter
You're using add_model() to populate the fieldset, so the label is defined in your model's $_properties. Normally, it's something like: protected static $_properties = array( 'date' => array( 'type' =…
Comment by
WanWizard
May 2012
permalink
Setting validation details dynamically using orm and $_properties
There's an example of a unique validation rule in the docs: http://docs.fuelphp.com/classes/validation/validation.html#/extending_validation In case of ORM there's also a third option: you can define the validation rule in the model itsel…
Comment by
WanWizard
June 2012
permalink
Fieldset class and bootstrap twitter
On a fieldset field, you can define the label as an array(), which will allow you to set attributes on the label. Looking at the code of Fieldset_Field and Form_Instance, that should work. So // instead of using 'label' => 'field …
Comment by
WanWizard
May 2012
permalink
ORM Relationships Question
find() always returns a single result object, unless you don't pass an argument, pass null, or pass 'all'. In those cases it returns a query object you can chain on. So either use array notation (like in your second example), or chai…
Comment by
WanWizard
September 2012
permalink
ORM. many-many-many relationship.
the ORM doesn't work this way, so if you want a result like in your plain SQL example, you will have to code your own query. The ORM (as the name implies) works object based. Create the models for each of the tables, and define the correct rel…
Comment by
WanWizard
September 2012
permalink
Strange many many problem
I'm using ORM in development on a daily basis (I develop on 1.4/develop), and so far I haven't seen this behaviour. Lazy loading is build around the fact that if the property doesn't exist, __get() is called, which will fire the quer…
Comment by
WanWizard
September 2012
permalink
Better form template that works great with bootstrap
The forum has session issues every now and then, very annoying indeed. You can just login again, then back two pages in your browser, and submit the post again. I'm trying to understand what your initial question is, can you be more specific? …
Comment by
WanWizard
September 2012
permalink
Lang — Display translations in many languages at once
The language settings at the moment are meant to be, as you call it, for application language. Which means it's set once (based on accept-language, parameter, cookie setting, user preference, etc), and used throughout the entire application. L…
Comment by
WanWizard
September 2012
permalink
Lstat failed errors
It happens in the garbage collection routine. At random intervals that kicks in, loops over all files in the session file directory, and deletes all files that are expired. Do you have something else running that cleans up session files? You get th…
Comment by
WanWizard
September 2012
permalink
Strange many many problem
Which version of FuelPHP? I think I saw an issue about this some time ago, and I know that one is fixed in 1.3.
Comment by
WanWizard
September 2012
permalink
Noob Question: 'No input file specified' message
I've pushed an updated .htaccess to 1.4/develop that will support both mod_php5 and fastcgi out of the box. Hopefully that will avoid questions like this in the future.
Comment by
WanWizard
May 2011
permalink
oil refine migrate error in Ubuntu 12.04 and about mysql strict mode.
That should not be necessary. The keys in that array are (or should be) all SQL keywords, and should therefore be ASCII only. If the array_change_key_case() doesn't work, that means the source value wasn't ASCII, so you might have to chec…
Comment by
WanWizard
September 2012
permalink
add_callable using static $_properties?
That is the preferred way. Custom validation rules on model properties are directly tied to those properties, so the model is the obvious location for those rules. If you have generic additional rules, creating a separate class for them and call th…
Comment by
WanWizard
November 2011
permalink
Documentation for an old fixed issue...
More examples is on our (very long) todo list. You can help by forking the docs repository, make suggested changes, and send a pull request. Any help will be greatly appreciated.
Comment by
WanWizard
September 2012
permalink
Assets issue
Wouldn't call it a bug, I don't think anyone has anticipated that someone would like to have this folders in the DOCROOT. Fixed in 1.4/develop, if you're on 1.3 you can backport core/classes/asset/instance.php.
Comment by
WanWizard
September 2012
permalink
Spam messages.
You will have to analyze the webserver log, so see what requests were fired by that user, and your code to see how you can post messages to many users in a short time. I can for example imagine that if the 'to' user in the message post is…
Comment by
WanWizard
September 2012
permalink
oil r migrate --packages=mypackage
Just checked the code. Package::load() will restore that config if it is missing, and thats why your packages still load fine. In migrate, I see that there's a race condition, when a package name is given but it can't be found $files is u…
Comment by
WanWizard
September 2012
permalink
oil r migrate --packages=mypackage
If you do that no packages can be loaded anymore. I'm sure that's not the intention. Looks like you're on an old version of Fuel, that had a bug in the migrate class. Make sure you're using 1.3.
Comment by
WanWizard
September 2012
permalink
Problems with second controller file in Module
Good you've got it sorted. Good luck with your project.
Comment by
WanWizard
September 2012
permalink
Problems with second controller file in Module
Ok, so no redirect or other odd request that causes the 404. What can also cause the 404 is if the Request::execute() method can't map it to a controller/method for some reason. So maybe you're next port of call is to debug that, see if i…
Comment by
WanWizard
September 2012
permalink
Problems with second controller file in Module
It indeed looks like it matches the URI correctly. If there is a redirect, and you have logging set to a high enough level, you should see the requested URI in the log.
Comment by
WanWizard
September 2012
permalink
Problems with second controller file in Module
My bad, I meant "_parse_search". It runs a preg_match() to see if the route matches the URI.
Comment by
WanWizard
September 2012
permalink
Problems with second controller file in Module
It should match "admin/(:segment)/(:any)". The others are useless, as ":any" will match anything, so all URL's with more then three segments will be matched by this line. I don't see an immediate reason why it shouldn&…
Comment by
WanWizard
September 2012
permalink
Sentry activation_hash/Password validation FAIL !
Sentry for FuelPHP is not actively maintained by the author anymore. If you found a bug and have fixed it, fork the repository on github, fix it there, and send the author a pull request. I'm pretty sure he will accept it, which allows other t…
Comment by
WanWizard
September 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,373
Last Active
7:54AM
Roles
Administrator