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
Packages and modules
1. Add a modules folder to the package, and in the package bootstrap, add that folder to your config's module_paths list. When you (always) load the package, the module path will be added automatically. 2. No (sorry, Mike). In Fuel, you can on…
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
Ormauth doesn't use profile_fields (in the table), it uses EAV for that. But the model defines it for compatibility reasons.
Comment by
WanWizard
April 2014
permalink
Validation active_field
Cool, if you can confim it fixes it, I'll push the change.
Comment by
WanWizard
April 2014
permalink
Validation active_field
Ok, I get what you mean now. You want to run full validation on a new object, so it should be if ( ! in_array($p, $obj->primary_key()) and ($obj->is_new() or $obj->is_changed($p))) can you check if that fixes it for you?
Comment by
WanWizard
April 2014
permalink
Validation active_field
is_changed() has nothing to do with validation, it's job is to see if there was something changed. If you have a record that is completely empty, it sees it as not changed (which technically it isn't, it was empty and it still is). So I d…
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
All classes in Auth are aliased to global, so you can extend them, like the classes in core. So you need // in app/classes/model/user/auth.php namespace Model; class Auth_User extends \Auth\Model\Auth_User {} and in your bootstrap map: 'Mod…
Comment by
WanWizard
April 2014
permalink
Fatal Error
The error messages are linux, and I can remember from an earlier conversion with @codeyad this is about Fedora. Which is my OS of choice and with which I have no issue. SE linux is very good, hadn't thought of that. I never enable that on my d…
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
get('agency_id) returns $this->user->{$field}, so it uses the standard __get() magic method of the ORM model object to fetch the property. You can use the _init() static method to update the existing data structures on first load. I use …
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
Otherwise do some \Orm\Model::from_array() debugging when you call create_user(), to see what exactly happens...
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
This is the commit I was referring to: https://github.com/fuel/auth/commit/61e3c14e9a5bd325e1f41f46b1e10e99504342b1 Did you add the agency_id to the model $_properties? Because the ORM uses that array to determine whether or not the fieldname passe…
Comment by
WanWizard
April 2014
permalink
Model custom data and Twig rendering
Must be a Twig thing (and I don't use Twig). The ORM throws an OutOfBoundsException if you request a property on an ORM object that does not exist.
Comment by
WanWizard
April 2014
permalink
Model custom data and Twig rendering
Why would it think my_custom_data is a method, and not a property?
Comment by
WanWizard
April 2014
permalink
How to add extra user data not in EAV.
This has been addressed in 1.8/develop, and will be in 1.7.2 which will be released soon. It uses the Orm's from_array() method to load the object, so it automatically adapts to changes in the column definition.
Comment by
WanWizard
April 2014
permalink
error cloning fuelphp
Fuel v2 will be completely driven by composer. You install the framework package or clone the repo, run a composer update, and it will pull the rest in for you. It also has the app separated from the framework, so it can have it's own repo, w…
Comment by
WanWizard
April 2014
permalink
Multiple Auth-Systems? Like Customers via Fron-End and Admins/Mods via Admin-Panel
Both Simpleauth (in a config file) and Ormauth (in tables) support roles and permissions. Ormauth has more features, such as one more permission level (Simpleauth has one, Ormauth has two), better action support, revocation of rights, etc. Ormauth a…
Comment by
WanWizard
April 2014
permalink
error cloning fuelphp
How did you install it then? Just cloned the fuel/fuel repo? Ignoring the submodules? That is not going to work, no. Perhaps you should have checked the docs on how to install it?
Comment by
WanWizard
April 2014
permalink
Fatal Error
Pretty obvious. mkdir(): Permission denied Your webserver user doesn't have the rights to create a new directory in the APPPATH logs folder. It is a rights issue.
Comment by
WanWizard
April 2014
permalink
error cloning fuelphp
Then I don't know. I develop on Fedora myself, and I have never seen any of this.
Comment by
WanWizard
April 2014
permalink
error after install fuel
Again, odd, never seen it. I'm a redhat man myself (since the mid '90) and a daily Fedora user.
Comment by
WanWizard
April 2014
permalink
Issue about Theme and HMVC Request
It looks like that HMVC call redefines your template? That will load the View again, making you loose all variables.
Comment by
WanWizard
April 2014
permalink
error after install fuel
What OS are you on? I have never seen this issue before, a standard clone creates world readable files, so it should always run (with a bit to much permissions, but ok). Composer is (and should be) never installed in a source repo, as it only has …
Comment by
WanWizard
April 2014
permalink
error cloning fuelphp
Neither do I. The file it is trying to load is really there? You are using PHP 5.3.3. or newer? Did you also check the rigths on the folder the file is in, or any higher folder, and see if the webserver can access that?
Comment by
WanWizard
April 2014
permalink
REST error handling
You can do any validation in the before() method of the controller if needed. In general, you should catch errors where they are likely to occur, or as close to it as possible, so you can handle them. The higher up the stack you do it, the less gra…
Comment by
WanWizard
April 2014
permalink
error after install fuel
Ah, ok. Simple: the file is either not there (in which case you didn't install Fuel correctly), or there is a permission error so your webserver can't find the file.
Comment by
WanWizard
April 2014
permalink
error after install fuel
That doesn't look like the complete error? Assuming you have installed 1.7.1, that file on line 4 contains: require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
Comment by
WanWizard
April 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,368
Last Active
9:34AM
Roles
Administrator