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
I have an issue with ORM, KIndly Help
One get() or one get_one() == one query. I don't see anything wrong with you code, so I suggest you need to debug to find out why a query runs multiple times. A standard related query is an inner join (a left join), not an outer join, so all …
Comment by
WanWizard
December 2015
permalink
RESTful controller drops error
$this->response is created in the Rest controllers' before() method. So this looks like the before in your controller doesn't call parent::before().
Comment by
WanWizard
December 2015
permalink
Secure website URL
We usually throw a HttpNotFoundError instead. Often in combination with an environment check, so you can use a browser in development to dump the response of an API call in HTML for debugging purposes, and to give a 404 when the site runs in stagi…
Comment by
WanWizard
December 2015
permalink
Model_Temporal and Many_Many relations
Not sure temporal supports this, you might want to ping uru on irc (freenode, #fuelphp).
Comment by
WanWizard
December 2015
permalink
Fuelphp Crop images with cords and dimensions
Create a fork of fuel/core:18develop on github, copy your changes in, commit them to the fork, use github to send a PR back.
Comment by
WanWizard
December 2015
permalink
Fuelphp Crop images with cords and dimensions
Open an issue on his repo asking him to send it to us as a PR, and we'll merge it if it meets the coding standards and doesn't break existing functionality.
Comment by
WanWizard
December 2015
permalink
geopoint
Never did this with ORM before, but you can try with a DB expression: $entry->point = \DB::expr("POINT(18, -63)");
Comment by
WanWizard
December 2015
permalink
routing - backend/module
Router::add() by default appends. You can have it prepend by passing TRUE as third argument. Routes in your routes.php config are processed top to bottom in the order in which they are defined. Router::add() isn't that useful for main requests…
Comment by
WanWizard
December 2015
permalink
Sending file in a EMAIL is malformed
And my question was: where do you see that? in your email client? Which client? To me that looks like a multipart-mime header, and that is perfectly normal in an email with attachments. It is the task of the email client to convert that back to atta…
Comment by
WanWizard
December 2015
permalink
About config files in modules
Ideally you don't. Modules are designed to be individual application components, and nothing outside the module should have a need to access anything in it, which would create tight coupling, a bad design practice. If you need to access the m…
Comment by
WanWizard
December 2015
permalink
Call to a member function get_public_name() on a non-object
Are they using short notation by any chance? So ... ...
Comment by
WanWizard
December 2015
permalink
Call to a member function get_public_name() on a non-object
I'm afraid you will have to start debugging to figure out why the variable passed from the controller to the view is not an object. The error should give you a backtrace so it's easy to find which controller it is. Assuming it is programm…
Comment by
WanWizard
December 2015
permalink
Messages class - DOCS
There is no doc link for that, it's a class we use in our application framework (which is where the example in the docs comes from). So you either have to implement your own messaging solution (most apps do), or use the Message class (and Mess…
Comment by
WanWizard
December 2015
permalink
OAuth Linkedin and google Callback url.
Opauth works with a two-stage process, so it can unify the responses from the different Oauth providers. You click on a login link that redirects you to the Oauth provider. That provider has a return URL defined to the session action I mentioned in…
Comment by
WanWizard
December 2015
permalink
Sending file in a EMAIL is malformed
We use the standard Mailgun SDK installed by composer. Our mailgun driver can be found here: https://github.com/fuel/email/blob/1.8/develop/classes/email/driver/mailgun.php I double checked it against Mailgun's SDK docs, and as far as I can se…
Comment by
WanWizard
December 2015
permalink
OAuth Linkedin and google Callback url.
No, you should have the session action as well, as that will load and fire Opauth. It is this that will convert the Oauth response to a unified opauth response using the Opauth strategy classes. The callback method just processes that unified Opaut…
Comment by
WanWizard
December 2015
permalink
OAuth Linkedin and google Callback url.
Just managed to get Google working as well. Google requires a valid domain name, so you can pick any name you want (I used "myapp.testsite.com"), defined it in my /etc/hosts to point to 127.0.0.1, and added it as a ServerAlias to the vir…
Comment by
WanWizard
December 2015
permalink
Explicitly refer a view in app/classes/views folder from a package
That doesn't really control loading a view file... From what I understand, the TS does: // app controller class Controller_Something extends \Some\Other\Controller { ... } // package controller namespace Some\Other; use View; class Contro…
Comment by
WanWizard
December 2015
permalink
OAuth Linkedin and google Callback url.
Do you test it from a public URL? Google doesn't accept Oauth requests from a hostname it can't resolve. This also means I can't test it here. Linkedin does accept local URL's (enter as a OAuth 2.0 Authorized Redirect URLs). In…
Comment by
WanWizard
December 2015
permalink
Call to a member function get_public_name() on a non-object
Fact remains, the error is caused by $contractor not being an object. It's difficult to judge why that is the case. Perhaps the databases are not identical? What OS and webserver is running on the old server? And which PHP version? And how abo…
Comment by
WanWizard
December 2015
permalink
Call to a member function get_public_name() on a non-object
Not really Fuel related, it's a normal PHP error. You will get this error when you call a method on a variable that is not an object. On which line of the view exactly do you get this error? If $contractor is not an object, the first line in…
Comment by
WanWizard
December 2015
permalink
Explicitly refer a view in app/classes/views folder from a package
If you haven't customized the finder's path other, the order of search is modules, app, packages, core. So if you have app/views/someview.php and app/packages/somepackage/views/someview.php, the one in app will be found before the one in …
Comment by
WanWizard
December 2015
permalink
model self relation
You can't. As soon as you define a model property with the same name as a ORM column, the ORM breaks. You need something like this: http://stackoverflow.com/questions/21805555/netbeans-code-completion-for-pseudo-properties-and-methods-made-f…
Comment by
WanWizard
December 2015
permalink
OPauth error login callback.
This table is created by the migrations in the Auth package, so you need to run those.
Comment by
WanWizard
December 2015
permalink
auth
I don't really have sample code, as most of Ormauth is just ORM, so you create records and relations like you would do with any other ORM object. Only thing special is the "action" column in the permission. It contains a serialized i…
Comment by
WanWizard
December 2015
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,365
Last Active
April 26
Roles
Administrator