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
Opauth with GoogleStrategy
It's because of what I wrote earlier. Because you have two additional URI segments, everything is shifted by two segments. And that is why $this->env['params'] in Opauth contains 3 entries instead of only one, the strategy. This …
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
Yes, using the route I gave. I assumed that you have multiple modules, and would want to do the same for all your modules. If not, you can always define a specific route: 'admin/news(:any)' => 'news/admin$1',
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
If provider is ok, you can't get that error message. Because that is thrown in the Opauth class in the Auth package, just after it has been determined. The Auth_Opauth class is a facade for the Opauth composer package, which takes care of the …
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
You can also try to replace line 129 with $provider = explode('/', substr(implode('/', \Request::main()->uri->get_segments()), strlen($config['path']) - 1)); and see if that fixes it?
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
If no table is given, it will read the Auth config file to check what you have configured, and from that it will determine the table name to use. There was a bug in this mechanism in 1.6.1., so be sure to upgrade Auth to 1.7/develop. The issue may…
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
And you want to move that admin controller to your module? That should not be a problem, a matter of adding the namespace to the controller, and check that all class access is properly namespaced. If you then rename it to Controller_Admin (it doe…
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
Impossible to say without knowing your application architecture.
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
Probably, I've never dived into the rewriting. It's going to be a bit complicated, as you need to rewrite /mediatemple_test/assets/img/something.jpg to /mediatemple_test/public/assets/img/something.jpg, then test if that exists, and if n…
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
An ORM (any ORM) is not suitable for batch operations, period. I already told you that before. There is a lot of magic happening inside an ORM that does not scale well, it's a common downside of ORM's. Doesn't matter which one you tak…
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
I really don't know. You can run it through an xdebug session, and use Dericks tips (http://derickrethans.nl/xdebug-and-tracing-memory-usage.html) to get meaningful data from it?
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
Note that this only deals with index.php though, it doesn't work with public assets.
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
Ok, I have a similar setup for testing Fuel versions. I have a single docroot, and in there folders like "16master", "17develop", etc. And in those folders a complete Fuel install, so I end up with "/17develop/public/index.p…
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
For that I need to know exactly how you installed it. You just installed everything inside the docroot, directly? So you need to use "/public/index.php" now? Or is everything in a folder inside the docroot (so you get "/folder/public…
Comment by
WanWizard
July 2013
permalink
Select MAX(value) in ORM
No, at the moment it is not, and it's not possible to implement it without quite a rewrite. Why not use: $max = History::max(); instead? Or $max = History::query()->limit(100)->max();
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
It looks like you have a very odd non-standard installation, and/or there is something very wrong with your rewrite commands. "public" should NEVER be part of the URI. If no path is given, it gets the main request URI, it gets the number …
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Checked on of the apps I'm working on. You should have 'verify_multiple_logins' set to false, unless your using multiple auth drivers. As per the docs, this setting has nothing to do with user logins. My opauth.php config file conta…
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
If your local install is fully inside the document root, I assume you have deployed a custom htaccess in your document root to get rid of the /public in your URL's? If so, it's save to rename "public" to "html", and ch…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
p.s. the example code comes from one of our running apps, so I'm very confident it works... ;)
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
There are complete examples in the docs (http://fuelphp.com/docs/packages/auth/examples/opauth.html). All you need to do is to add the required strategies to the composer.json file in the Fuel root, and create the config file in app/config, contain…
Comment by
WanWizard
July 2013
permalink
Changing the name of the public folder
The FuelPHP architecture is designed so that no files are accessible from the browser, except your assets. This is where the /public folder in the distribution comes in, as you need a mount point for your webservers DocumentRoot. If you don't …
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
I use the Opauth that's integrated in the Auth package, and have no issues. So I can't help you in this case, it seams to be something specific to that package you use.
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
Only way to find is to start profiling in detail.
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
No, there isn't, but it's quite simple to add something to your model to clear the cache: public static function clear_cache() { $class = get_called_class(); static::$_cached_objects[$class] = array(); } will delete all cached ob…
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
ORM caches all retrieved objects, so it's not really suitable for batch operations. Use a standard DB query instead.
Comment by
WanWizard
July 2013
permalink
Can someone show a working sample of the new REST auth method
Cool. I've already committed it as a fix.
Comment by
WanWizard
July 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,399
Last Active
9:16AM
Roles
Administrator