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
is it support many groups in Auth?
* moved to the Auth forum * No, the SimpleGroup only supports a single group per user.
Comment by
WanWizard
May 2012
permalink
Using PEAR Log in parallel to FuelPHP's logger
Not without changing the PEAR package. The problem with PEAR is that most of it is very outdated and/or poorly maintained. There is a PEAR draft about introducing namespaces, which dates back to 2008, and isn't work on like most of the other P…
Comment by
WanWizard
May 2012
permalink
Image Uploading with a Form
Cool. Good to hear you've got it sorted!
Comment by
WanWizard
May 2012
permalink
i find fuelphp 1.2rc is load 99 files.
I've just checked Depot, which uses modules, themes and templates, 7 packages including Auth and ORM, and loads 91 files. So for any decent size app it's not unreasonable. If it really is an issue, create a 5Mb ramdisk, store the fuel fi…
Comment by
WanWizard
May 2012
permalink
i find fuelphp 1.2rc is load 99 files.
We keep a constant eye on the speed of the framework, and are constantly busy optimizing it. Compared to other frameworks, FuelPHP is as fast or faster, so I wouldn't worry to much.
Comment by
WanWizard
May 2012
permalink
Image Uploading with a Form
Aren't they uploaded, does the validation fail, or does the save fail? The correct way to work is to process, to check for errors, to save, to check for errors again. So your first port of call would be to dump the errors.
Comment by
WanWizard
May 2012
permalink
Image Uploading with a Form
You get that error if you don't upload anything and using 1.2/master or 1.2RC1. It has already been fixed in 1.2/develop, so either wait for the 1.2 release (next couple of days), switch to a develop branch (1.3/develop would then be the optio…
Comment by
WanWizard
May 2012
permalink
Populating Fieldset when fetching the model - not working?
add_model() doesn't accept an array of default values, I don't know where you got it from. It does have the option to define a model method (by default called 'set_form_fields') which allow you to do all kinds of custom stuff wi…
Comment by
WanWizard
May 2012
permalink
how to open profiling and caching in controller?
You can not alter certain config values at runtime, as they are used in the FuelPHP boot process. Profiling is such a setting. You will have to add code to your config file to determine the value to return instead of returning a fixed value. Config…
Comment by
WanWizard
May 2012
permalink
Extending Autoloader
You can not extend the Autoloader at the moment, as you would need the autoloader to extend it. FuelPHP uses the standard SPL autoloading mechanism, you can just use spl_autoload_register() to register yours.
Comment by
WanWizard
May 2012
permalink
NinjAuth - config URLs
Did you report it to the author? Or created an issue for it? I know he's busy with a rewrite to make it framework agnostic, so it could well be the current development version isn't stable.
Comment by
WanWizard
May 2012
permalink
Routing advice
Then set your _root_ route to 'auth/index', and have your Controller_Auth redirect to "/" when no user is authenticated. If you have a landing page for authenticated users, you can redirect to that from 'auth/index' wh…
Comment by
WanWizard
May 2012
permalink
Admin module and routing
Then use a regex, as documented: http://docs.fuelphp.com/general/routing.html#/slightly_advanced '(:segment)/admin' => 'admin/$1',
Comment by
WanWizard
May 2012
permalink
Routing advice
FuelPHP URL's never contain a query string. Hiding segments isn't a good idea, since it would not allow bookmarking, and will make navigation extremely difficult (as you have to store somewhere what your next page is going to be).
Comment by
WanWizard
May 2012
permalink
Hello, new user to FuelPHP here
We're aware of it, but until Depot is finished we're a bit stuck with this forum and it's 'oddities'...
Comment by
WanWizard
May 2012
permalink
Admin module and routing
setup a route in app/config/routes.php: 'backup/admin' => 'admin/backup',
Comment by
WanWizard
May 2012
permalink
displaying items from a database in a loop
* moved to general, this is not an ORM question * What do you think DB:query() returns that you could use in mysql_fetch_array()? Start by checking the docs, or dumping $find_contact...
Comment by
WanWizard
May 2012
permalink
Hello, new user to FuelPHP here
I'll try to answer them all. 1). The internals of FuelPHP are definately going to change a lot going from 1.x to 2.0. The goal however is to keep the impact on the API minimal, and to provide a clear and documented upgrade path from 1.x to 2.0…
Comment by
WanWizard
May 2012
permalink
router error in production
There seems to be some issues with the PRCE libs that have been included in certain versions of PHP 5.3. You're the first one reporting this issue here, all I can see is people fixing it with different PHP versions, replacing PCRE libs or reco…
Comment by
WanWizard
May 2012
permalink
Can oil run on a hosted server?
That is not the problem, oil is written completely with the CLI in mind, it's basically a commandline Fuel interpreter (you can feed it Fuel code interactively). Running tasks and other stuff is just one of the other features of it. It's …
Comment by
WanWizard
May 2012
permalink
Download link for v1.2 is 404 on GitHub
Yeah, there is. We already pushed the 1.2 docs, but have a hickup in the 1.2 release, which is hopefully going to be rectified this weekend. You will always find the link to the latest version on the homepage, http://fuelphp.com.
Comment by
WanWizard
May 2012
permalink
Email Package dummy driver for unit testing
Please add it to https://github.com/fuel/email/issues, and give a use case. We don't use the forums to keep track of feature requests.
Comment by
WanWizard
May 2012
permalink
Validation->add_field does not accept rules as array
The docs reflect the latest released version, which at the moment is 1.2RC1. This is obviously a feature that has been introduced in 1.2, and is not present in 1.1.
Comment by
WanWizard
May 2012
permalink
how to use count() in ORM
It's an ORM, not a query builder, so you can't create custom SQL. If you want to know the number of related records, use count($post->file);
Comment by
WanWizard
May 2012
permalink
do you consider return default key in I18N
If you encounter a bug or issue, don't work around it, report it! Other people might be interested in a bug fixed too!
Comment by
WanWizard
May 2012
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
5:37AM
Roles
Administrator