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
Modules routing nightmare
Me to, I have no clue what you're on about. If you have a front controller that handles ALL requests as you write, routing "(:any)" is all you need to do, no requirement for any other route. Routes have precedence over controller ac…
Comment by
WanWizard
August 2015
permalink
Modules routing nightmare
Module routes can only be used for routes inside that module. In other words, the lefthand site must define a route that starts with the module name, so (:any) will not work in a module, you can to define that in the global (=app) routes.php. In ou…
Comment by
WanWizard
August 2015
permalink
how to execute a specific migration
You can not, migrations have to run in sequence. They are an incremental evolution if you will from the schema/state of your database. So if you want to run 7, you need to "undo" 8 to 11: php oil r migrate:down --v=7 will migrate down …
Comment by
WanWizard
August 2015
permalink
Creating user with no email
Yes, that is not a problem. It only means that you have to manually hash the password before you store it, something that create_user() will do for you. You hash the password using Auth::hash_password(), this ensures you can use Simpleauth to login…
Comment by
WanWizard
August 2015
permalink
SQl Server
You can use any ORM you like. Most can be installed through Composer these days, and Fuel is fully compatible with Composer.
Comment by
WanWizard
August 2015
permalink
How can I set a field as a primary key in a migration?
If you're planning on using the ORM, you can not have foreign keys as part of the primary key. The ORM sometimes what's to set them to NULL which is not handy for a PK. You create a table using DBUtil::create_table (see http://docs.fuelph…
Comment by
WanWizard
August 2015
permalink
migration not working after table deleted
You can run migrations only once. The Migrate class keeps track of migrations in both the migrations table and the migrations config file, and both have to be in sync. If you only have a problem locally (i.e. it is not a deployed application), you …
Comment by
WanWizard
August 2015
permalink
show message
Can't say whether or not that is ok, it greatly depends on your application, and the architecture of the application. Our webengine is widget driven, and the messages widget uses a presenter that does the retrieval, the pre-processing, and the…
Comment by
WanWizard
August 2015
permalink
Validation and trim input value
And I understand that. ;-). Just trying to explain why Fuel doesn't do it.
Comment by
WanWizard
August 2015
permalink
Validation and trim input value
No, there isn't. It's Fuel's architecture to NEVER modify input in any way. Validation returns validated input that you can fetch using the validated() method, but that only includes fields that validate, and yours doesn't. Sin…
Comment by
WanWizard
August 2015
permalink
SQl Server
I can't, no Microshit available in our office. ;-) I've had a quick look at the proposed driver, but it doesn't fix all problems, and it's very specific to and old SqlServer version. If you want to see what nightmare you have w…
Comment by
WanWizard
August 2015
permalink
show message
No, I can't, ours is not open sourced. But the core of it is, you can find it in our old "depot" project: https://github.com/fuel/depot/blob/1.0/develop/fuel/app/classes/messages.php
Comment by
WanWizard
August 2015
permalink
Best way to set meta title from HMVC called module
There are a few ways of dealing with dependency issues: You make something globally accessable. This works if your modules have to work within a specified framework. For example, all our modules controllers are widget generators, but are operationa…
Comment by
WanWizard
August 2015
permalink
show message
That depends on what Message does, where did you get it from? On one I made a long time ago uses flash, and has no issue with single redirects.
Comment by
WanWizard
August 2015
permalink
show message
To do what exactly? What problem are you trying to solve?
Comment by
WanWizard
August 2015
permalink
A package config load order problem
Maybe not, but you're the first one asking about it afaik. You can use the path methods of the Finder to retrieve all loaded paths, add or remove paths, and reorder them. There is no set method to swap the order, but you could do something man…
Comment by
WanWizard
July 2015
permalink
fuelphp 2.0
Thanks. I need that. Latest indication unfortunately is at least 6 more months of problems...
Comment by
WanWizard
July 2015
permalink
Module admin controller extends problem
Ah, yeah, missed that. Your module name is a namespace for the controller. Glad you've got it sorted.
Comment by
WanWizard
July 2015
permalink
Module admin controller extends problem
The problem you have is probably that the "account" module that contains the class you want to extend isn't loaded, so you get a "class not found" when the framework attempts to load your Thankyou controller. There are two …
Comment by
WanWizard
July 2015
permalink
config save
As for the search, this forum software is what it is I'm afraid. Use Google: "look for this site:fuelphp.com", the site keyword limits the search to this website.
Comment by
WanWizard
July 2015
permalink
config save
I assume it is saved, but not where you think it was saved. If you don't specify the backend, Config will default to php config files. If you want to save in the db, you have to tell the config class that: Also, you don't save a value, yo…
Comment by
WanWizard
July 2015
permalink
Validation which depends on other values
I've never had this at hand, so I had to look in the class for possible solutions. In hindsight it seems logical that the fieldset doesn't contain the posted data.
Comment by
WanWizard
July 2015
permalink
What is the purpose of crypt.php?
Crypt is used in several places, the most visible of them being the encryption of the session cookie payload.
Comment by
WanWizard
July 2015
permalink
fuelphp 2.0
It is under development. And unfortunately it has been going very slowly, I've been very ill for over a year now, and haven't been able to do much on it. But we're slowly picking it up again, and rethinking the way we want to prog…
Comment by
WanWizard
July 2015
permalink
fuelphp 2.0
Does not exist yet.
Comment by
WanWizard
July 2015
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,369
Last Active
6:13PM
Roles
Administrator