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
8243
Activity
No output (white page) on syntax or some other error
Enable error reporting and display errors. This is enabled by default in your index.php. When in development mode FuelPHP shows you all errors including a code snippit and a backtrace, in production mode you only get a generic message, but the erro…
Comment by
WanWizard
January 2012
permalink
error related to i18n
On Windows, you can set the locale to "" (empty string), which will cause setlocale() to use the locale settings defined in your controlpanel (= regional settings). You can find a list of locales supported by Windows on this page: http://…
Comment by
WanWizard
January 2012
permalink
error related to i18n
The locale FuelPHP uses is configured in config/config.php, and set using the set_locale() function. It is used for proper configuration of the decimal point, currency, etc. For a locale to work your operating system needs to support it, as that is…
Comment by
WanWizard
January 2012
permalink
Database prefix based on domain
That entirely depends on your environment, and how it is setup. If processing and respons time is your main concern, and you expect high volume for your application, session would be a good idea providing you store those in for examle memcached or …
Comment by
WanWizard
January 2012
permalink
Caching
Just had a peek in the code. Looks like the finder caching isn't finished yet, the methods return directly.
Comment by
WanWizard
January 2012
permalink
github error
the oil installer uses the git commandline tool to download the repository. By default, it uses the git protocol (if you open the installer.sh script, you'll see it uses "git clone --recursive git://github.com/fuel/fuel.git". The def…
Comment by
WanWizard
January 2012
permalink
Database prefix based on domain
The easiest and simplest would be to do this in the config/db.php file (or the development/production equivalent). Those are standard PHP files, you can can include any code you want before the array is returned. Determine the prefix there, store i…
Comment by
WanWizard
January 2012
permalink
Caching
The only caching that is part of the framework is the finders path cache. Which should be controlled by the 'caching' parameter in your config/config.php.
Comment by
WanWizard
January 2012
permalink
Blocking user account after too many wrong login attempts.
Proving my point that you have to think very careful about what functionality you build for what problem. Proper research and design is key, as always...
Comment by
WanWizard
January 2012
permalink
github error
"No route to host" when the host does resolve is either a network connectivity issue, or a security issue. Oil does a clone using the git protocol, which might be blocked by a firewall at your end. Can you clone manually using the git com…
Comment by
WanWizard
January 2012
permalink
Sentry - Authentication Package
I don't see this to be an oil bug. The question is, why does Sentry's migrations require the package to be loaded? The answer is: it tries to load the sentry config file from the package. So, the bug is that the migration doesn't ens…
Comment by
WanWizard
December 2011
permalink
Blocking user account after too many wrong login attempts.
I don't understand that statement. If you block a login for say 15 minutes after 3 failed attempts, all I have to do is enter the username and type rubbish as password three times. After which the original user can't login anymore. I call…
Comment by
WanWizard
January 2012
permalink
Blocking user account after too many wrong login attempts.
It entirely depends on the application and the user base. A big downside of blocking accounts is that you effectively create a wonderful denial-of-service opportuntity. Hacking attempts will block your legitime users from login in. Any way of circu…
Comment by
WanWizard
January 2012
permalink
commande oil generate admin... doesn't work
This is on a fresh install, using 1.1/develop: $ php oil generate admin posts title:string slug:string summary:text body:text user_id:int Creating controller: /data/www/vhosts/fuel.catwoman.local/fuel/app/classes/controller/base.php Creating co…
Comment by
WanWizard
December 2011
permalink
Scaffold on Admin
"php oil g controller admin_members action1 action2 action3" should do it...
Comment by
WanWizard
January 2012
permalink
Scaffolding doesn't create correctly named Controller
Has been fixed in develop. Line 417 in classes/generate.php should read: $class_name = \Inflector::classify($name, false);
Comment by
WanWizard
August 2011
permalink
Scaffold on Admin
That would translate to Controller_Admin_Members. If you pass that to oil to generate, it will place it in the right location automatically.
Comment by
WanWizard
January 2012
permalink
Apache magic subdomains
In this setup requests for some.net will end up in /public/net/some, so you need a .htaccess there that will rewrite to the index.php that is in www/public/index.php (I presume). I avoided these issues by using a flat structure, and define it like …
Comment by
WanWizard
January 2012
permalink
What is the best way to redirect user to previous page
See http://docs.fuelphp.com/classes/event.html The shutdown event is a system defined event, to execute tasks when Fuel is finished processing the request. It is called on the last line of your public/index.php file. Just use this in your code Even…
Comment by
WanWizard
January 2012
permalink
What is the best way to redirect user to previous page
I use a shutdown event for that, that (amongst other things) saves the current URI to a session variable. This way I always have the previous URI available. I am not using the referrer, as that can contain anything, from external URL's (to whi…
Comment by
WanWizard
January 2012
permalink
Removing Models/Controllers/Views
Add it as a feature request on http://github.com/fuel/oil/issues, including your use-case.
Comment by
WanWizard
January 2012
permalink
Removing Models/Controllers/Views
afaik Oil does not have a removal option. Just delete them by hand.
Comment by
WanWizard
January 2012
permalink
ORM limit and where conflict
The reason for this has been discussed here many times, please search for answers before asking a question.
Comment by
WanWizard
December 2011
permalink
Understanding ORM Relationships
You're not using the ORM, you're using Model_Crud. Which doesn't support relations.
Comment by
WanWizard
December 2011
permalink
Why does Fuel inserting null values to fields?
Moved to the ORM forum.
Comment by
WanWizard
December 2011
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,390
Last Active
1:18AM
Roles
Administrator