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
About ViewModels...
It is best practice that you don't put any logic in your view files, other then maybe simple if's or loops. A Viewmodel (or Presenter in more general OO terms) is a way to abstract away any view specific logic from the view, without havin…
Comment by
WanWizard
May 2013
permalink
1045!
I don't know, I've just listed the possible causes for this error. If you don't have multiple database servers, off course that point is not relevant for you. It's a PDO error, so something outside of FuelPHP. Which is either co…
Comment by
WanWizard
May 2013
permalink
using a model from another app in a package
This is a bit unreadable, please use http://bin.fuelphp.com for a code paste next time. If with 'app' you mean two different FuelPHP installations, then direct access is never possible. They are not aware of each other. Within the same …
Comment by
WanWizard
May 2013
permalink
1045!
Access denied. So: - your talking to the wrong database server - your username is not correct - the password is not correct - userid/password is ok, but no access rights to the selected database
Comment by
WanWizard
May 2013
permalink
TestCase
the "Fuel" way of doing things doesn't work with tests, they are loaded and run by PHPUnit. Check the PHPUnit documentation on prepping methods, or look at existing tests such as for Arr or Date.
Comment by
WanWizard
May 2013
permalink
Why my Robots haven't colors eyes ?
Haven't used windows for a long time, but in the "old" days, you needed ANSI support on the commandline to be able to use color escape code...
Comment by
WanWizard
May 2013
permalink
Parsing Error!
I assume this generates the error: $this->get_user_data($company_code, $user_code)['id']Accessing a function result as an array is only supported in PHP 5.4+.
Comment by
WanWizard
May 2013
permalink
FB Social + composer
You don't have too, it depends on your use case. A static interface, with forge() and instance() methods is handy if you need to pass objects around a lot. Instead of doing that, your static class can act as a container for your objects, and y…
Comment by
WanWizard
May 2013
permalink
File/zip creation
I would use File::create('/some/file/path', 'test.txt', View::forge('home/somethingelse', $data)->render());
Comment by
WanWizard
May 2013
permalink
FB Social + composer
You can use it as any other class, Composer will take care of the autoloading for you. I assume you would create the $facebook object in the controller method where you need it?
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
@maxarbos, Weird. I've only created one zip file, that I've uploaded to the website. I keep all copies locally, and I've just check, and it does contain all required files. You're sure you're looking at fuelphp-1.6.zip? Di…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
@BigTone, Just add the required packages to the existing composer.json, and don't worry about location.
Comment by
WanWizard
May 2013
permalink
Specifying query columns carries over
The ORM caches the results of all queries, as soon as the primary key is part of the result. Downside of that is that if you select a partial column list, you will miss data on subsequent queries, because the result is fetched from cache. This is…
Comment by
WanWizard
May 2013
permalink
Language detection
All our applications have a standard config file which is in the always_load section of the config, and contains this (and a lot of other app config stuff). We also allow overriding the language via the query string, so developers can easily switch …
Comment by
WanWizard
May 2013
permalink
Configuration files with FuelPHP
Ok, no problem. Just wanted to be complete in case someone else bumps into this thread.
Comment by
WanWizard
May 2013
permalink
Configuration files with FuelPHP
Which means you didn't use the standard installation? Note that these paths are also defined in your public/index.php, and in the phpunit files (in case you want to run unit tests).
Comment by
WanWizard
May 2013
permalink
Configuration files with FuelPHP
> I went to "C:/wamp/bin/php/php5.4.3" and i did "php oil -v". And i've got the error : Could not open input file: oil. Which is correct, the 'oil' file isn't there, it's in the root of your FuelPHP i…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Yes, application config goes in app/config, and you only need to add the values for which you want to override the defaults, the core will fill in the rest. There is no php.php in fuel/core, nor should there be. A "no sush file" is usuall…
Comment by
WanWizard
May 2013
permalink
Configuration files with FuelPHP
How do you use it? The commandline shortcut ('oil') is a *nix script, that obviously doesn't work on Windows. So you'll have to go to the folder in which you have installed FuelPHP (the root of that installation in which you f…
Comment by
WanWizard
May 2013
permalink
Upload::save() saves duplicated files in Fuel 1.6
It's on by default, so if you want it off, you need to override the default in your config file, or you should not call process() yourself. Big difference is that in the old 1.x code, data was stored in an array, so if you processed twice, it …
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Weird. I'll check with Jordi (the Composer author) to see why it (sometimes?) decides to do a git checkout, even if the package is on packagist, and there is a valid reference to a zipped version...
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Ok, so it doesn't break on upload, it breaks on Monolog? It should get the packagist zip for that as well. In the composer.json file, can you change the monolog version to "1.4.*" and run Composer update again?
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Hmmm... That's odd, it shouldn't go to the repo, it should download it from packagist. How did you update your base install? Also the oil and index.php has been updated, did you update those too? What's in your composer.json? What is…
Comment by
WanWizard
May 2013
permalink
“No input file specified.” with default .htaccess under FCGId on Apache
I don't know what .htaccess you've been using. The default one, supplied with FuelPHP in the /public folder, contains: # deal with php5-cgi first RewriteRule ^(.*)$ index.php?/$1 [QSA,L] which includes the question…
Comment by
WanWizard
May 2013
permalink
Session will not persist
I've just pushed 'remember-me' functionality to the 1.7/develop branch of the Auth repository. You can just switch the Auth package in your application to this branch to use it. See http://fuelphp.com/dev-docs/packages/auth/simpleau…
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:01PM
Roles
Administrator