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
8243
Activity
Bundle Unit Test with Package
According to the phpunit.xml, it looks for ../packages/*/tests so packages lives one up from the directory the xml is in, and test are in the tests folder of a package (and not in test).
Comment by
WanWizard
January 2013
permalink
What will be with fuelphp?
FuelPHP 2.0 is going to use composer for all packages. We haven't made the descision if we're going to use packagist.org for the packages (for the moment, during development, we will), or if we're going to setup our own repository.
Comment by
WanWizard
January 2013
permalink
Extending SimpleAuth
in app, using the same folder structure, and then define the class in the app bootstrap. My app's bootstrap has: Autoloader::add_classes(array( // our custom auth classes 'Auth_Login_SimpleAuth' => APPPATH.'cla…
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
Just a second, I'm stupid. I just noticed the problem is not that the profiler doesn't see the queries. It does, as it as says "2 queries" in the tab. The problem is that these two queries are not displayed. Just created a new …
Comment by
WanWizard
January 2013
permalink
Extending SimpleAuth
What I've done is add a rights structure for a user similar to the one defined for a group (the simpleauth 'roles' array in the config file). I store this in the users profile_fields in the database. Then in my simpleacl extension, I…
Comment by
WanWizard
January 2013
permalink
web server installation
the message is pretty clear, maybe it's a rights or ownership issue higher up in the folder structure?
Comment by
WanWizard
January 2013
permalink
download file without it being stored on server
There is no ready-made function of it. Best option will be is to see how File::download is implemented, and copy that, replacing the file read loop with your string data.
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
And what does your environment db.php looks like? Because this one doesn't contain any database definitions. No change that that will overwrite the setting?
Comment by
WanWizard
January 2013
permalink
Composite Primary Key error
Can you post the backtrace of the exception? It will show you where in the delete process it is generated.
Comment by
WanWizard
January 2013
permalink
Extending SimpleAuth
What do you mean? The custom features I was talking about were application specific, hence the extension.
Comment by
WanWizard
January 2013
permalink
Model Belongs to and Has One - Relationships Issue
Write out the relation definition as described in the docs, and use the correct key_from and key_to fields. If you use a definition like array('item'); the ORM will try to expand that to a proper definition using set rules. For keys, that…
Comment by
WanWizard
January 2013
permalink
Extending SimpleAuth
I have done exactly the same, I've extended both 'login' and 'acl' to add custom features.
Comment by
WanWizard
January 2013
permalink
Composite Primary Key error
Most common cause for that error is incorrect relation definition, where this error is not generated on the model object itself, but on a related object. Related objects should all have a belongs_to to Model_Meetingroom. If not, the ORM will try to…
Comment by
WanWizard
January 2013
permalink
web server installation
By default index.php looks for the app folder in "..", so one directory level up from where index.php is. It looks like your setup is standard, so I don't think there's a need to change anything?
Comment by
WanWizard
January 2013
permalink
Why can't I access SimpleGroup after extending SimpleAuth?
Correct, group() refers to the static interface on the group driver, it's not a method in itself.
Comment by
WanWizard
January 2013
permalink
ORM Relation with 'where' clause doesn't result in a left join
Do you have a suggestion on how the docs can be improved? If they are not correct or confusing, that needs to be fixed. We're open to contributions or suggestions.
Comment by
WanWizard
January 2013
permalink
ORM Relation with 'where' clause doesn't result in a left join
The fact it doesn't do what you think it must do doesn't make it a flawed query. The ORM simply is NOT a query builder that you can use to create any query you want, simply because it uses some familiar keywords. There are specific desig…
Comment by
WanWizard
January 2013
permalink
ORM Relation with 'where' clause doesn't result in a left join
You have to be careful with ORM and related queries, because they are generated not using a plain join, but using a sub-query. This is done because ORM caches results, so it needs to make sure no partial results are cached. You can enable the prof…
Comment by
WanWizard
January 2013
permalink
Why can't I access my module after it has been loaded and checked?
It took some debugging, but I think I found the issue. You ran into a an error in the documentation. When trying to find the module controller it will create the class name from the segments found, adding a backslash between namespace and classname…
Comment by
WanWizard
January 2013
permalink
Why can't I access SimpleGroup after extending SimpleAuth?
\Auth::group()->get_name(); You can use the driver type to access the driver. For acl, use \Auth::acl()-> ...
Comment by
WanWizard
January 2013
permalink
Why can't I access my module after it has been loaded and checked?
Have you changed your configuration? If you use the "Controller" sub namespace instead of the "Controller_" class prefix, you have to change the controller prefix in your config.php from 'controller_prefix' => …
Comment by
WanWizard
January 2013
permalink
Occasional requests take over 10 seconds
Absolutely. And I can't think of any reason why this would happen. Config::get() is nothing more than a glorified array_key_exists()...
Comment by
WanWizard
January 2013
permalink
Occasional requests take over 10 seconds
Honestly, I don't have a clue. Run an xdebug trace and analyze it with kcachegrind of webgrind?
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
I'm pretty sure it's not a bug, otherwise it would have been reported earlier, there hasn't been a code change in the profiler for many months. I can not reproduce it, as soon as I enable profiling in config.php and in the db.php …
Comment by
WanWizard
January 2013
permalink
Composite Primary Key error
Sounds like you haven't defined the primary keys in your model?
Comment by
WanWizard
January 2013
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,400
Last Active
1:44AM
Roles
Administrator