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
lots of url in one module
t_history/search/index: - could be: module t_history, controller Controller_Search, action_index - or: controller Controller_T_History, action_search, parameter 'index' - else a 404 (unless you have a route capturing this URL) As to your…
Comment by
WanWizard
May 2013
permalink
Memcached expiration time
Fuel doesn't use the expiration on the set() call (directly), the expiration in the metadata is used. I've just spend another half hour debugging the code, but I can't reproduce it. It would be interesting to know if the memcached-&g…
Comment by
WanWizard
May 2013
permalink
Memcached expiration time
I know that, just quickly re-used an existing test controller that already had that function. I'm lazy by nature ;-). Cache drivers use time(), so local time, not UTC. And local means "in the configured timezone". All cache drivers …
Comment by
WanWizard
May 2013
permalink
I want install an admin panel
You need to copy auth.php to app/config (which is the auth driver config), and then change the driver listed to 'ormauth'. You also have to copy ormauth.php to app/config, and change it if needed. Once you have done that, you can run the …
Comment by
WanWizard
May 2013
permalink
Why Auth::create_user('....', '....', ...); I got Invalid Method error !
It is very clearly noted in the docs, see http://fuelphp.com/docs/packages/auth/intro.html#/configuration It has nothing to do with users logging in multiple times, it's a driver setting. And it should be false unless you have multiple Login d…
Comment by
WanWizard
May 2013
permalink
Base URL and HMVC
In the "frontend", you can use Uri::base() to get the generated base url, either from what you have defined, or by using an auto-detection mechanism. That mechanism doesn't work in anything that runs from the commandline (including t…
Comment by
WanWizard
May 2013
permalink
Headers for controlling browsers cache after Auth::logout()
I never do that. The fact that a back button shows pages from cache is by design. Disabling cache on all pages do prevent users using the back button has an adverse affect on performance, and will cause a reload on using the back-button, which might…
Comment by
WanWizard
May 2013
permalink
I want install an admin panel
can you be more specific, what do you mean "can't access it"?
Comment by
WanWizard
May 2013
permalink
Why Auth::create_user('....', '....', ...); I got Invalid Method error !
Ormauth was introduced in 1.6, so I don't think there's a tutorial on it yet. But it's API is largely compatible with Simpleauth, so methods like create_user() will work the same. Are you use the Auth package is loaded, and the corre…
Comment by
WanWizard
May 2013
permalink
Memcached expiration time
I can not reproduce that here. I used this code to test: function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } \Cache::set('test', 'value', 10); $ti…
Comment by
WanWizard
May 2013
permalink
Oil, Tasks and Environments
Yes. Because when you use a commandline argument, some environment specific things (like for example config) will be already loaded before Oil can check them and change the environment.
Comment by
WanWizard
May 2013
permalink
Confuse on Install
No problem, happy coding! ;-)
Comment by
WanWizard
May 2013
permalink
Upload error
No, this happens because of a bug that was "fixed". You're calling process() twice. With the old, array based code, the second run would just overwrite everything created in the first one. The new code is object based, and will creat…
Comment by
WanWizard
May 2013
permalink
Confuse on Install
I don't know NetBeans, so I can't help you there. What exactly do you need, your question isn't clear to me. As for Composer usage on Windows, did you check http://getcomposer.org/doc/00-intro.md#installation-windows ?
Comment by
WanWizard
May 2013
permalink
Confuse on Install
Then you may have a problem, because 2.0 will be completely composer based. Having said that, nobody is telling you you HAVE to use composer on production systems. None of our production servers have direct (outgoing) internet access for security r…
Comment by
WanWizard
May 2013
permalink
Confuse on Install
If you have download the zip from the website (fuelphp-1.6.zip), it will contain all Fuel packages. You still have to run composer to install the external dependencies.
Comment by
WanWizard
May 2013
permalink
where is OrmAuth config file on W7 with FP 1.5.1?
No, if you run 'refine migrate --all' or 'refine migrate --packages=auth' oil will run those migrations. Before you do, make sure you have configured auth (i.e. copied config/auth.php from the package to your app/config, and con…
Comment by
WanWizard
May 2013
permalink
Two Models, Parent/Child One form save at same time.
With ORM, you can enable transactions by passing true as second parameter of the save() method. If you have defined the relation as 'cacade_save' (which is default), the save of the parent will save the child as well, within the same tran…
Comment by
WanWizard
May 2013
permalink
where is OrmAuth config file on W7 with FP 1.5.1?
This is an error that was fixed in 1.6.
Comment by
WanWizard
May 2013
permalink
Confuse on Install
Don't know, I don't use Windows. There is no zip for 1.7, it's in develop at the moment. If you download the zip from github, you miss all submodule references.
Comment by
WanWizard
May 2013
permalink
1.6 Belongsto save() error
Has been fixed in 1.7/develop. We're expecting to release 1.6.1. soon, which will contain the fix for this.
Comment by
WanWizard
May 2013
permalink
where is OrmAuth config file on W7 with FP 1.5.1?
OrmAuth was introduced in the Auth package in 1.6, so 1.5.1. doesn't have it.
Comment by
WanWizard
May 2013
permalink
Confuse on Install
masters are release versions, develop is the one we're working on.1.6/master is the latest release. If you want to install using git, clone the fuel/fuel repo (which is on 1.6/master by default), have git install the submodules, and run compo…
Comment by
WanWizard
May 2013
permalink
PHPQuickProfiler not starting
FuelPHP comes with the profiler as standard (which is an improved version of PQP), why should you have to install something? Just enable profiling in your config, and off you go...
Comment by
WanWizard
May 2013
permalink
oil crashes on monolog
You don't have to, nobody's stopping you from downloading them once, and just copy the fuel/vendor folder in when you create a new probject. Some people even have them installed centrally, so you don't have to. Just change (or add) V…
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
3:49AM
Roles
Administrator