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
Running multiple versions of SimpleAuth
Yes, but that is not enough as you re-use the same code. So add this to your "clone": public static function _init() { \Config::load('mysimpleauth', true, true, true); } to have it load it's own config file.
Comment by
WanWizard
February 2012
permalink
Oil Field Types
Thanks. Added it as a note to the dev.docs.
Comment by
WanWizard
February 2012
permalink
Running multiple versions of SimpleAuth
You can't have the same driver run twice, as the name of the driver is the key in the driver configuration in config/auth.php. But you fool it, very simply by creating app/classes/auth/login/mysimpleauth.php, which contains class Auth_Login_My…
Comment by
WanWizard
February 2012
permalink
Translating ORM Model properties
You mean, for the 'label' fields? The Form class instance will automatically do a \Lang::get() on the defined label, so if a language string exists that matches the defined label, it will load the translation. I code my labels as "la…
Comment by
WanWizard
February 2012
permalink
Loading a Model's 'parent'
Afaik relations should not be in the properties array, that's for table columns only. I would more go for an error in the relationship definition, that will cause the property not to be created.
Comment by
WanWizard
February 2012
permalink
orm many many with Warden Package strange problem
I don't know Warden, but is User -> Role defined as a many-to-many relation?
Comment by
WanWizard
February 2012
permalink
scaffold admin without simpleauth?
Then replace it after scaffolding? Or alternatively provide your own generation templates. The default ones are in oil/views/admin, you can copy the tree to your app/views folder, and modify to your liking.
Comment by
WanWizard
February 2012
permalink
Using Oil to create more complex tables
Can you be more specific? That page is about models, not about tables...
Comment by
WanWizard
February 2012
permalink
Oil Console - cannot modify header information
You can ignore the warning. The Auth class will try to set a cookie, which obviously doesn't work in a CLI context. Perhaps the Cookie class should check that. Can you create an issue for this on http://github.com/fuel/core/issues? SimpleAuth …
Comment by
WanWizard
February 2012
permalink
Migration problem
Other possibility is that your CLI version of PHP runs with a different php.ini file then you MAMP install, I've seen that happen also.
Comment by
WanWizard
January 2012
permalink
How to get 404 View using Template
Why not simply do $this->template->content = Response::forge(ViewModel::forge('404'), 404); Basically, where you can use a view, you can use a viewmodel.
Comment by
WanWizard
February 2012
permalink
Problem with session / rotation time - How to troubleshoot?
The session ID logic in the session class has been explicitly designed to be resilient against a rotation of the session id. Having said that, 10 seconds is EXTREMELY short. This means that if you have multiple concurrent calls in the same session,…
Comment by
WanWizard
February 2012
permalink
Problem with new New Api Documentation
Nothing wrong here, so I don't know what happen(s/ed). As for the errors, those are documentation errors in the file you selected. As soon as authentication is functional, those messages will only be shown when you're logged in. The idea …
Comment by
WanWizard
February 2012
permalink
Migration problem
So you haven't tested accessing from your app yet? Your config looks ok. Are you on a Mac by any chance? I've read that they have issues with using 'localhost', most people change it to something called 'local.dev' or …
Comment by
WanWizard
January 2012
permalink
Problem with new New Api Documentation
Which version of Opera? I haven't got it installed, but I will so I can test it.
Comment by
WanWizard
February 2012
permalink
FuelPHProfiler
Haven't thought about it, but it needs to be something that either is (virtually) invisible on the page, something that can be popped up by some means, of in a separate window (like for example Smarty's debugger). I'm also thinking a…
Comment by
WanWizard
January 2012
permalink
Using oil and MAMP on OS X Snow Leopard
I recall some issues with using localhost on Mac, most people change it to something else (like mac.local or so). And officially you should, as per the RFC 'localhost' is not a valid fully qualified name (which requires at least one dot i…
Comment by
WanWizard
February 2012
permalink
Migration problem
in which environment are your database settings configured? And to they work when accessing them trough the browser?
Comment by
WanWizard
January 2012
permalink
FuelPHProfiler
@msaspence, Can't contact you on github (no email address defined), so I'll do it here. We're thinking about replacing the current Profiler for FuelPHP 2.0, and I like a lot of the features you have built into your profiler. Would it…
Comment by
WanWizard
January 2012
permalink
Why is it necessary to add a $data argument when overridding Controller_Template::before()?
The theme used doesn't really support the Pyro forum module. We know that, but our designer is busy elsewhere. We're going to swap to a more professional forum soon, so these issues will be solved then.
Comment by
WanWizard
February 2012
permalink
Why is it necessary to add a $data argument when overridding Controller_Template::before()?
Don't know where that text comes from, before() has never had a parameter. after() does though, and that isn't mentioned. I'll update the documentation.
Comment by
WanWizard
February 2012
permalink
The requested view could not be found
View files go in app/views, not in classes/view (which is for viewmodel classes).
Comment by
WanWizard
February 2012
permalink
Accessing the id field using simpleauth
get_id() returns information about the loaded Auth drivers. Use Auth::get_user_id(). Note that that will return an array structure as well, as Auth supports multiple drivers, and you can be logged in using more then one (each having their own '…
Comment by
WanWizard
February 2012
permalink
Model Propery Default Value
Moved to the ORM forum.
Comment by
WanWizard
February 2012
permalink
SQLite
There's a new database layer in the making that will solve platform support issues. The current layer is very MySQL centric, which causes these kind of issues. For the DSN, the driver will split it into the variables needed for PDO to connect …
Comment by
WanWizard
February 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,373
Last Active
2:14AM
Roles
Administrator