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
Is there a way to debug execution times of SQL queries?
Enable the profiler? You have to enable it globally in your config.php, and then for every specific DB driver in your db.php. See the docs.
Comment by
WanWizard
October 2011
permalink
Parser Package with Caching - Cache
How is smarty configured? Smarty has a development mode, in which it checks the timestamp of the source file (the view) to see if the template needs to be recompiled. If in production mode, it only compiles the template once, after that is doesn…
Comment by
WanWizard
October 2011
permalink
Caching results in high memory usage
Is is possible to collect a few days in the two cache files, and then zip them and email them to me, so I have live data to test with and see if I can come up with something clever? You can reach me at wanwizard fuelphp com.
Comment by
WanWizard
October 2011
permalink
Understanding Auth:: what is login_hash used for?
1. That's why I said: only if you need a different method of checking. Which obviously you do. 2. If someone is able to capture the email, they can hijack the account as they would have both the link with the token and the email address. So yo…
Comment by
WanWizard
May 2011
permalink
Caching results in high memory usage
Possible. But we need you to check to be sure. And about what kind of load are we talking (in terms of unique visitors / day?). If caching results is pointless, it might be a good idea just to remove it, or at least have a config value to disable i…
Comment by
WanWizard
October 2011
permalink
Understanding Auth:: what is login_hash used for?
1. Only of you use a different method of checking. 2. I usually send out an email with a reset link and a random token in the link. That link asks for the username (which is not mentioned in the email) and the new password. After the reset the user…
Comment by
WanWizard
May 2011
permalink
not getting query strings from URL
Got it. Are you doing any form of rewriting? Possibly to "index.php?", so that the redirected URL looks like [url=http://sitename/index.php?/test?q=hola]http://sitename/index.php?/test?q=hola[/url] ? That would explain why your $_SERVER d…
Comment by
WanWizard
October 2011
permalink
Base Uri
The idea of using public as your document root is that now all your code and other files are no longer accessable by the browser. In case of a hack, it makes it a lot more difficult to exploit.
Comment by
WanWizard
October 2011
permalink
not getting query strings from URL
Looks like some cgi implementation. Always good for some fun. Can you do me a favor, and do echo serialize($_SERVER);die(); in your controller, and email the result to me ( wanwizard fuelphp.com )? Then I can have a look later tonight.
Comment by
WanWizard
October 2011
permalink
Caching results in high memory usage
Has already been corrected in the 1.1/develop branch. Can you dump the cache file after it's been read, to see that's been stored, and report if you see something odd?
Comment by
WanWizard
October 2011
permalink
Base Uri
The base url is composed of what you define in your config.php for "base_url" (which should point to the root of your website) and "index", which determines if index.php is or isn't a part of the url. How you configure this…
Comment by
WanWizard
October 2011
permalink
not getting query strings from URL
Which leads to the question: what is your production environment? And which version of Fuel do you use?
Comment by
WanWizard
October 2011
permalink
Using DB without where() causes error
Are you sure you're getting the error on the execute() itself? You get this error when a non-numeric offset is requested. After the query the result is positioned on _current_row, which is int(0) according to your dump. Otherwise add a debug t…
Comment by
WanWizard
October 2011
permalink
Crumbpath / Breadcrumbs
In your view, the "Home" link has no href, so it links to the current page, not the homepage. And I think you should not hardcode this, some may not want a home link, or don't speak English and use something else than "Home"…
Comment by
WanWizard
October 2011
permalink
Crumbpath / Breadcrumbs
echo \Config::get('base_url'):
Comment by
WanWizard
October 2011
permalink
Caching results in high memory usage
You're probably looking at peak memory. When the Agent class needs to load and parse the browscap file, and you have used the full file, a lot of memory is needed to process it. It is reduced as much as possible, and then written to a cache fi…
Comment by
WanWizard
October 2011
permalink
Question about database connections
You can find the current state of development on github, http://github.com/fuel. Currently we're on 1.1/develop. There you can also find the issues and feature requests, in the issue tracker of the core (or orm/auth/docs) repository. You'…
Comment by
WanWizard
September 2011
permalink
DB Transactions ?
That looks like a bug, it should be public function complete() { if ($this->_db->trans_errors === FALSE) { $this->_db->commit_transaction(); } else { $this->_db->rollback_transaction(); } } Please report this at https…
Comment by
WanWizard
October 2011
permalink
Is render() optional?
That depends on when you want the rendering to take place. If you use render(), the view is rendered immediately. If you don't, the __toString() magic method of the View class will render the view as soon as Fuel wants to output it. Delaying r…
Comment by
WanWizard
October 2011
permalink
Crude CRUD
Fileinfo must be included by default in PHP 5.3+. If you don't have it, the person responsible for your PHP binary has probably used a pre 5.3 compile script, which doesn't contain the correct includes. This happens a lot with hosters tha…
Comment by
WanWizard
August 2011
permalink
Question about session
In general, you should NEVER use the \Fuel\Core namespace, unless you know you have a custom class in your app, and you deliberately want to call the core method instead of an overloaded one. If you start calling core methods directly, and later yo…
Comment by
WanWizard
September 2011
permalink
_belongs_to and _has_many
If the foreign key is 'team_id', you shouldn't use 'team' in your relationship definition. If the key is 'team', you have the problem that the name of the relation is the same as a column name, so $object->team…
Comment by
WanWizard
September 2011
permalink
Crude CRUD
"Welcome to the Wonderful World of Windows"...
Comment by
WanWizard
August 2011
permalink
Question about session
There are no stupid questions, only stupid answers...
Comment by
WanWizard
September 2011
permalink
_belongs_to and _has_many
Relations are always array's, even it there is only one object in them. So try // get the first array element $team = reset($user->team); echo $team->name;
Comment by
WanWizard
September 2011
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
2:02AM
Roles
Administrator