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
i18n in model fields
ORM models support something called conditions, which you can define on a relation. Normally, you would define the relation in the property definition, which works for something static, but not for something dynamic, to so use conditions you need t…
Comment by
WanWizard
October 2014
permalink
Using Auth permissions
You define 2 users, both in group #5. You define a permission #1, "technician.orders". So far so good. But then: You create a group-permission relation, where you relate permission #1 with group #3. A group that has no users. The same i…
Comment by
WanWizard
October 2014
permalink
Validation Issue allow dashes do not works
ah, ok.
Comment by
WanWizard
October 2014
permalink
Validation Issue allow dashes do not works
Unrelated to this problem, but never use the \Fuel\Core namespace.It breaks certain features of the framework. All core classes are available in the global namespace. I can not reproduce it. This is my test action: public function action_test(…
Comment by
WanWizard
October 2014
permalink
Problem about auto loading vendor in module.
You can not use the "use" statement in combination with a try/catch, that needs the fully qualified classname. But I don't see why the last example wouldn't work. What happens if you do: namespace Test; class Controller_Admin…
Comment by
WanWizard
October 2014
permalink
Using Auth permissions
You are using the latest codebase? With empty tables it should definitely return false. Auth caches everything for performance reasons, so whenever you make changes, make sure you flush the cache, otherwise you get oud-dated data.
Comment by
WanWizard
October 2014
permalink
Problem about auto loading vendor in module.
You say the error happens in the Elephant.IO code. It could very well be it expects to run in the global namespace, which app controllers do, but module controllers don't. Without any more details about the error, and the code that causes the …
Comment by
WanWizard
October 2014
permalink
Is it possibe call or access Fuel classes from twig template view
There is already quite a list of twig extensions defined by default, but this one isn't. if you can create an issue for it, at https://github.com/fuel/core/issues, so it can be added to the core.
Comment by
WanWizard
October 2014
permalink
Validation Issue allow dashes do not works
I don't have a problem with it. $val = Validation::forge('test'); $val->add_field('message', 'Nachricht', 'required|trim|max_length[400]|htmlentities|valid_string[alpha,dashes,numeric,spaces,quotes,punctua…
Comment by
WanWizard
October 2014
permalink
Routing _root_ for Modules
Ok, sorry, I thought that was what you asked. In that case only the last route will do; 'students' => 'students/home/index',
Comment by
WanWizard
October 2014
permalink
Complex form using fieldset
No, not in Fuel v1, the form template is rather limited. The v2 fieldset supports custom renderers, and support any format you want. You can use that in a v1 app at the moment, but there is no documentation as of yet. Using v1, the only option is t…
Comment by
WanWizard
October 2014
permalink
Routing _root_ for Modules
Fuel v1 doesn't support recursive routing, so you can't set a route in your app routes, and route that further in your module. Fuel v2 will support that. So currently the only thing you can do: // in your app/config/routes.php: return a…
Comment by
WanWizard
October 2014
permalink
Getting Variables from Parent Class
What do you mean by variables? Any class properties in the parent will be available it it's child classes too. That is how extending works.
Comment by
WanWizard
October 2014
permalink
Primary keys with different id name
As I said, you don't have to?
Comment by
WanWizard
October 2014
permalink
NestedSet: $tree['children'] not working in dump_tree()
Yes: $model->depth();
Comment by
WanWizard
October 2014
permalink
1.7.2 Document root prepended to asset URL
No, not a bug, a functional change. I now see it wasn't mentioned in the change log. It was decided that get_file() should get the file. Completely. Stripping the DOCROOT from it is a rendering issue, where you need to path relative to the DOC…
Comment by
WanWizard
October 2014
permalink
Primary keys with different id name
Good afternoon this end of the world. ;-) The $_properties property list the columns, and optionally the column definition. The primary key is defined in $_primary_key. This is an array, so you can define multiple columns if you have a table cont…
Comment by
WanWizard
October 2014
permalink
NestedSet: $tree['children'] not working in dump_tree()
As I said, you can hardcode your loops when you have a known structure. Your code will probably work as long as there is only a main menu and one level of submenu's. As soon as you introduce a second submenu level (Menu -> submenu -> su…
Comment by
WanWizard
October 2014
permalink
NestedSet: $tree['children'] not working in dump_tree()
If you only have one level of menu, that is an option. If your menu has unlimited depth, the only proper way to go over it is recursion.
Comment by
WanWizard
October 2014
permalink
Relating Ormauth user with ORM model
Yes, but you need to extend the model in your app first, because you don't want to change files in the Auth package. Auth is a core package, so everything in the docs related to extending core classes applies.
Comment by
WanWizard
October 2014
permalink
Formatting property value
The current model object is passed to the observer as the first parameter. So you have direct access to the object. You can take for example the included createdAt and updatedAt observers as an example.
Comment by
WanWizard
October 2014
permalink
Formatting property value
Yes, you can use an observer. We do the same in some apps, convert to a display format after read, and back to a timestamp on save. I personally prefer not to alter data, but to deal with conversion on display, and after input processing. So the …
Comment by
WanWizard
October 2014
permalink
A Detailed Info of Nested Set is Required
By default Debug::dump() only shows you 5 levels of nesting. You can change that by using Debug::$max_nesting_level = 10; // increase from 5 to 10
Comment by
WanWizard
October 2014
permalink
A Detailed Info of Nested Set is Required
For people finding this thread, can you post what the issue was, and how you solved it?
Comment by
WanWizard
October 2014
permalink
NestedSet: $tree['children'] not working in dump_tree()
p.s.: this code produces the accordion main menu on the left: http://i.imgur.com/yc7mFRZ.png
Comment by
WanWizard
October 2014
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,399
Last Active
8:24PM
Roles
Administrator