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
Informix Database
Great, Thanks. In the meantime, more updates, and the start of more pdo backed drivers.
Comment by
WanWizard
January 2016
permalink
302 Redirects with SimpleAuth Login
There is only one redirect() in your code that can cause it,which is this bit in the before() method: if (Auth::check()) { $admin_group_id = Config::get('auth.driver', 'Simpleauth') == 'Ormauth&…
Comment by
WanWizard
January 2016
permalink
Informix Database
Just pushed further database driver updates to 1.8/develop today. All schema operations (from DBUtil) are now abstracted as well, and can be overloaded per driver if custom SQL is required (in your case, to Database_Informix_Schema, which needs to …
Comment by
WanWizard
January 2016
permalink
Informix Database
Just pushed an update to the DB code to 1.8/develop: https://github.com/fuel/core/commit/dbe536aa369f5a0287030518af36702873a71f5a I've moved the creation of the Query Builder class instances from the DB class to the connection driver. This mea…
Comment by
WanWizard
January 2016
permalink
love fuelphp
Thanks for the kudos !
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
What if your parameters contains an valid underscore? Then you will loose it as it will be replaced by a dot in your code.
Comment by
WanWizard
January 2016
permalink
query help
Done.
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
Huh? No, the solution is upgrade your code, or backport the fix. In Fuel, URI segments are used to pass data to the controller, and data should not be tampered with, so I would even argue (and I'm doing so on github) this check can be remove…
Comment by
WanWizard
January 2016
permalink
302 Redirects with SimpleAuth Login
You seem to use a very old version of Fuel, this "loop" bug was fixed on February 5th 2013, almost 3 years ago. I can only strongly suggest to upgrade to 1.8/dev. Here you can find the current version of the admin controller template: htt…
Comment by
WanWizard
January 2016
permalink
Informix Database
You might be right. I wonder what else went wrong where, as I got your examples from a MSSQL driver set I have worked on myself... I'll have to dive into it over the weekend, I feel this is going to be a bit of work...
Comment by
WanWizard
January 2016
permalink
Fuelphp skips migrations!!!
Yeah, don't do that again! For the future, if you are stuck with a migration that doesn't want to migrate down, the first to attempt is to fix the migration. If that really doesn't work, make sure the down() method returns true. You…
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
The revert of the change from 2011 means that now only directory traversal is still blocked. And I think that is a security feature that should not be optional.
Comment by
WanWizard
January 2016
permalink
302 Redirects with SimpleAuth Login
Which Fuel version, which code? The framework doesn't provide an "admin" controller out of the box.
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
Should be fixed in 1.8/develop: https://github.com/fuel/core/commit/3f67455b94862a2ec040c79078ec291e6c9e5f92
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
Interesting: this behavior was introduced here: https://github.com/fuel/core/commit/b83b52addc823fc5cf3a08992d1d7bd8a92e84cc and you're the first one in 5 years to bump into it... ;-)
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
Did some tests. You can't have URI segments with a trailing dot, they are stripped by the clean_uri() method of the Security class. It does that to deal with hacking attempts like "/some/link/../../../passwd", but perhaps it can be o…
Comment by
WanWizard
January 2016
permalink
Uri parameter containing dots
You can't have a dot in the last segment of the URI, there is no way to determine whether the part on the right side of the dot is part of the URI or the extension. So: "/controller/method/param.part/param" should work fine as a UR…
Comment by
WanWizard
January 2016
permalink
Informix Database
You need to create all the files in /fuel/core/database/informix/builder, so delete.php, insert.php, join.php, select.php and where.php. Just start by defining the empty classes as extensions of their global equivalent, so namespace Fuel\Core; cl…
Comment by
WanWizard
January 2016
permalink
query() method for MongoDB?
Mongo_Db has a where_gt() and where_lt() method to set these boundaries. And the other is a plain where() I think. So: $result = $mongo ->where(array('device_id' => 99)) ->where_lt('ets', 10) ->where_gt(&…
Comment by
WanWizard
January 2016
permalink
Informix Database
Your db.php config is ok? /** * Base Informix config */ 'default' => array( 'type' => 'informix', 'connection' => array( 'persistent' =…
Comment by
WanWizard
January 2016
permalink
Informix Database
Debug Database_Connection::classname(). It returns the name of the builder class based on the name of the driver class. If the name of the driver is "Database_Informix_Connection", it should return "Database_Informix_Builder_Select&q…
Comment by
WanWizard
January 2016
permalink
Informix Database
p.s. If you fork the fuel/core repo on github, and make your changes in there, you can rebase when you're done and send us a pull request, if you decide to make your driver public. I see that you can download a developers edition of Informix f…
Comment by
WanWizard
January 2016
permalink
Informix Database
You start with a fuel/core/databases/informix folder. In there you create: connection.php, containing namespace Fuel\Core; class Database_Informix_Connection extends \Database_Pdo_Connection {} so you can re-use the PDO driver. query.php, contai…
Comment by
WanWizard
January 2016
permalink
Primary key on model Model_Challenges_Type cannot be changed.
Saw your question on IRC. There are a few things I think are wrong: 1. you ALWAYS need to define the relation both ways. And your "type" model is missing the definition. 2. the rule for defining relations is that the "belongs_to&qu…
Comment by
WanWizard
January 2016
permalink
Ajax FuelPHP
That is your personal opinion. We disagree, we stongly believe a backend application framework should NOT force the developer to use a predefined frontend, the developer should be free in her/his choice. And it is not restricted to just the Ajax c…
Comment by
WanWizard
January 2016
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,371
Last Active
11:20PM
Roles
Administrator