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
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
Cannot catch exception
What is the exact Exception being thrown? And are you sure it's not a PHP error (which can't be caught)? Quite a few things have changed since v1.2, so you might want to upgrade to a supported version first.
Comment by
WanWizard
January 2013
permalink
Issues with unit test(Phpunit)
Create an app/config/oil.php config file, and add return array( 'phpunit' => array( 'autoload_path' => 'you-phpunit-autoloader-here', ), ); specifying the location of the PHPunit autoloader. (def…
Comment by
WanWizard
January 2013
permalink
DB::update converting null to zero?
The MySQL driver will convert false to 0, like it will convert 'string' to 0 (if the column is an int).
Comment by
WanWizard
January 2013
permalink
DB::update converting null to zero?
I am not aware that is the case, what exactly does $values contain?
Comment by
WanWizard
January 2013
permalink
Orm Observer (CreatedAt, UpdatedAt) in package model
I think that bug is fixed for 1.5: https://github.com/fuel/oil/commit/8a9aa52592698f6133bf2054e70cb8acafa86e44
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,400
Last Active
8:58PM
Roles
Administrator