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
one routing used to multiple module
As long as you define your routes globally, it's not a problem. From an SEO point of view, my suggestion will not have any impact. I've just pulled the language detection bit out of all your controllers, and centralized it. if in the Inp…
Comment by
WanWizard
January 2014
permalink
Page not refreshing when coming from another page.
What is [object Object], and why is that logged as part of the URL? That link works fine here btw, and redirects to the login page.
Comment by
WanWizard
January 2014
permalink
Page not refreshing when coming from another page.
hmm... sounds like you have a challenge on your hands... You say "/new/liste" and "/news/liste/" produce different results? If so, then it's definitely something outside the applications control, as Fuel strips the trailing…
Comment by
WanWizard
January 2014
permalink
Page not refreshing when coming from another page.
Do you have the same behaviour in different browsers? And on different PC's?
Comment by
WanWizard
January 2014
permalink
Page not refreshing when coming from another page.
And no caching proxy in the path (local or from your ISP). Or maybe the production webserver has very agressive caching headers, so the browser caches stuff it shouldn't? Even a browser cache should not show an old page on a redirect, redirect…
Comment by
WanWizard
January 2014
permalink
one routing used to multiple module
You can't. Currently, module routes are only loaded when the module is loaded, which is not going to happen if the URI doesn't start with '/news/'... Most multi-laguage solutions strip the language code from the URI before it i…
Comment by
WanWizard
January 2014
permalink
Possible conditional error in Security Class
The multiple tabs issue, and ajax calls, can be dealt with with the javascript function for which the Security class has the generator methods. They will update the form field with the contents of the cookie when you submit the form, making sure it…
Comment by
WanWizard
January 2014
permalink
Page not refreshing when coming from another page.
On localhost? Sounds like you have a caching issue somewhere. It is not supposed to do this, and flash messages should expire on next request, so they can not be kept and suddenly pop up.
Comment by
WanWizard
January 2014
permalink
Coding standard
In general, we will keep the current coding standards, but for Fuel v2 some things are going to change: - full support for PSR-0 and PSR-1 ( and not for PSR-2 ! ) - full support for composer, composer is used for the framework components too - PSR-4…
Comment by
WanWizard
January 2014
permalink
how to do virtual hosting to remove public from the url
See http://docs.fuelphp.com/installation/instructions.html#/install_inside_root In general, you need the public folder as the target for your webservers document root. This is the default setup of FuelPHP, and designed to keep your code outside the…
Comment by
WanWizard
January 2014
permalink
Rest Authentication does not work under default CGI configurations - Solution within
So it has to become this? ... # make HTTP Basic Authentication work on php5-cgi installs RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Send request via in…
Comment by
WanWizard
January 2014
permalink
Multiple fuelphp app instances and single login
Depends on what you mean by central. When you mentioned separate servers, I assumed them to be not secure and together. If you have secure LAN access between all servers, I would absolutely go for a shared database server. We don't do anything…
Comment by
WanWizard
January 2014
permalink
Possible conditional error in Security Class
I wonder if that config description is correct. If I check the code, then there is no mechanism anywhere that allows for unchanged tokens for the duration of the session, as check_token() ALWAYS rotates the token after a succesful match. I think i…
Comment by
WanWizard
January 2014
permalink
Multiple fuelphp app instances and single login
The biggest problem with local databases is keeping everything in sync. Not only the login_hash, but every change to any of the auth tables. If you have sorted that our, a session cookie on your main domain should do the trick, yes. I personally t…
Comment by
WanWizard
January 2014
permalink
Multiple fuelphp app instances and single login
If you set your session cookie domain to ".domain.tld", it should be shared between all subdomains. This will only work if app applications share the same database, at least for the Auth tables. A copy won't work, as it will check th…
Comment by
WanWizard
January 2014
permalink
pre_save and pre_validate
Hmm... If it works for you. I'm not really a fan of overloading methods, if it's not really needed. It would be more logical to have a custom validation rule (instead of "Required"), that would fill in the field from the session…
Comment by
WanWizard
January 2014
permalink
pre_save and pre_validate
Thanks. Since this is about ensuring a (correct) property value, the most logical place to do this is when validating your input. Which is why I asked how you validate.
Comment by
WanWizard
January 2014
permalink
pre_save and pre_validate
Correct. The ORM works with observers, which is more event driven. You can not have the observer methods in your model, any observer needs to extend \Orm\Observer, it needs the methods from the base class in order to do it's job. You say &quo…
Comment by
WanWizard
January 2014
permalink
pre_save and pre_validate
What kind of model is this? i.e. what is Model_BaseModel ?
Comment by
WanWizard
January 2014
permalink
Boostrap3 pagination template
:-) In general, when you want to add or change something in the framework, make sure you're using the latest develop branch (1.8/develop at the moment), because chances are it is already addressed.
Comment by
WanWizard
January 2014
permalink
Boostrap3 pagination template
I hate to say it, but that is already present in the current codebase...
Comment by
WanWizard
January 2014
permalink
OrmAuth Mysql error
What do you mean by "I should update Auth"?
Comment by
WanWizard
January 2014
permalink
How to Dynamically Set table name in the Model fuelphp
You never use self (unless in very specific cases), you use static. Having said that, a before() method is something controllers only have. That doesn't work for other classes. For static data, you can do: public static function _init() { …
Comment by
WanWizard
January 2014
permalink
run SUM function in DB
I would say: $result = \DB::select(\DB::expr("SUM(start_time - stop_time)"), 'job') ->from('timesheets') ->group_by('job') ->execute();
Comment by
WanWizard
January 2014
permalink
Auth Group & Roles
Yes. User -> Roles is a many-to-many relation. The best thing you can do is to go through the code for the different Auth models, so you'll know which relations are available, and of which type they are.
Comment by
WanWizard
January 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,371
Last Active
May 14
Roles
Administrator