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
Download file broken on FuelPHP home page?
True. I'll discuss it, see if it warrants a new version number, and if there are other fixes in 1.8/develop that needs to be released.
Comment by
WanWizard
September 2014
permalink
Using lang from database
There is indeed no instruction on how to add language data to the table. That should be added. Anyone up for a pull request?
Comment by
WanWizard
September 2014
permalink
[ERROR] Email
_init() is called by the autoloader on first load, it doesn't matter what triggers the load of the class. If this would be a bug in the Email class, it would be unusable since everyone would have this issue. But that is not the case, so the is…
Comment by
WanWizard
September 2014
permalink
Download file broken on FuelPHP home page?
Sorry, my fault, haven't had time to update it.
Comment by
WanWizard
September 2014
permalink
Writing Files on Task
You'll have to debug it, probably with some is_dir() / file_exists() calls in your task, to see where it goes wrong...
Comment by
WanWizard
August 2014
permalink
Writing Files on Task
This error just says C:\Users\aldri_000\SkyDrive\Program Experiment\websites\event-chart\uploads/2014-08-28\5826265eec43269935ef400cf.jpg does not exist (or you don't have access to it). I'm not very familiar with Windows, how do you exec…
Comment by
WanWizard
August 2014
permalink
Suggestion - Inflector
Please create a feature request for it at https://github.com/fuel/core/issues. Note that new features for v1 code don't have a high priority at the moment, but pull requests are always welcome. If you want to contribute, please pay attention …
Comment by
WanWizard
August 2014
permalink
Illegal mix of collations
You probably have your db config so that it sets utf8 as the charset to be used (which is the default config). This causes a SET NAMES to be executed on connect, and this is incompatible with latin1_swedish_ci.
Comment by
WanWizard
August 2014
permalink
Download file broken on FuelPHP home page?
There is only one zip file, which ones did you extract? That error looks like fuel/core is not installed.
Comment by
WanWizard
August 2014
permalink
Prevent updated_at change on minior change
Yup, that works too. ;-)
Comment by
WanWizard
August 2014
permalink
[ERROR] Email
Never seen the issue before. So it must be something local.
Comment by
WanWizard
August 2014
permalink
[ERROR] Email
You have an error somewhere. I my code, line 65 is $config = \Arr::merge($setup, $config); which suggest your config file is not correct, because $config is an empty array() when you call forge() without arguments, and $setup is created by empty…
Comment by
WanWizard
August 2014
permalink
Views and Namespaces
The official standpoint is that you should not call cross-module, as that creates a tight coupling between the modules, but you should use standard controllers for this purpose, and use HMVC requests to fetch this data. An HMVC request switches cont…
Comment by
WanWizard
August 2014
permalink
Prevent updated_at change on minior change
By overriding the observer class... ;-)
Comment by
WanWizard
August 2014
permalink
error in Mustache
If you had used composer, that would not have been needed. Composer doesn't install in apppath/vendor.
Comment by
WanWizard
August 2014
permalink
Fuel\Core\Database_Exception [ Error ]: SQLSTATE[42S02]: Base table or view not found
If you don't specify the models table name, it will be determined from the model name. And the Fuel rule is that models are singular, table names are plural. Hence "categories" from "Model_Category". If you want to override…
Comment by
WanWizard
August 2014
permalink
Few questions about Fuel Modules
See http://docs.fuelphp.com/general/modules.html#/module_namespace and further. So, other than the required namespace, the structure of a module is identical to the structure of the app folder. So your example is wrong. If you have a module "m…
Comment by
WanWizard
August 2014
permalink
Few questions about Fuel Modules
1 and 2: Every class in a module is in the namespace equal to that module. So Model_Mymodule2 would be accessed as \Mymodule\Model_Mymodule2. So apart from the base namespace, the file/folder structure of a module is identical to app. Which sort o…
Comment by
WanWizard
August 2014
permalink
How to Add validation valid_date
valid_date uses "date_parse_from_format", see http://php.net/manual/en/function.date-parse-from-format.php. This will lead you to http://php.net/manual/en/datetime.createfromformat.php, which will tell you the format string should be &quo…
Comment by
WanWizard
August 2014
permalink
Growing traffic, hitting open files limit
Fuel itself doesn't open that many files, so first port of call would to to check what files are opened, and left open (most files Fuel uses, like cache files, are opened, read, and closed again). On linux you can use "lsof" to check…
Comment by
WanWizard
August 2014
permalink
[1.7.2] Overwriting Routes from Modules
Fuel doesn't fall back to global once the module is detected. So what you want to do is not possible.
Comment by
WanWizard
August 2014
permalink
Module routing
The quickest solution is to use the 404 route for it, basically saying "if you can't find it, go to index/index". Alternatively you can overload the Module class, and either code up an alternative way of loading and processing module…
Comment by
WanWizard
August 2014
permalink
SimpleAuth - multiple logins
What is exactly the problem, because I don't see any reason what that should not work. The simpleauth driver does // return true when login was verified, and either the hash matches or multiple logins are allowed if ($this->user and (\Conf…
Comment by
WanWizard
August 2014
permalink
Fuel + Twig + Asset
Ah, you have the logic in the controller, and you pass that on to the View? I don't know twig, but I assume that it encodes return values of functions if you get the literal string in your output. I don't know twig, I've never used i…
Comment by
WanWizard
August 2014
permalink
Fuel + Twig + Asset
The Fuel Asset class doesn't generate relative links using dots, unless you have configured your base_url in the config as being "../". Also check your asset configuration file, to make sure it correctly points to your asset folder. …
Comment by
WanWizard
August 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,394
Last Active
1:12AM
Roles
Administrator