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
Strange behavior with Omr\Model_Temporal
Quickly checked with Steve, he replied: There is something wrong there. In that last set of images there is no max timestamp. I think this is related to another issue I found. Sometimes the orm config is not loaded and so the max timestamp value b…
Comment by
WanWizard
September 2013
permalink
ORM model without properties
You will also have to include 'null' => false, otherwise it will not use the default.
Comment by
WanWizard
September 2013
permalink
ORM model without properties
You can define the property to be "not null" and define a default value, which will be used by the ORM when you save the object. Whether or not it's difficult to maintain depends, I usually have the design fleshed out before I start,…
Comment by
WanWizard
September 2013
permalink
ORM model without properties
In Fuel, it isn't either, providing the properties array can be created at runtime. Which at the moment is only possible for the MySQL/MySQLi drivers, the PDO driver lacks the support for detailed table information. Since this means additional…
Comment by
WanWizard
September 2013
permalink
ORM EAV Dynamic fields
EAV attributes should be unique, and is meant for objects with undetermined attributes. This seems to me more like a standard one-to-many design?
Comment by
WanWizard
September 2013
permalink
Where to put a base class?
Changing the core is always a bad idea, it should not be touched. If you see it as a core extension, and you need modularity or re-use for other applications, a separate package is the way to go. Your queue package could do a \Package::load() of th…
Comment by
WanWizard
September 2013
permalink
Harro, question on the ORM nestedset using for a Menu
Without knowing how exactly you want to implement it, an answer is difficult. But assuming you want to store a complete menu system, it is not a problem to store that into a single table. In this case the root will be a dummy (or in the case of mu…
Comment by
WanWizard
September 2013
permalink
Save text data
How do you send it? Using the email package? The use of htmlentities suggests you want to send it as html? did you set it as html_body()? And you probably have to run nl2br() as well, to convert newlines to . And HTML doesn't support tabs, so…
Comment by
WanWizard
September 2013
permalink
Setup question about URL Rewrite rules and Security
As long as the documentroot points to public, all your code will not be accessible from a browser. This is why the Fuel structure is setup this way. Once you do that, it doesn't matter where the rest is, as long as the paths in your index.php …
Comment by
WanWizard
September 2013
permalink
Howto specify the enum type in oil
without the quotes, so status:enum[active,inactive,banned,etc] as it doesn't trim quotes or spaces,
Comment by
WanWizard
September 2013
permalink
Oil crashing on me using Git Bash
That should be a single dot, a double dot meant "one directory up" if you start in "C:\here", and you create a new install called "new", it will create "C:\here\new" and install it there. it then does a "…
Comment by
WanWizard
September 2013
permalink
Read access other user
You want to check the permission of any given user, not of the current user? You can't, Auth::has_access() works on the current logged-in user. If you need that you'll need to extend the ACL driver, copy has_access() to something else, an…
Comment by
WanWizard
September 2013
permalink
Input::put() throws exception when stream is not of PUT type. Small bug?
No more need, fixed here: https://github.com/fuel/core/commit/894dbbbcaf2b4ac99c97b2fc77ffd49d65a34aec
Comment by
WanWizard
September 2013
permalink
Read access other user
I still don't understand. You surely only need to check access for the current logged-in user?
Comment by
WanWizard
September 2013
permalink
Setup question about URL Rewrite rules and Security
Your public folder (/srv/fuel/myproject/public) should be your DocumentRoot, I can't see if that is the case in this piece of config. If not, your application won't be able to access it's assets, unless you rewrite all of those too. …
Comment by
WanWizard
September 2013
permalink
Read access other user
I don't understand the question. You only have one user at the time (= per request), so how would you check multiple?
Comment by
WanWizard
September 2013
permalink
Input::put() throws exception when stream is not of PUT type. Small bug?
Can you create an issue for this at https://github.com/fuel/core/issues ?
Comment by
WanWizard
September 2013
permalink
OrmAuth ~ Advanced Permissions
Assuming you don't want anything more granular than this, and assuming you have all posts in a single table, I would use the group. Either add it to the post record, of if your post has a hierarcy (like forums, categories, etc), you can also as…
Comment by
WanWizard
September 2013
permalink
Unable to load Model in module
You don't know what you changed to fix it?
Comment by
WanWizard
September 2013
permalink
Unable to load Model in module
Just recreated this module here, using your exact code (and using Model_Quizz::install()), and it works as expected. So it must be something local. Given the fact that your controller loads, there's nothing wrong with the module definition its…
Comment by
WanWizard
September 2013
permalink
Unable to load Model in module
Weird. And everything is like in your original post? No filenames with uppercase letters for example?
Comment by
WanWizard
September 2013
permalink
Unable to load Model in module
It's in the classes/model folder, so it has to be named Model_Quizz, otherwise the autoloader can't find it. I don't see anythese else that can be wrong. Are you getting "class 'Quizz\Model_Quizz' not found"? You…
Comment by
WanWizard
September 2013
permalink
Unable to load Model in module
Your model is called Model_Quizz, not Quizz, so you need to use Model_Quizz::install($data);
Comment by
WanWizard
September 2013
permalink
Problem fuel_version on Parser/Twig
fixed: https://github.com/fuel/parser/commit/76d4cdd929fa05b1c59ae9aedb2b4347377899a6 There were two more class references missing the backslash. Thanks for reporting it.
Comment by
WanWizard
September 2013
permalink
Asynchronous job queue?
The Queue in the 2.0 Event package is an event queue, not a job queue. So far I haven't seen proper job queue implementations. Either they are very simple (like the one you found) or they are the type we use in our applications, which run on Z…
Comment by
WanWizard
September 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,389
Last Active
6:36PM
Roles
Administrator