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
8248
Activity
Speeding up cascading file system
I am not aware such a tool exists. But if you think this is such an issue: I run all my apps of a centrally installed fuel installation (so core and packages are not part of the application install), and I use a ramdisk for that (a few Mb will do).
Comment by
WanWizard
January 2013
permalink
Passing variables to a ViewModel
Why would you want to "misuse" a viewmodel for this purpose? Why not create a standard class for it?
Comment by
WanWizard
January 2013
permalink
Cannot catch exception
Best port of call would be the changelogs: https://github.com/fuel/core/wiki Pay particular attention to the sections about deprecated or removed code, and changes impacting backward compatibility. And I would go to 1.5, since that was released th…
Comment by
WanWizard
January 2013
permalink
Module Routes
No, then it will indeed not work, because routes are not processed recursively. Which in your case will be solved by a second Request, which will process the routes again. It just comes across as quite heavy, basically doubling the amount of reque…
Comment by
WanWizard
January 2013
permalink
Module Routes
I think you can achieve the same using '(:any)' => 'frontend/$1'
Comment by
WanWizard
January 2013
permalink
Module Routes
Module routes are only loaded when the module is active. This means that all routes in a module must start with the name of the module.
Comment by
WanWizard
January 2013
permalink
1.5 Install
It is correct that the app config is empty by default. When config files are loaded, all the versions found are merged. The core (fuel/core/config) has all config files, containing the default values. So you no longer have to have complete config fi…
Comment by
WanWizard
January 2013
permalink
How to use Asset Class to call remote CSS file
The same way you would use a local css file. It will recognize the URI when rendering.
Comment by
WanWizard
January 2013
permalink
Fuel directory not accessible after install
What if you request index.php explicitly, so you bypass any rewrite rules? There doesn't seem to be anything wrong with your setup...
Comment by
WanWizard
January 2013
permalink
How to extend oil in the right way?
How did you extend it? The migration is generated a bit further down, by calling static::migration(). The code above that, where it adds the created_at etc, also adds the fields to $args, which later is passed to migration() to generate the migrat…
Comment by
WanWizard
January 2013
permalink
How to extend oil in the right way?
In oi/classes/generate.php, starting line 263 (on 1.5/develop), which is this line: if (\Cli::option('crud')) {
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
Is is possible to zip your entire docroot (so including assets and fuel core), and post it somewhere (you can let me know via PM (inbox in the menu) if you don't want it public). Then I can see if I can reproduce it here, and if so, if I can f…
Comment by
WanWizard
January 2013
permalink
How to extend oil in the right way?
Due to the way oil works, the classes are not easy to extend (they are not aliased like the core classes). A possible workaround is to copy the classes you want to change to another location (for example app/classes/oil), and then in the oil bootst…
Comment by
WanWizard
January 2013
permalink
proper way to generate a WHERE IN query
Activate the profiler, and check what SQL is generated. I assume it won't be an issue.
Comment by
WanWizard
January 2013
permalink
renaming fields, using DISTINCT and MAX ... other functions in ORM
You can't. The ORM is not a query builder. Use DB queries instead.
Comment by
WanWizard
January 2013
permalink
Uncaught exception with message date() - unsafe to rely on systems timezone
Just a sec, I just noticed you wrote MAMP. MAMP is notorious for it's crappy setup. It is most likely that your CLI version of PHP uses is different version of php.ini then your webserver does. I already found it weird, since that error messa…
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
As to your earlier remark: queries are directly reported to the profiler from the DB connection drivers, where the DB originated is not relevant.
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
Tried a 1.4 installation too. Same result. Tried using both the PDO and the MySQLi drivers. Same result.
Comment by
WanWizard
January 2013
permalink
Php quick profiler bug?
Just did exactly that on 1.5/develop, works without problems, query shows up in the profiler.
Comment by
WanWizard
January 2013
permalink
Issues with unit test(Phpunit)
Can't help you with that, I haven't written any tests for controllers yet. Maybe someone else?
Comment by
WanWizard
January 2013
permalink
Uncaught exception with message date() - unsafe to rely on systems timezone
You also have to configure your (= the same as your server and php.ini) timezone in app/config/config.php.
Comment by
WanWizard
January 2013
permalink
Elegant way of using language class with a HTML tag
No, not directly, other than to put the HTML in the language string (which imho is not really a solution).
Comment by
WanWizard
January 2013
permalink
Model with images
The proper way would be you have an acticle_images table, which has a one-to-many relation with article, and would store the image information. If you use the ORM you can fetch all the information in one go: Model_Article::find_by_name('john&…
Comment by
WanWizard
January 2013
permalink
Elegant way of using language class with a HTML tag
Lang supports named parameters on both the Lang::get() method and the __() helper. 'learn_more' => 'To get started, learn more about :product', And use: echo __('product.learn_more'), array('product' =&g…
Comment by
WanWizard
January 2013
permalink
Update/Save, Delete Confusion
The most common cause of this error is either incorrect defined relations (you don't get it on the model itself, but on a related model) or a relation in which you use the PK as FK (for example on a has_one) which is not supported.
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,481
Last Active
3:38AM
Roles
Administrator