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
route all request to a single view
array( '(.*)' => 'controller/all', ) and this might work tooarray( '(:any)' => 'controller/all', )
Comment by
WanWizard
November 2012
permalink
Extending Orm package
No, that is not possible.
Comment by
WanWizard
November 2012
permalink
Unit Test with MongoDB
Most obvious reason that that your commandline environment uses a different php.ini from the one your webserver is using, causing extensions not to be loaded. This is almost always the case in xAMP type installations. You can test this by locating…
Comment by
WanWizard
November 2012
permalink
Love the new site
Fixed. One of the jquery includes has disappeared from the subpage templates. Thanks for reporting it!
Comment by
WanWizard
November 2012
permalink
Uncaught exception with message date() - unsafe to rely on systems timezone
Check the release notes, it was mentioned at the top, in bold. 1.3 had a default setting to UTC, which nobody checked, and caused all kinds of misery when the server wasn't running in UTC (most notably failing sessions). So for 1.4 it was rem…
Comment by
WanWizard
November 2012
permalink
Love the new site
Hmm... That should not be clickable. I'll have a look.
Comment by
WanWizard
November 2012
permalink
missing good tutorials and up to date code
He used to be. He got a new job, moved to New York, and doesn't have time for open source any more.
Comment by
WanWizard
November 2012
permalink
Fuel1.4 - No database selected and config files are empty?
Has been fixed in the 1.4/master repo and the zipfile. This is caused by fuel/core/config/db.php, which by mistake lists both the PDO and MySQLi driver sections for the 'default' driver, so the MySQLi sections overwrites the PDO section. …
Comment by
WanWizard
November 2012
permalink
Love the new site
The forum uses Gravatar. So create an account there, and link your email address to the avatar of choice.
Comment by
WanWizard
November 2012
permalink
URI segment not getting the full segment
In the config.php, in the routing section, there's a config key called 'strip_extension'. You can set it to false.
Comment by
WanWizard
November 2012
permalink
Multiple validations?
If you want to use the model for validation, you should look into the Validation observer. It runs automatically on save(), based on the validation rules defined in $_properties.
Comment by
WanWizard
November 2012
permalink
URI segment not getting the full segment
It sees the part after the dot as the extension, and since extensions aren't part of the URI, they get stripped. As a workaround you could glue Input::extension() to the back of the last segment using a dot as separator.
Comment by
WanWizard
November 2012
permalink
Disabling sessions for API access?
I've installed a forum feature in which you can select to start a question instead of a discussion. With questions you can indicate if is was answered.
Comment by
WanWizard
November 2012
permalink
Oil version 1.4 no database error when migrating and create user via oil console
Oops. Issue seems to be related to the default db.php file in fuel/core/config, which has two default entries for both PDO and MySQLi, the last one overwriting the first one. Remove the MySQLi entry in there to fix the issue.
Comment by
WanWizard
November 2012
permalink
oil generate model got an error
The oil issues have been fixed. It depends on how you have installed FuelPHP. The default setup, as included, only works when you installed it as documented, with the webserver document root pointing to the public folder. If you have installed it …
Comment by
WanWizard
November 2012
permalink
Oil version 1.4 no database error when migrating and create user via oil console
You defined the 'mysqli' driver, which requires separate user, pass, host, port and dbname. Only the PDO driver uses the 'dsn' value. So either switch the driver to PDO, or define the correct fields.
Comment by
WanWizard
November 2012
permalink
Custom Model Properties Extension
I'm trying to understand why you think this is needed. The v1.4 supports custom properties on the object without problems, and to deal with data you should use an observer. So this functionality is available out of the box.
Comment by
WanWizard
November 2012
permalink
Oil version 1.4 no database error when migrating and create user via oil console
As I said in my previous post, absolutely nothing has changed in 1.4 compared to 1.3. The issue I think here is that development/db is merged with db, and the development data has precedence. Can you do \Config::load('db', true); \Debug…
Comment by
WanWizard
November 2012
permalink
Love the new site
Thanks for the kudos, glad you like the improvements.
Comment by
WanWizard
November 2012
permalink
Problems with oil in version 1.4
Has been fixed in the 1.4/master repo, downloads have been updated too.
Comment by
WanWizard
November 2012
permalink
Problems with oil in version 1.4
Grrr... I hate last-minute fixes...
Comment by
WanWizard
November 2012
permalink
Problems with oil in version 1.4
Fix the typo by hand (change Clio by Cli) or re-install v1.4. This has been fixed in the repo and the zipfile that's currently on Github.
Comment by
WanWizard
November 2012
permalink
Oil version 1.4 no database error when migrating and create user via oil console
You should not modify config/db.php, unless you're changing global parameters. Anything in development will overwrite what you have defined globally. Both are by default configured for PDO, not for MySQLi, so you have changed more then only the…
Comment by
WanWizard
November 2012
permalink
Oil version 1.4 no database error when migrating and create user via oil console
Check to make sure the commandline version of PHP uses the same php.ini as your webserver. If you're using something like MAMP or WAMP, this is often the issue, causing the database drivers not to be loaded.
Comment by
WanWizard
November 2012
permalink
[404 PAGE] - How to redirect to the 404 page ?
Moved to General, this is a question, not a "tip or tutorial"
Comment by
WanWizard
November 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,396
Last Active
July 11
Roles
Administrator