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
Error by using Response::redirect before Session::set
lokman4844 wrote on Friday 29th of June 2012: i'll send you out the whole apps. btw, I notice it happens if i change the input type to select or radio. Where should I send the code Harro? You can send it to wanwizardfuelphp.com, and explain…
Comment by
WanWizard
June 2012
permalink
Error by using Response::redirect before Session::set
Do you have some code for me to reproduce it? Because I tried and I can't...
Comment by
WanWizard
June 2012
permalink
Adding default properties to ORM Model when using Oil
The code that generates the model is in oil/views/scaffolding/orm/model.php. You can copy that to app/views/scaffolding/orm/model.php and modify it to your liking. Remember, one of FuelPHP's strenghts is that (almost) everything is extendible!
Comment by
WanWizard
June 2012
permalink
Switching database connections
Inside your db.php config file you can create as many definitions as you want, the ones in there are just a default, one for each environment. So create a second entry called 'slave', and define your slave database in there. When running …
Comment by
WanWizard
June 2012
permalink
How to generate templates for Smarty from OIL command line tool?
FuelPHP doesn't provide support for Smarty (or other template engines), and neither does the Oil package. You can enable template engine support by installing the Parser package, and installing your engine of choice. That doesn't mean eve…
Comment by
WanWizard
June 2012
permalink
Class not found in production environment
Dev on Windows, prod on Linux? As per the coding standards, filenames need to be lower case.
Comment by
WanWizard
June 2012
permalink
Full docs?
Anyone can contribute to make the docs better. Currently via a pull request on the repo, soon via our new community application (called "Fuel Depot"), where everyone can modify using simple markdown. You get a Fuel\Core\InvalidPathExcepti…
Comment by
WanWizard
June 2012
permalink
Introducting PDF Package for Fuel.
fueldocsogood wrote on Wednesday 27th of June 2012: And now I get this error: Exception [ Error ]: Call to undefined method Pdf\Pdf:) The entire method is missing in this call...
Comment by
WanWizard
March 2011
permalink
hacked seclib in fuel ?
The changes are there to have PHPSecLib play nice with the autoloader. So I prefer to fix sftp to breaking that. Could you create an issue for this at http://github.com/fuel/core/issues so it can be looked at?
Comment by
WanWizard
May 2011
permalink
Generate migration from models
It is. But if no one in the community is willing to chip in, and only consume, then that's it. Creating and maintaining a full featured ORM is an awful lot of work. I've been maintaining one for another framework for the last couple of ye…
Comment by
WanWizard
February 2012
permalink
Just where and how to use a common class available on other projects
An application model class like app/classes/model/name.php either lives in the global namespace and is called "Model_name", or lives in the "\Model" namespace and is called "name". You either access it using \Model_Nam…
Comment by
WanWizard
June 2012
permalink
Why do the cache methods return void?
Can you create an issue for that on http://github.com/fuel/core/issues, this is not really consistent.
Comment by
WanWizard
June 2012
permalink
Cache::set doesn't completely clear original value ('file' driver)
Found the bug. The cache file driver does a $handle = fopen($file, 'c'); which doesn't truncate the file, that should have been 'w'. I'll commit a fix for 1.2/develop and 1.3/develop. Could you create …
Comment by
WanWizard
June 2012
permalink
Why do the cache methods return void?
In general FuelPHP doesn't use return values to signal state, it uses exceptions. For cache the generic flow is: try { $var = \Cache::get('cache_key'); } catch (\CacheNotFoundException $e) { // determine the var value $va…
Comment by
WanWizard
June 2012
permalink
1.2.1 not support this router?
To be able to use Router::get() you need to defined a named route: 'article/page/:page'=> array('post/post', 'name' => 'article_page'), You can then do // will return "http://yoursite/articl…
Comment by
WanWizard
June 2012
permalink
1.2.1 not support this router?
With named params you don't use $1, unless you make them a regex by placing them in brackets. See http://docs.fuelphp.com/general/routing.html#/advanced
Comment by
WanWizard
June 2012
permalink
Image class and animated gifs
Sorry, no experience in this area. Pop into IRC sometime this week (the weekend is usually quieter), perhaps someone can help you there.
Comment by
WanWizard
June 2012
permalink
Uri Class returns 404 url
From the framework point of view, not finding what was requested is an exception. How this exception is handled is up to the application. There is no specific 404 handling within the framework. By default, the exception is caught in your index.php,…
Comment by
WanWizard
June 2012
permalink
Error by using Response::redirect before Session::set
I'm baffled. I've installed a new 1.2/master environment, created a 'redirect' controller with your code in it, and added 'session' to always load. I can't reproduce your problem, no matter what I do. I also tried…
Comment by
WanWizard
June 2012
permalink
validation problem
The Validation class has a show_errors() method that displays all errors using the template variables found in the config. It does not have the option to request the errors of a single field. If you want this, your best bet is probably extend the V…
Comment by
WanWizard
January 2012
permalink
Session lifetime
By setting the 'expire_on_close' to false, and 'expiration_time' to something (a lot) more than 7200 (which is two hours) in your app/config/session.php.
Comment by
WanWizard
June 2012
permalink
Database session not working
FuelPHP v1.2 as a bug that will cause the session not to be created if it doesn't contain any session variables, which is fixed in 1.2/develop (which will become 1.2.1 in a few days). If you don't want to wait for that you can just pull t…
Comment by
WanWizard
June 2012
permalink
validation problem
$val->error() returns: - false if no errors were detected, or if the requested field is not in error - a Validation_Error object in case the field is in error - an array of Validation_Error objects in case you don't pass a fieldname and …
Comment by
WanWizard
January 2012
permalink
Error by using Response::redirect before Session::set
And you've got the Session class 'always loaded'?
Comment by
WanWizard
June 2012
permalink
Problem with either routing or rewrite on production server
If you only request index.php, it will load the _root_ route, that is true. I think I misread the question. If the URL is correct, perhaps it's a rights issue, and your apache user can't read the index.php? Whether you rewrite or not, a c…
Comment by
WanWizard
June 2012
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,375
Last Active
6:52AM
Roles
Administrator