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
Tutorial: How to setup FuelPHP on cPanel shared hosting.
And if your hoster gives you a setup where your root "is" your public_html, move the contents of /public to the root, remove the now empty public folder, and change the paths in index.php. And you're in business again. ;-)
Comment by
WanWizard
August 2017
permalink
404 error when copying application to new computer
lol, these things happen. Happy coding! ;-)
Comment by
WanWizard
August 2017
permalink
404 error when copying application to new computer
Perhaps zip it before you upload? I don't know what Google Drvier, and/or your copy method, does with hidden files for example? If .htaccess isn't copied over, I can imagine rewriting no longer works.
Comment by
WanWizard
August 2017
permalink
404 error when copying application to new computer
That should work fine providing you make sure the file system rights are correct (i.e. the webserver can find all files) and the webserver virtualhost definition is the same. The type of error you describe sounds like a rewriting issue. Same webser…
Comment by
WanWizard
August 2017
permalink
Object cloning and DB
Correct, you can't do that. There is a global database instance for every database connection. You can compare it to a raw PDO instance, which also can't be shared this way. You could clone database instances, but if you do this a lot, you…
Comment by
WanWizard
August 2017
permalink
Why is FuelPHP not popular yet :( ?
Daalụ !
Comment by
WanWizard
August 2017
permalink
Why is FuelPHP not popular yet :( ?
No, not at all. It just makes it complex to test classes in isolation, as you can't easily mock classes with a static interface.
Comment by
WanWizard
August 2017
permalink
Why is FuelPHP not popular yet :( ?
Because a lot of developers follow the latest trends, and Fuel is an older and stable framework, and we're not very eager to constantly add new bells and whistles? Just guessing. ;) The biggest issue with the framework is the fact that is uses …
Comment by
WanWizard
August 2017
permalink
Email alert before Oops page
Either do that, or extend Log, and use the Monolog NativeMailerHandler for it.
Comment by
WanWizard
August 2017
permalink
DBUtil | modify_fields | Change name to column
Binary is a column type, just like all others. array( 'unsigned' => true,), The others are not supported as they are specific to MySQL while the current DB layer has to be generic enough to work on other platforms too. Both the ORM a…
Comment by
WanWizard
August 2017
permalink
DBUtil | modify_fields | Change name to column
\DBUtil::modify_fields('table', array( 'old-name' => array('name' => 'new-name'),)); It might be that you need to repeat a few other values too, I can't recall from memory if some are required.
Comment by
WanWizard
August 2017
permalink
Pagination class (returns empty string)
You're welcome. To be complete, your initial query went wrong because all options have to be in a single array: $data['yourvoices'] = Model_Yourvoice::find('all',array( 'order_by' => array('created_at…
Comment by
WanWizard
August 2017
permalink
Pagination class (returns empty string)
Which Fuel version are you on? Does your app have a custom pagination config file, or do yo use the framework defaults? How many pages of output do you have (check the "total_pages" config value in your var_dump). If only one, pagination w…
Comment by
WanWizard
August 2017
permalink
Pagination class (returns empty string)
If you pass the object like that, it will be cleaned by the View as per your security settings, and I don't think that will work. So either whitelist the pagination class in your main config file ("whitelisted_classes"), or pass it to…
Comment by
WanWizard
August 2017
permalink
OrmAuth Tables....
I can live with one happy customer at the time. :-)
Comment by
WanWizard
August 2017
permalink
Array given with find_one_by
Yup, that is clearly not correct. More docs work. ;-) I'll add it to the todo list.
Comment by
WanWizard
August 2017
permalink
Array given with find_one_by
You're using it wrong. $userrightselected = Model_Userright::find_one_by_userID(Input::Post('user')); The second argument is an options array, just like with the standard find() call.
Comment by
WanWizard
August 2017
permalink
Select Method | ORM | Structure
It is easier to use DB calls for that, and not ORM calls, the ORM isn't really suitable as a query builder, and doesn't have the options to easily return values in the correct format, Using DB: // get the list of users in an id => fulln…
Comment by
WanWizard
August 2017
permalink
Question about DB class and ORM package
DB class is for database interaction. DBUtil class is for schema manipulation. The ORM is primarily designed for interactive functionality, not for batch operations. It caches every ORM object to ensure consistency between multiple queries on the sa…
Comment by
WanWizard
August 2017
permalink
OrmAuth Tables....
Done: https://fuelphp.com/dev-docs/packages/auth/ormauth/intro.html#/database
Comment by
WanWizard
August 2017
permalink
OrmAuth Tables....
Ok, I'll add it to the todo list. ;-)
Comment by
WanWizard
August 2017
permalink
Error when change e-mail address in FuelPHP forum
Dunno. I created a test account, and went though those popups (user info, password change) several times, no error seen. I'll have a look if I see a reference to RoleID somehere in the code.
Comment by
WanWizard
August 2017
permalink
Converting from SimpleAuth to ORMAuth
No. The hash mechanism for both is the same, so indeed, as long as the config is identical, it should be fine.
Comment by
WanWizard
August 2017
permalink
Converting from SimpleAuth to ORMAuth
Depends a bit how wild you went with groups and roles, because you have to convert these manually. The easiest is probably to make a copy of your users table, revert all Auth migrations (which should delete your users table), then change your app co…
Comment by
WanWizard
August 2017
permalink
Error when change e-mail address in FuelPHP forum
Weird. No matter what I do, I can't reproduce this one. I also can't find that exception in the logs, so no clue what caused it.
Comment by
WanWizard
August 2017
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,367
Last Active
2:53PM
Roles
Administrator