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
8245
Activity
Twig Autoloader not found
The code defaults to 2.x, but has a fallback to 1.x, so it shouldn't break anything. If you want to test it, just change the composer.json to load "fuel/parser": "dev-1.9/develop" and run a composer update. After test…
Comment by
WanWizard
January 2017
permalink
Twig Autoloader not found
Support has been added to 1.9/develop. A new hotfix release for 1.8 is planned for this weekend, it will be automatically installed if you run a "composer update" after release.
Comment by
WanWizard
January 2017
permalink
Generate relationship with oil refine fromdb:model
Yes, you can. We also have CMS type applications in which the webmaster runs updates including migrations from the web admin interface. Have a look at the Migrate class, the oil script calls that to run the migrations.
Comment by
WanWizard
January 2017
permalink
Twig Autoloader not found
Hmm... Thought that was already addressed. Added a ticket for it: https://github.com/fuel/parser/issues/91 And no idea why images don't work, I'll pass that on to the server admin.
Comment by
WanWizard
January 2017
permalink
Generate relationship with oil refine fromdb:model
"from" is the model itself, "to" is the model you link to. Also pay attention to "belongs_to" relations, and make sure you define them correctly. A rule of thumb: you use "belongs_to" for the model that contai…
Comment by
WanWizard
January 2017
permalink
how to using curl get api
I don't understand what you mean... You can't get what?
Comment by
WanWizard
January 2017
permalink
how to using curl get api
It's a good start. After you have executed it, the result is in $curl->response(). This will return a standard Fuel response object. You can access it's payload using $curl->response()->body() (see http://fuelphp.com/docs/class…
Comment by
WanWizard
January 2017
permalink
Hydrate() error with Model_Temporal
There's a hotfix backport in the planning for 1.8, probably sometime next week. You can then run a composer update to pull in the fixes.
Comment by
WanWizard
January 2017
permalink
Setting a column back to NULL
No worries, happy new year to you too!
Comment by
WanWizard
December 2016
permalink
Setting a column back to NULL
Just checked, the handling of "null" is already present in the code from 2011: https://github.com/fuel/core/blame/1.9/develop/classes/database/connection.php#L571
Comment by
WanWizard
December 2016
permalink
Setting a column back to NULL
I can't reproduce this. $model = Model_Position::find(2); $model->name = null; $model->save(); Results in UPDATE `position` SET `name` = null WHERE `id` = 2 You don't have a TypingObserver or anything else…
Comment by
WanWizard
December 2016
permalink
Thoughts on Fuelphp driven CMS. Again :)
In any full-blown CMS it would be difficult to add standard components of the underlying framework. In our application framework it is also impossible to just throw a standard controller in and expect it to work, it needs components that are espec…
Comment by
WanWizard
December 2016
permalink
Thoughts on Fuelphp driven CMS. Again :)
Well, several exist, but most are not Open Source, because they are made by companies to make money. The only one I know that is available for download is http://www.novius-os.org/
Comment by
WanWizard
December 2016
permalink
ACL
Cool, thanks for the feedback.
Comment by
WanWizard
December 2016
permalink
Memmory issue in fuelphp ORM
You can add ->from_cache(false)-> to your ORM query, which will disable the caching mechanism. If will still keep all objects in memory though, because they are part of your result set, so disable caching won't help much, unless you run…
Comment by
WanWizard
December 2016
permalink
ACL
that is not correct, that should be an indexed array of key values. [wanwizard@catwoman] $ php -a Interactive shell php > $permission = array('read', 'create', 'edit', 'delete'); php > $wanted = array(…
Comment by
WanWizard
December 2016
permalink
ACL
and what is the contents of the actions column in users_user_permissions? Or users_group_permissions if your premissions are assigned to a group instead of a user? If you have to remove array_flip(), to get it to work, it suggests that value is wro…
Comment by
WanWizard
December 2016
permalink
ACL
It should be: Permission: a:4:{i:0;s:4:"read";i:1;s:6:"create";i:2;s:4:"edit";i:3;s:6:"delete";} Relation: a:2:{i:0;i:0;i:1;i:1;} given your previous input.
Comment by
WanWizard
December 2016
permalink
ACL
Can you post the contents of the action colomn from both the permission record and the relation record (in serialized form), so I can have a look at it?
Comment by
WanWizard
December 2016
permalink
ACL
And what does \Auth::has_access("admin.group") return, so without the action checks?
Comment by
WanWizard
December 2016
permalink
ACL
Are you on the latest 1.8? Did you run a composer update to be sure? And there should not be a space between "group" and the "[", perhaps that is the problem?
Comment by
WanWizard
December 2016
permalink
ACL
Isn't that logical, as there is no "add" or "post" permission? And of the 4 possible actions, only "read" and "create" are set on this user permission. So "app.forum", "app.forum.read"…
Comment by
WanWizard
December 2016
permalink
ACL
To add to the above: Permissions are also assigned via ORM relations. So for example you could have a permission record for "app.forum", with actions "read", "post", "edit", "moderate", "delete…
Comment by
WanWizard
December 2016
permalink
ACL
Check the definitions of the models in the Auth package. There are a lot of relations defined by the models. The first link to the docs in my previous post lists them all. There is a many-many relationship between Group and Roles, which is defined …
Comment by
WanWizard
December 2016
permalink
Using multiple controller for one table
There is a limit to what you can generate, at some point you will have to start coding, the frontend code is, if it can be generated at all, very basic.
Comment by
WanWizard
December 2016
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,415
Last Active
8:15AM
Roles
Administrator