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
What do you think is the best way to implement multi site management?
For a simple parser, have a look at Lex (http://github.com/pyrocms/lex), it's light-weight, simple, but very powerful. If it's a high-volume site, I would look for a solution with more performance. For such I site, I have implemented a m…
Comment by
WanWizard
January 2013
permalink
Auth user keeps being logged out automatically
Check the session cookie process. Clear all your domain cookies, then request a page, and use something like http-headers or firebug to monitor the request. Did you receive the cookie? That is the expiry timestamp on it. Does your browser report th…
Comment by
WanWizard
January 2013
permalink
pagination routes problem 1.5.1 Bug/Error
Your route looks fine, so I don't think that is the case. Is there another route that captures this URI first?
Comment by
WanWizard
January 2013
permalink
Auth user keeps being logged out automatically
FF and Chrome don't use changing UA's, so I doubt that is going to be a solution. When you have session issue, the first thing to do is to check times: is the server timezone correct? Is the timezone in php.ini equal to the timezone? Is t…
Comment by
WanWizard
January 2013
permalink
pagination routes problem 1.5.1 Bug/Error
What trouble? What doesn't work, what happens, what do you want to happen? First issue I see is that you render the pagination in the controller. This will produce HTML, which you have to pass to the view using set_safe(), otherwise it will be…
Comment by
WanWizard
January 2013
permalink
Question about routes. How to retrieve parameter from the url ?
If there is no second segment, FuelPHP will default to 'index'. But if there is a second segment, there is no way of knowing if that is the method name, or the first parameter of index.
Comment by
WanWizard
January 2013
permalink
Question about routes. How to retrieve parameter from the url ?
Any additional parameters are passed to the method, so that should work just fine. Are you sure you don't have a routing issue, because that route doesn't route to 'action_index', it routes to $1. If you want to route to index, …
Comment by
WanWizard
January 2013
permalink
How to change language dynamically by user?
You only set it at runtime, it is not written to the config file. And you don't want that, because it's runtime data, and potentionally different for every user using your application. While the code in your config is system wide, and fo…
Comment by
WanWizard
January 2013
permalink
Overwrite default class in Package?
Core classes are loaded from the global namespace, and aliased by the autoloader from \Fuel\Core to the global namespace. So if you want your class to replace the core class, it has to be present in the global namespace. That means that if you add…
Comment by
WanWizard
January 2013
permalink
How to change language dynamically by user?
\Config::set('language', $myspeciallanguage);
Comment by
WanWizard
January 2013
permalink
How to issue multiple CSRF token at (almost) the same time?
That is correct, there is no support for multiple tokens for concurrent use at the moment.
Comment by
WanWizard
January 2013
permalink
How to change language dynamically by user?
You can also use a separate cookie, so that the language 'sticks' when the user logs out.
Comment by
WanWizard
January 2013
permalink
Uri Class problem
No problem, happy coding!
Comment by
WanWizard
January 2013
permalink
Uri Class problem
The URI class creates the current URI based on your installation. In a standard FuelPHP setup you have the following structure: /fuel /fuel/app /fuel/core /public And in your webserver configuration, you should have a DocumentRoot that should poin…
Comment by
WanWizard
January 2013
permalink
Uri Class problem
In the standard build all code is outside the docroot. Not really to introduce security (almost all files are classes, and not executable code), but something that can't be accessed, can't be hacked or misused. So it's more of a preca…
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
Your guess is correct. So if you have multiple frontends using the same session store, the crypt configuration must be identical. If you use Auth for authentication, the same is true for the auth config file (which contains the salt used to hash the…
Comment by
WanWizard
January 2013
permalink
Configuration for a default read/write database connection in Models
The quickest way is upgrade to 1.6/develop. Which already has this functionality, both for ORM and Model_Crud.
Comment by
WanWizard
January 2013
permalink
Login system error after upgrade to 1.5.1
No, it doesn't matter where they are. I just listed the default locations. Just make sure the webserver has write access to these locations.
Comment by
WanWizard
January 2013
permalink
Uri Class problem
If you install FuelPHP inside the document root, instead of having the docroot point to the public folder, you have to make some changes. There are several solutions, documented here: http://fuelphp.com/docs/installation/instructions.html#/install_…
Comment by
WanWizard
January 2013
permalink
Login system error after upgrade to 1.5.1
You haven't set the required file rights properly. The cache folder isn't writable. FuelPHP requires the following paths to be writeable: - the cache folder (default app/cache) - the logs folder (default app/logs) - the config folder (def…
Comment by
WanWizard
January 2013
permalink
Using DB::expr with ORM related queries
At th moment there isn't. Can you create a feature request for it at http://github.com/fuel/orm/issues, with your use case, so it can be picked up?
Comment by
WanWizard
January 2013
permalink
Using oil to generate admin-panel problem
If you have not configured anything, Fuel will use cookie based sessions, which do not require any server side storage. Make sure you are on the current 1.5.1. If you're not using a git clone, download https://github.com/fuel/core/archive/1.5/…
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
Not that I'm aware of. For cookie based sessions, nothing has changed. All session data is still in the cookie, nothing is stored on the server, data is send back and forth as usual. For the other session types, the control data that used to …
Comment by
WanWizard
January 2013
permalink
After 1.5 upgrade from 1.3, Auth login persistence seems to have disappeared
For some reason the repo disappeared from Github, so it could not be installed if you use the oil method or cloned the repo. This problem was fixed a few hours after release of 1.5.
Comment by
WanWizard
January 2013
permalink
Using oil to generate admin-panel problem
There is a similar discussion here: http://fuelphp.com/forums/discussion/11729, perhaps that can give some pointers? Also, are you sure your session is created? If you haven't configured any session data, FuelPHP will default to cookie based s…
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
12:11PM
Roles
Administrator