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
Organize an efficient and maintenable git project with Fuel
So basically what you need is a single repository that contains everything? In that case, this thread might give you some pointers: http://fuelphp.com/forums/discussion/12232/core-and-vendor-packages-not-comited
Comment by
WanWizard
May 2013
permalink
Organize an efficient and maintenable git project with Fuel
What are the options of deployment in Springloops (or FTPloy), I don't know either of them...
Comment by
WanWizard
May 2013
permalink
Different validation rules depending in which action I am?
The advantage of doing it in the model is that you keep everything central, so if your model changes, you don't have to go looking for controllers that use it. Since you're using a separate method in the model to construct the validation …
Comment by
WanWizard
May 2013
permalink
How to remove Set-Cookie from headers with REST implementation
Yup, seen the notification. Thanks.
Comment by
WanWizard
May 2013
permalink
Log errors with permissions
Without proper permissions set you'll never avoid this. If you create a file in linux, it will always receive the current user as UID, and the users default group as GID. For a commandline user, the UID will be different then for your webserve…
Comment by
WanWizard
May 2013
permalink
How to remove Set-Cookie from headers with REST implementation
I get that. Can you create a feature request for this at https://github.com/fuel/core/issues, with a short description and a link to this thread?
Comment by
WanWizard
May 2013
permalink
Anyway to return controller Auth error sanz redirect?
Correct, every request will call the auth method defined. All you need to do is check the authorisation, and return true if authorized, and false if not. If the Auth method returns false, the REST controller will return array('status'=&g…
Comment by
WanWizard
May 2013
permalink
Different validation rules depending in which action I am?
You define your default rules in your model, and you can alter them in your controller. $val->field('password')->delete_rule('required'); With the method you use (the validate method in your Model) you can also opt to ce…
Comment by
WanWizard
May 2013
permalink
'valid_string' rule is not correctly Fieldset add()
valid_string supports multiple values, so it should be array('valid_string' => array(array('numeric')))
Comment by
WanWizard
May 2013
permalink
Can it use Session class without cookie?
Odd, a get is a get... What do you mean with "doesn't work"? No return value? Error message?
Comment by
WanWizard
May 2013
permalink
Core and Vendor packages not comited?
Fuel/Core and all packages are installed as submodules from a separate repo, Vendor is installed through composer, but (usually) as repositories too. git recognizes that these are repositories, and will not add them to a "parent" reposito…
Comment by
WanWizard
May 2013
permalink
Creating email activation auth.
We use the login_hash field for it. When a user registers, we add the user to the "confirm-by-email" group, and generate a confirm hash for it that we store in the login_hash field. This hash will be part of the URL in the confirmation e…
Comment by
WanWizard
May 2013
permalink
How to remove Set-Cookie from headers with REST implementation
That is what I meant. The _get_cookie() method in the Session_Driver driver is the method that retrieves the session id from where it's stored (usually the cookie, hence the method name). Currently it supports cookie, GET variable, POST variab…
Comment by
WanWizard
May 2013
permalink
Anyway to return controller Auth error sanz redirect?
You could check for major changes on the Controller_Rest class between your version and now, and if there are no dependencies to other classes, you could backport the base controller?
Comment by
WanWizard
May 2013
permalink
Validation Error Messages
If you mean a message per rule per field, the answer is "currently not". This is on the roadmap, but at the moment rules and their messages are stored in the validation object, and are therefore global for all fields.
Comment by
WanWizard
May 2013
permalink
Insert multiple rows with one db-action
No, not via ORM. An ORM is an object relational mapper, which maps individual records to objects (and the other way around). An ORM is not a query builder that you can use to generate arbitrary queries, you need to use the query builder (DB) for …
Comment by
WanWizard
May 2013
permalink
count() with multiple db-connections
I'm a bit confused now. Looking back at your original post, it suggests you were talking about an ORM model. But that doesn't use a get() at all, and the count() method does use the defined connection (the read-connection in case you defi…
Comment by
WanWizard
May 2013
permalink
Problem with migrating auth tables
Looked into the code, and it seems to be changed some time ago. The first time you load a config file, it will return the loaded config. After that, any attempt to load the same file will return false. If you get false returned when you try to loa…
Comment by
WanWizard
May 2013
permalink
Problem with migrating auth tables
Why not? As of 2.0, Composer will be required for everything, including the framework itself. But running composer is a one-time thing, and you can even do that on a different system and copy fuel/vendor over if you can't. Our production serv…
Comment by
WanWizard
May 2013
permalink
"valid_string" multiple rules are not working
Cool, problem solved! ;-)
Comment by
WanWizard
May 2013
permalink
Can it use Session class without cookie?
With GET variables, it uses the cookie_name as configured in your session.php config file. For example, if you are using Memcached as backend, the default cookie name is "fuelmid", so your request URL must look like http://example/org/som…
Comment by
WanWizard
May 2013
permalink
Can it use Session class without cookie?
As I wrote earlier, Fuel's session class has support for both GET and POST variables, so passing the session ID as a URL parameter (which is a GET variable) is not a problem at all.
Comment by
WanWizard
May 2013
permalink
Problem with migrating auth tables
If load() returns false, then you're not on the latest version. Old versions would only return the loaded config on first load, and would return false if the config is already loaded. This behaviour has been changed on Aug 28, 2012, so almost …
Comment by
WanWizard
May 2013
permalink
Can it use Session class without cookie?
Can you point to documenation that shows how PHP native sessions work without a cookie? Sessions are to maintain state in a stateless environment. That means that no matter how you look at it, you have to pass some sort of unique key (the session i…
Comment by
WanWizard
May 2013
permalink
"valid_string" multiple rules are not working
You can only pass one value, so perhaps it has to be 'valid_string' => array(array('numeric', 'dots')), ?
Comment by
WanWizard
May 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,368
Last Active
4:16PM
Roles
Administrator