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
Module migrations relation to app migration
No, app, modules and packages are tracked seperately.
Comment by
WanWizard
May 2013
permalink
Need help with Advanced routing
You can do that quite easily, but you have to think about how you want the parameters appear in your controller method. For /users/1/comments you can use the route 'users/(:num)/comments' => 'comments/index/$1',and in your c…
Comment by
WanWizard
May 2013
permalink
Need help with Advanced routing
You don't route to models, you route to controller methods. Can you be more specific of what you exactly want? Is this what your URL's should look like? And where should they route to?
Comment by
WanWizard
May 2013
permalink
Uploading large files
That warning suggests it's still set at 32Mb...
Comment by
WanWizard
May 2013
permalink
Uploading large files
Check your php.ini settings, by default that has a limit of 8MB or so...
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
Hmm... Without looking at the admin code, my guess is it checks for membership of group '100', which in Simpleauth is the "admin" group. Ormauth doesn't have fixed group id's, as the id is an auto-increment value in yo…
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
It only generates that model if you generate the admin backend for the users table, which is required for Simpleauth (as that doesn't have a model), but not for Ormauth, which brings it's own model. Someone has to look into the code and s…
Comment by
WanWizard
May 2013
permalink
Easy way to throttle API requests?
Ideally you should not do this at the (PHP) application level. The housekeeping will take valuable resources away from your application, resources you're trying to save just by implementing throttling. You could use mod_security in apache: htt…
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
I looked into the generated code, but I can't find any reference to Model_User. What exactly generates that error? There is a user model in Auth, but that is called \Model\User (it's namespaced).
Comment by
WanWizard
May 2013
permalink
Using query() on Temporal Model
query() should do the same as find, it should be transparent. If it isn't, then I would say that's a bug. Please create a ticket for it, which a use-case if possible.
Comment by
WanWizard
May 2013
permalink
Before insert Observer on Temporal Model
Observer_Slug checks for duplicates, and I'm pretty sure it's not compatible with Model_Temporal, as it will see archived entries as duplicates (hence the new slugs you see). Please create a ticket for it at https://github.com/fuel/orm/is…
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
I don't know what oil generates, and what you exactly generated. What exact commands did you type?
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
Just checked the migration code, it expects "Ormauth" as driver name (class names are case sensitive in Fuel). So perhaps that is the issue?
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
Ok, so you've already run all migrations. This should be visible in the migrations table and config file. Perhaps you ran the migrations before configuring Auth? Then it will run them, and decide no tables needed to be created because you didn…
Comment by
WanWizard
May 2013
permalink
Setting up ORMAuth
It creates the migrations table, so we can assume the database connection is ok, and oil can connect to the database. Which PHP version are you using? We've been getting reports that the glob() statement we use to enumerate all migrations is b…
Comment by
WanWizard
May 2013
permalink
Unit Testing and Model Inheritance
What does class_exist('Model', false) return before you define your model tests? If it returns true, you can use this to check which file defines the class: $class = new ReflectionClass('Model'); var_dump($class->getFileNa…
Comment by
WanWizard
May 2013
permalink
Fuel Nested Sets
I've looked at your code, and really like the way the chaining way of defining move operations. One thing I wonder though: what is the use-case for shifting the tree up when deleting a node? It would destroy the entire structure of the tree, s…
Comment by
WanWizard
May 2013
permalink
Grouping query results by date
Something like: SELECT *, DATE_FORMAT(created_at,GET_FORMAT(DATE,'ISO')) AS Date, DATE_FORMAT(created_at, '%H:%i') as Time FROM table GROUP BY Horse_id, Date ?
Comment by
WanWizard
May 2013
permalink
Routing problems
Yes. If you use the standard .htaccess, you have the correct rewrite rules for FCGI installations.
Comment by
WanWizard
May 2013
permalink
It is very nice of U
There is no specific support for other databases in DBUtil, it's indeed written for MySQL. It's the main reason we've written a new database layer, which is fully platform independent. We're looking into how we're going to …
Comment by
WanWizard
May 2013
permalink
Custom 500 error page with templates and themes?
No, you can define multiple catch sections in a single try, so just add catch (HttpServerErrorException $e) { // do your thing here } You can use the same logic. It does a manual lookup for the route (you could use "_500_" if you want…
Comment by
WanWizard
May 2013
permalink
Fuel Nested Sets
To bad you've put this effort in, as nested sets will be part of the ORM package in 1.7, it's currently being finalized and tested. I will definately have a look at your changes, and if you don't mind cherry-pick improvements that we…
Comment by
WanWizard
May 2013
permalink
Can I use a collection of models as the option array argument for Form::select()?
No, you can not. Select options requires key-value pairs, which is not available in a model. If a model would provide that functionality somewhere (I wouldn't know how btw), it would be the select() method that would have to iterate over the c…
Comment by
WanWizard
May 2013
permalink
Custom 500 error page with templates and themes?
The framework itself only deals with a 404, and it does that using an exception. A 404 situation throws a HTTPNotFoundException, which is caught in your index.php, and which then does a new request for the 404 route. You can do the same for any ot…
Comment by
WanWizard
May 2013
permalink
Invalid rule while validating date
I don't know netbeans, but I know you need to use some tricks to make netbeans aware of the existense of the aliased classes. For phpstorm I use a dummy classes.php file in the root that defines all aliased classes, probably not entirely compl…
Comment by
WanWizard
May 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,368
Last Active
9:34AM
Roles
Administrator