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
Best way to automatically populate my model.
You can see _init() as the static equivalent of __construct(). It was originally designed to have some sort of constructor for classes inside the framework that only have a static interface. They are never instantiated, so a constructor is never c…
Comment by
WanWizard
April 2014
permalink
Strange redirect loop
Your code is filled with redirects, so some debugging would probably clear it up quickest. Add some logger() calls, and check the logfile to see what route it takes through your code...
Comment by
WanWizard
April 2014
permalink
Strange redirect loop
I would say that your route 'game' => 'game/index', // Game section would match /game/backend/exception too...
Comment by
WanWizard
April 2014
permalink
Advantages of using DB Query Builder
Using a QB should give you a reasonable abtraction of the underlying platform. If you carefully design your application and follow the rules for separation-of-concern, all I/O is concentrated in methods inside your models, and not littered all over…
Comment by
WanWizard
April 2014
permalink
START TRANSACTION Clarification
Saw it, thanks.
Comment by
WanWizard
April 2014
permalink
START TRANSACTION Clarification
Please create a ticket for it so Frank can have a look. Most of the current DB layer is ex-Kohana and over three years old.
Comment by
WanWizard
April 2014
permalink
Very simple blog application
Assuming this is a modication of that code, isn't it a lot easier to send the author a pull request on Github?
Comment by
WanWizard
April 2014
permalink
users_metadata table
Agent is indeed for the current user. In your use-case, meta data is a logical place to store it, best place to do it is when the user logs in.
Comment by
WanWizard
April 2014
permalink
users_metadata table
Nope, random choice. You can update it to anything you want. Where should it store the user agent? Which user agent (the browser one)? And why?
Comment by
WanWizard
April 2014
permalink
Very simple blog application
Because it doesn't use Auth for user management, it uses it's own custom solution using the User model in ./fuel/app/classes/model/user.php.
Comment by
WanWizard
April 2014
permalink
Twig with FuelPHP
The parser package requires you to install twig using composer.
Comment by
WanWizard
April 2014
permalink
Add extra data to model for view specific data.
The ORM is not designed as a query builder (it's not the purpose of an ORM), and as a result you're limited to what you can do with it. Selecting a subset of columns is technically supported but not advised, since once you query them you…
Comment by
WanWizard
April 2014
permalink
Return a group of Models given an array of PK ids.
Model_MyModel::query()->where('id', 'IN', $pks)->get(); ?
Comment by
WanWizard
April 2014
permalink
FuelPHP 1.x Composer Setup
I know, because I have all versions local, but I understand you're point. The sooner we get to v2 the better (it is completely tag/version based, no more seperate repositories).
Comment by
WanWizard
April 2014
permalink
What is cache section?
Thanks. I see Frenky has already beaten me to it. ;-)
Comment by
WanWizard
April 2014
permalink
Volcano: Open Source Billing System
I'll see if I can find the time to look into it in detail in the next couple of days, I'm rather busy at the moment.
Comment by
WanWizard
April 2014
permalink
What is cache section?
Correct. You can use a cache key like "module.function.keyname", and with delete_all("module"), you delete every cache item that starts with "module.". It's easiest to understand if you use the file driver, where …
Comment by
WanWizard
April 2014
permalink
What is a ViewModel $auto_filter?
auto_filter on Views and Viewmodels define the default for variable encoding. Meaning that if you call set() to set a variable, and you don't pass information on whether or not that variable should be encoded or not, the auto_filter value will …
Comment by
WanWizard
April 2014
permalink
Multiple fuelphp app instances and single login
Sessions don't use the generic cookie configuration. There is a custom config (same list of fields) in the session.php configuration file.
Comment by
WanWizard
April 2014
permalink
Using Fuel's Router Standalone.
Yes, you can just add it to the existing composer.json.
Comment by
WanWizard
April 2014
permalink
Using Fuel's Router Standalone.
It's probably better to have a look at Fuel v2's router component. It does not have any dependencies, see https://github.com/fuelphp/routing. No docs yet, but there's a simple test, and some example in the index.php.
Comment by
WanWizard
April 2014
permalink
get the auth users metadata fields
It's always handy to have the profiler active when you develop your application, you can easily see the effect a code change has on the performance, the database I/O, the memory usage, etc.
Comment by
WanWizard
April 2014
permalink
get the auth users metadata fields
Ok, I misunderstood you then. I though you wanted all meta fields of a single user, not the same field from all users. Since you need the metadata for each user, include it in the query. You are lazy loading the data, which means it will run a que…
Comment by
WanWizard
April 2014
permalink
php oil refine install Error
Ah, ok.
Comment by
WanWizard
April 2014
permalink
get the auth users metadata fields
Ormauth or Simpleauth? In case of Ormauth: // get the meta data for user 1: if ($user = \Model\Auth_User::find(1, array('related' => 'metadata'))) { $metatdata = \Arr::pluck($user->metadata, 'key', 'va…
Comment by
WanWizard
April 2014
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,368
Last Active
11:42AM
Roles
Administrator