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
count() with multiple db-connections
Ok, So, to recap: - you have multiple connections defined in your db.php - your model has a non-default connection defined - the query still uses the default connection This is only on a count() query, or on all queries run on the model?
Comment by
WanWizard
April 2013
permalink
multi checkboxes error
parameter 2 is the value to validate. Instead of a string, Input::post('categories') contains an array.
Comment by
WanWizard
April 2013
permalink
Unit Testing
And how do you bootstrap the framework? Because without that, it's not going to work. Run your tests through oil instead, so you'll now it's setup correctly.
Comment by
WanWizard
April 2013
permalink
count() with multiple db-connections
Which Fuel version are you using? I can not determine this from your information. I see you define the connection name 'lyts' in your model, which does not exist in your db.php, so this can never work (the DB driver throws an exception i…
Comment by
WanWizard
April 2013
permalink
Log errors with permissions
This probably has to do with umask() being removed from the code. PHP is switching to a threaded model, and umask() is not thread-safe, so it's best not to use it. So the problem is that the chmod mask is applied, but taking the system's …
Comment by
WanWizard
April 2013
permalink
Unit Testing
How exactly do you unit test?
Comment by
WanWizard
April 2013
permalink
at least one required!
There is no standard rule for it, since it depends how you have implemented the checkboxes. You can write your own rule for it, and have that check.
Comment by
WanWizard
April 2013
permalink
MongoDB status and usage
The composer autoloader is included from fuel/core/bootstrap.php, if you're on 1.6. It would throw an exception if it couldn't, as Log and Upload depend on it too. If you're on 1.5 or lower, you need to add it manually to your app/bo…
Comment by
WanWizard
April 2013
permalink
set fieldset form class and attributes
If you need more than one form template: We use a forms.php config file in our applications. Inside we have a multi-dimensional array for form definitions (i.e. every array entry holds the values you'll find in form.php). This config file is a…
Comment by
WanWizard
April 2013
permalink
MongoDB status and usage
You don't, composer will do that all for you. If the correct package is in the composer.json file, all you have to do is to run a composer update. Once done the autoloader is configured for the installed packages and the namespaces these packa…
Comment by
WanWizard
April 2013
permalink
MongoDB status and usage
I've never used it, so I don't know the details. It's a composer package, so it will be added to the Composer autoloader, which is active automatically in 1.6. So you should be able to use it directly, as in the examples on https://g…
Comment by
WanWizard
April 2013
permalink
Auth Group Driver has_access check
Hmmm.... Looks like he suffered from the same problem as I, trying to figure out what the .... it is meant to do... :-)
Comment by
WanWizard
April 2013
permalink
3rd party functions and classes?
The best location for the definition of custom functions is in your app/bootstrap.php. Add them at the bottom, or use an include to load them. For third party classes, store them in app/vendor. How you load them greatly depends on what they are, ho…
Comment by
WanWizard
April 2013
permalink
Rest Digest Authentication
The most secure solution for web services is to encrypt using TLS, and authenticate using a client-side certificate. But that's very complex to setup, and for that reason it's usually implemented using a security gateway. One step down ar…
Comment by
WanWizard
April 2013
permalink
Template controller
I don't know, your change looks fine. You get a 404 when you do 'http://yourhostname/welcome/index' ? It worked before you made this change?
Comment by
WanWizard
April 2013
permalink
NinjAuth?
I'll have a look at that. You run all migrations at once using php oil refine migrate --all
Comment by
WanWizard
April 2013
permalink
Can I halt execution of a Controller_Template based class?
If you use File::download(), nothing. It will disable output compression for you if it is enabled. It will also wait with starting the download until after Fuel has finished execution, to avoid shutdown events messing up your download in case they …
Comment by
WanWizard
April 2013
permalink
NinjAuth?
It wasn't there when you reported the issue, so I guess he'd read my email. :-) I'll change the depot repot to use this one as a submodule reference.
Comment by
WanWizard
April 2013
permalink
NinjAuth?
I've send Phil a message asking him to restore the repo. If he really binned it, I'll upload the version I have. But since I'm not sure it's the latest, let's wait until Phil replies.
Comment by
WanWizard
April 2013
permalink
standalone action
That is not a problem, as long as you change the path constants accordingly. You'll have to change the define for APPPATH in your index.php, and in the oil script if you use that. And you'll need to change phpunit files too if you want to…
Comment by
WanWizard
April 2013
permalink
File::download throws error ErrorException [ Warning ]: finfo::finfo() [finfo.finfo]: Failed to load
You can try working around it by finding the location of your local magic file, make sure it can be read by your webserver user, and create a file.php config file in config/development, in which you add return array('magic_file' => [yo…
Comment by
WanWizard
April 2013
permalink
standalone action
The "Tasks" folder can not be moved independently, it must stay where is it. You can only move locations for which a path constant is defined in the index.php (i.e. app, fuel/core, fuel/vendor (1.6), and packages). You can also move modu…
Comment by
WanWizard
April 2013
permalink
Auth::check() always return false
No problem, glad you've fixed it.
Comment by
WanWizard
April 2013
permalink
Example of search form processing
Because your question was not *very* similar. It was extremely vague, nothing specific, and no reply to any of my questions be become more specific. This question is a very specific question, which can be anwered.
Comment by
WanWizard
April 2013
permalink
Search Form
I have a serious problem with your attitude, and that is why I respond like this. You claim you have PHP experience. You claim you can code up a solution in stand-alone PHP "in a few minutes". Yet you don't seem to be able to grasp …
Comment by
WanWizard
April 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,369
Last Active
10:21AM
Roles
Administrator