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
Odd problem with Auth, Multiple drivers and sessions
If both drivers use the same cookies, yes, absolutely.
Comment by
WanWizard
November 2013
permalink
Problem sending mail with Email Package
I don't know. The log seems ok. It could also be that your smtp server has a relay list defined based on IP, and the IP of your (test?) webserver is not allowed to relay? mail() [function.mail]: SMTP server response: 554 5.7.1 : Relay access d…
Comment by
WanWizard
November 2013
permalink
Problem sending mail with Email Package
Personally I never use mail(), I always run a local sendmail service, and configure the Email package to use the sendmail driver, delivering to localhost. Saves a lot of hassle. Not sure how you would do that on Windows though, I don't use that…
Comment by
WanWizard
November 2013
permalink
Problem sending mail with Email Package
what is the sender on that message? "Relay access denied" is a mailserver error that says "source is not allowed to send to destination". with mail(), if you don't take special measures, mail is being send from , which mi…
Comment by
WanWizard
November 2013
permalink
Problem sending mail with Email Package
You're using the "mail" driver, which uses the PHP function mail() to send out the mail, and it is that function that fails. If you want to see the exact error, you can remove the @ in front of it, on line 31. It probably means your …
Comment by
WanWizard
November 2013
permalink
Odd problem with Auth, Multiple drivers and sessions
verify_multiple_logins means it won't stop at the first driver that produces a hit, it will check all drivers. If your Customauth is a clone, that will probably login the user too. So only use that when you have the same user in multiple backe…
Comment by
WanWizard
November 2013
permalink
Auth::dont_remember_me() remember anyway.
Once you're "remembered", a second cookie is set that will log you in if you're not logged in. If you then remove the "remember_me" cookie, you will still be logged in due to your normal login session. Once that expires…
Comment by
WanWizard
November 2013
permalink
Querying a query. How does it work?
No, the two examples are non-related queries. If you want to relate then, you have to split them up: $query = Model_Course::query() ->where('course_id', 5); $data = $query ->get(); $students = $query ->related('…
Comment by
WanWizard
November 2013
permalink
Can't generate migration
hmm... that should work just fine. You're in the correct environment (like that you're using 'development')? Can you check the contents of your app/config/development/migrations.php contents, and compare it with the contents of…
Comment by
WanWizard
November 2013
permalink
How to access related table id.
Cool, good to hear that!
Comment by
WanWizard
October 2013
permalink
How to access related table id.
Since the array index is the same as the primary key of the object in the array, a quick trick to get all PK's out is to use: array_keys($request->team_members);
Comment by
WanWizard
October 2013
permalink
How to access related table id.
user->team_members is a has_many relation, you'll have more then one id value (one for every related team member). So $request->team_members is an array of objects: echo "team member id's: "; foreach ($request->team_m…
Comment by
WanWizard
October 2013
permalink
Image manipulation issue after upgrade to 1.7
Backport the class from the 1.8/develop repository (it has already been fixed in there), or wait for the 1.7.1. maintenance release in a few weeks time.
Comment by
WanWizard
October 2013
permalink
Can't generate migration
I'm not sure it understands "update_users_nullable_password_reset". I'm not sure I do... ;-)
Comment by
WanWizard
October 2013
permalink
Casset doesn't works in FuelPHP 1.7
I don't use it myself, but I checked with team mate Uru, his company use it in their applications, and he confirned no issues in any of their application, running from 1.5 to 1.8/develop. So it must be something local.
Comment by
WanWizard
October 2013
permalink
Casset doesn't works in FuelPHP 1.7
Perhaps start with "what" doesn't work? Error messages? incorrect behaviour? Anything in the logs? There weren't any (significant) changes to View and Theme between 1.6.1. and 1.7.
Comment by
WanWizard
October 2013
permalink
REST controller: upload file using PUT
Parsing the multipart section shouldn't be to difficult, problem is to make PHP believe it was an uploaded file. For security reasons, you can not populate $_FILES manually (well, you can, but PHP wiil not see it as an uploaded file) from PHP…
Comment by
WanWizard
October 2013
permalink
REST controller: upload file using PUT
No, there isn't. Also, the current Input class doesn't support multipart input on PUT/PATCH, so it won't be able to get the file binary out. My 2ct's on why this hasn't been implemented in PHP is that from a HTTP spec point…
Comment by
WanWizard
October 2013
permalink
Can not delete A file on Tasks
Yes, correct, in both cases. To create an environment that gives both access, you need to do some planning. On our servers, we have a group www-data, both apache and all user accounts used on the commandline are member of this group. This group is …
Comment by
WanWizard
October 2013
permalink
How do I view assets (images) via URL call? (default 1.7 install)
That looks like a completely standard installation, which should work fine. Did you apply any additional rewrite rules, other then the .htaccess supplied in the public folder, or modified those rules? If you disable rewriting, can you then access t…
Comment by
WanWizard
October 2013
permalink
Fieldset : How to insert html code
The current fieldset implementation in it's standard form is quite limited when it comes to custom html, you can only play a bit with the template values in the form.php config file. If you need more complex layouts, you'll have to "…
Comment by
WanWizard
October 2013
permalink
How do I view assets (images) via URL call? (default 1.7 install)
But the question was where you installed it. What does your document root pointing to? What happens if you go to http://www.mydomain.com ?
Comment by
WanWizard
October 2013
permalink
How do I view assets (images) via URL call? (default 1.7 install)
How did you install? In a standard installation your webservers' documentroot will point to the ./public folder, which will make http://www.mydomain.com/assets/img/default.jpg work without problems. If you have installed everything inside th…
Comment by
WanWizard
October 2013
permalink
Can not delete A file on Tasks
Then it might be a rights issue. When it's uploaded and written in the app, it will have the rights of your webserver user. Those may be differrent from your commandline user that runs the tasks.
Comment by
WanWizard
October 2013
permalink
1.7 Fuel\Core\View Fatal Error
That unfortunately can't be avoided, PHP doesn't allow exceptions in the __toString() method, and there is no way to figure out you've got an error until the View is rendered.
Comment by
WanWizard
October 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,373
Last Active
1:00PM
Roles
Administrator