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
slightly modifying OrmAuth to add slug column
Just did a quick test here. In app/classes/model/auth/user.php:
Comment by
WanWizard
June 2013
permalink
slightly modifying OrmAuth to add slug column
Checked the Ormauth Auth drivers, and they all use \Model\Auth_User to access the users table. So I don't immediately see why this should not work. Can you add an _init() static method to your model, with a var_dump() or a die() in it, to see …
Comment by
WanWizard
June 2013
permalink
slightly modifying OrmAuth to add slug column
What are you exactly doing, in terms of using the model directly, or calling one of the Auth methods?
Comment by
WanWizard
June 2013
permalink
Auto Increment in MySQL and creating new Records
I have trouble understanding what it is exactly you want to do. Normally, an action is something you request from the URI, so what is action_save() exactly supposed to do? Normally, in an add() action, you create a new object, add data to if (from…
Comment by
WanWizard
June 2013
permalink
Remove validation on field with Fieldset
Don't think group_id is defined as required in the model?
Comment by
WanWizard
June 2013
permalink
Auto Increment in MySQL and creating new Records
This model, is that: - an ORM model - a Model_Crud model - a custom model?
Comment by
WanWizard
June 2013
permalink
Remove validation on field with Fieldset
$form->field('age')->delete_rule('required'); in your controller, before you run the validation.
Comment by
WanWizard
June 2013
permalink
OAuth
That's an issue in the Opauth driver, nothing we can do about that. https://github.com/opauth/facebook/blob/master/FacebookStrategy.php#L77 indicates it expects a GET variable 'expires', which appearantly isn't present in your c…
Comment by
WanWizard
June 2013
permalink
Relating Models - where clause issue
Ignoring conditions should be something that is fixed in the current release version, so if you're not on 1.6.1, I suggest you upgrade. As to your other question, I don't think you can currently add additional join clauses using chaining,…
Comment by
WanWizard
June 2013
permalink
slightly modifying OrmAuth to add slug column
The Auth package is handled as a core namespace, and aliased to global, so you can extend any class in it. create app/classes/model/auth/user.php: namespace Model; class Auth_User extends \Auth\Model\Auth_User {} and don't forget to add the …
Comment by
WanWizard
June 2013
permalink
Routing problems
Named parameters in routes are wildcard regexes. As they are processed top to bottom, the first one to match is used. So it's important that you put the most significant route first. I suggest you flip them around: 'sat/(:categoria)/(:su…
Comment by
WanWizard
June 2013
permalink
OAuth
Due to a restructure of our apps I currently have no test environment. There is no need to use routes, so with these routes it will definately not work.
Comment by
WanWizard
June 2013
permalink
Controller Bug
F*CK! Good of you to notice and report this, it looks like it's been broken for over 8 months! fixed here: https://github.com/fuel/core/commit/c3291ebf6e14ad1af6dafa5047e3e8b4058dbcb7
Comment by
WanWizard
June 2013
permalink
Controller Bug
Ah, this is new information, in your first message you mentioned incorrect behaviour for all controller base classes. So it happens with Controller_Hybrid only?
Comment by
WanWizard
June 2013
permalink
How to relate the Ormauth user model to other models?
You also have to do that if you extend the original class. Point is that if you request Model\Auth_User, it loads your version instead of the original one. If you make a derived class, like you do now, note that it works only in your controller, al…
Comment by
WanWizard
June 2013
permalink
Controller Bug
A controller always HAS to extend one of the available base controllers. A standard class does not work as a controller. If your controller correctly extends one of the available base controller, the Request class will ALWAYS trigger an HttpNotFoun…
Comment by
WanWizard
June 2013
permalink
Routing problems
What is the exact URI you are trying?
Comment by
WanWizard
June 2013
permalink
How to relate the Ormauth user model to other models?
Have you added your custom class to the app bootstrap, so Fuel knows it exists? See http://docs.fuelphp.com/general/extending_core.html#/extend_and_replace
Comment by
WanWizard
June 2013
permalink
JSON Config save
Difficult to say without knowing exactly what you do. There is no add_slashes() in the entire framework, so it must come from somewhere else.
Comment by
WanWizard
June 2013
permalink
Is Response::redirect_back() new?
It was introduced in 1.6.1., so the current docs are correct.
Comment by
WanWizard
June 2013
permalink
How to relate the Ormauth user model to other models?
When doing what? \Model\Auth_User::get_picture() should do it.
Comment by
WanWizard
June 2013
permalink
How to relate the Ormauth user model to other models?
The model is in the Auth package, and, like all other classes it's aliased to the global namespace, so you can extend it like any other Auth class. create app/classes/model/auth/user.php: namespace Model; class Auth_User extends \Auth\Model\A…
Comment by
WanWizard
June 2013
permalink
Multithread cURL Request
The current Curl driver wraps a single request. To be able to use this, you need to be able to wrap these requests and bundle them in a single multi-request. This will require a new driver, and changes to the existing driver. Please add a feature …
Comment by
WanWizard
June 2013
permalink
Problem with Routes.php
This is because you're using relative URI's in your HTML anchor. Ideally you should not hardcode anything in your views. Either use Html::anchor() to generate the anchor, or if you want to code HTML yourself, use:
Comment by
WanWizard
June 2013
permalink
SOAP Web Service
For SOAP server you could have a look at the "besimple/soap-server" package, available through composer. Can't find an easy way to do WSDL generation, the besimple Symphony bundle has it from the looks of it, but I'm not sure ho…
Comment by
WanWizard
June 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
7:53AM
Roles
Administrator