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
How can I prevent Oil from overwriting my base controller?
Controller_ and Model_ are the default naming conventions of these files. For Models, you could use the namespace "Model" without problems, but for controllers that is not going to work without configuration.
Comment by
WanWizard
December 2012
permalink
How can I prevent Oil from overwriting my base controller?
You can use --skip to skip over already existing files when generating new ones.
Comment by
WanWizard
December 2012
permalink
newbie, how to get $_POST or $_GET
'htmlentities_flags' => ENT_QUOTES should be inside the security array, but that shouldn't make a difference. Perhaps a csrf violation? Can you set csrf_autoload to false?
Comment by
WanWizard
December 2012
permalink
How to implement non_column or "virtual" property?
Then I made a mistake, and the change did make the 1.4 release. ;-) As I said, the functionality is in the getter/setter (__get/__set), where it stores the data in the _custom_data structure if it's not a property or a relation. It might be p…
Comment by
WanWizard
December 2012
permalink
How to implement non_column or "virtual" property?
You don't define them. You just use them. So if you do $model->someproperty, the model will first check if it's a property (a column). If not, it will check if it's a defined relation. If not, it will create a virtual property for…
Comment by
WanWizard
December 2012
permalink
Fuel-opauth package.
I haven't used it, but looking at the code it expects the stategy to be used as the first segment in the URI. If you haven't got your rewrites properly done, your URI has /public/ as first segment, which is not going to work. I expect thi…
Comment by
WanWizard
December 2012
permalink
Dynamically change config values
The option array passed to the forge() method has the same structure as the array in the config file, as they are merged when you forge. So either do $email = \Email::forge('default', array('smtp' => array('username'…
Comment by
WanWizard
December 2012
permalink
[apc error] Dynamic inheritance detected for class
It's a warning, not an error. You have to be careful using tools like APC for opcode caching in a development environment. It can cause all kinds of issues due to discrepancies between the compiled cached version and the modified version on di…
Comment by
WanWizard
December 2012
permalink
Dynamically change config values
The first one doesn't work because the config is only loaded when the Email class is loaded (which will overwrite your setting if that happens later then your set) and when it loads, it will immediately copy the config to an internal 'defa…
Comment by
WanWizard
December 2012
permalink
input field's label does not get an id
In v1.5. the fieldset will add the 'id' attribute to the label tag.
Comment by
WanWizard
December 2012
permalink
How to implement non_column or "virtual" property?
I think the 1.5/develop ORM package works fine with a 1.4 release core.
Comment by
WanWizard
December 2012
permalink
newbie, how to get $_POST or $_GET
You're config should indeed be in app/config. But for every config file, there's one in fuel/core/config that contains all default values. When the config is loaded, both are loaded and merged so you only have to specify the changes in th…
Comment by
WanWizard
December 2012
permalink
Session class using db driver with ODBC: driver does not support lastInsertId()
No number has been assigned yet, but it will probably be 2.0. I can't say if that will be the next version, or if there will be a 1.5 (or more) first. It all depends on how quick we can get everything working, and how many changes in 1.5/devel…
Comment by
WanWizard
December 2012
permalink
newbie, how to get $_POST or $_GET
Your array structure is not correct. 'security.csrf_autoload' should be 'security' => array('csrf_autoload' => ...) dot-notation is the way array access is documented in Fuel (as a short way to define a complex…
Comment by
WanWizard
December 2012
permalink
How to Signup without Emails
See the docs, under classes, extending core. It works the same for classes in packages that are aliased to the global name, like Auth. In short: - make sure that the Auth package is 'always_load'ed - create a class called Simpleauth in ap…
Comment by
WanWizard
December 2012
permalink
How to implement non_column or "virtual" property?
You can't in 1.4, it is not supported. In 1.5/develop, $model->thisisnotacolumnname works fine.
Comment by
WanWizard
December 2012
permalink
Session class using db driver with ODBC: driver does not support lastInsertId()
Problem with lastInsertId() is that it's target platform specific. PDO works around it by defining the interface (PDO::lastInsertId), and leaving it up to the driver to implement it or not. Some do (for example the mysql driver), some have a w…
Comment by
WanWizard
December 2012
permalink
How to Signup without Emails
You'll have to extend the SimpleAuth driver and make the email address optional.
Comment by
WanWizard
December 2012
permalink
DRY method of defining model columns and using UUIDs instead of auto_increment IDs
You don't need the classname, you're in the class. So you can just use static (as in 'static::$properties') to access the class properties. I do exactly the same as you want here, and that works fine.
Comment by
WanWizard
December 2012
permalink
created_at/updated_at inconsistencies
No, submodules are pinned on a specific commit hash, which is not related to any particular branch, it's just a snapshot of the repo frozen in time. In general the references should be in sync, but as it is a lot of manual updating to keep th…
Comment by
WanWizard
December 2012
permalink
Xhprof profiler budle for FuelPHP
Done. You have access to the forked repo, so you can update it yourself if and when needed.
Comment by
WanWizard
December 2012
permalink
created_at/updated_at inconsistencies
Mixing versions might cause problems, there are dependencies between packages and some of the core classes. It's best to keep it all the same version as long as we haven't sorted the tight coupling issue.
Comment by
WanWizard
December 2012
permalink
Xhprof profiler budle for FuelPHP
Cool! Let us know if and when you want it forked to http://github.com/fuelpackages
Comment by
WanWizard
December 2012
permalink
When module A calls module b, why is A's view loaded and not B's?
Yes, and yes. ;-) The key concept here is "request context". Everything that is loaded in Fuel, like config, language files, views, are loaded from their context, which determines what search paths are used to look for a file. If you req…
Comment by
WanWizard
December 2012
permalink
created_at/updated_at inconsistencies
Correction, that is not possible. A submodule is a reference to a specific commit, after installing them your modules are 'headless', they don't point to any branch. If yours point to a specific branch, you must have done a "git…
Comment by
WanWizard
December 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,370
Last Active
2:32PM
Roles
Administrator