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
Handlebars: How to handle partial views?
For Mustache you need to configure the "partials_loader" option in the config with the path(s) you want to pass, you don't need to modify code or set your own partial loader. For Handlebars I've pushed an fix to return the file c…
Comment by
WanWizard
January 2018
permalink
HMVC between different app
Modules and Packages allow you to share code, but as I understood, the question was about accessing data?
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
Thanks. ;-) Fixed as well: https://github.com/fuel/parser/commit/142cb4c171798b49c82ae2d4a474f7e606c1c8ee
Comment by
WanWizard
January 2018
permalink
HMVC between different app
Assuming app_1 is under public_1 and app_2 under public_2, you can't. They are seperate apps, they don't share the same application environment. If you want to interact between two apps, you need to create an API, and use Request_Curl() to…
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
Arggghh... Stupid me. It sucks when you can't test your code... https://github.com/fuel/parser/commit/952385ec6446dcfe39394928f705ab67346864bc
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
Ok, got it. https://github.com/fuel/parser/commit/71450b27a0787bd76b77581bf4b405af260e1480
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
First version comitted. I've decided to use zordius/lightncandy instead of xamin/handlebars.php, which is much faster, so you need to modify your composer.json accordingly. I'm on the road, so didn't have a chance to test it. Let me k…
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
Yes, I'll have a look at it.
Comment by
WanWizard
January 2018
permalink
To create database at the beginning of development
php oil console\DBUtil::create_database(); for example? I don't see how that can be done automatically, given the wide variety of scenario's.
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
If you want to do that, you need the Parser package to implement support for Handlebars, which at the moment it hasn't (you not only need the config definition, you also need the driver class). If you're willing to test and provide feedbac…
Comment by
WanWizard
January 2018
permalink
Parser package - share views between Javascript and PHP
If you also need it in your production site, I would use "require" and not "require-dev". Otherwise that should do it. The composer.json is in the root of your local fuel installation.
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
You're welcome. Please keep the bugreports commin' ;-).
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
I really don't have my day today: https://github.com/fuel/parser/commit/3bd46e283daa7622ac8a7996e754ed28d900375f
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
Wot? It doesn't seem to add the "php" extension for default views anymore for some reason. Not sure why I didn't get that error.
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
Should be fixed again. Thanks for reporting it, and sorry for the inconvenience.
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
There is something seriously wrong in the parser. I'm still busy with it.
Comment by
WanWizard
January 2018
permalink
Mustache parser extension not recognized
I'll have a look first thing tomorrow.
Comment by
WanWizard
January 2018
permalink
fuelphp 1.9-dev: imagemagick not working on PHP 7.1.8
Odd that it works in 5.4. line 31 contains: md5(time() * microtime()) which is weird to say the least, as microtime() returns a string with two numeric values. It must be because of silent conversion in PHP < 7. Fixed: https://github.com/fuel/cor…
Comment by
WanWizard
January 2018
permalink
Orm Observers and cascade_delete = true
Normally, the children are deleted before the parents, if has to do it that way if you have added foreign key constraints to the database, which would also throw an database integrity error. So if you do $parent->delete() it should delete the chi…
Comment by
WanWizard
January 2018
permalink
Orm Observers and cascade_delete = true
What do you mean by nested? Observers cascade as well, so if you have parent->child->grandchild, and the grandchild has an observer and all relations have cascade_delete, the grandchild observer will be called when you delete the parent (which…
Comment by
WanWizard
January 2018
permalink
Orm delete behavior
Ok, clear. But at least you don't need the $attachment->delete() there anymore, so you save on quite a few queries. You could add an observer to the attachment model, that acts on delete, and deletes the file before the record is deleted. T…
Comment by
WanWizard
January 2018
permalink
Orm delete behavior
No loop is needed, conversation->delete() should automatically delete all attachments when cascade_delete is set to true. No clue why it would want to insert an attachment record. It might be related to the fact that the loaded Conversation obje…
Comment by
WanWizard
January 2018
permalink
Can tasks be executed from the command line without oil
oil is a separate entry point, it contains the same startup code as index.php. Please explain to me what you think the difference will be between oil r mytask and php tasks/mytask.php Both have to do exactly the same thing, you are just making it…
Comment by
WanWizard
January 2018
permalink
Orm delete behavior
How are your relations defined? it should be: conversation has_many attachment, attachment belongs_to conversation. And yu don't have to delete the attachments manually, if you define the relation as cascade_delete true, the ORM will handle tha…
Comment by
WanWizard
January 2018
permalink
Session update failed, session record recovered using previous id
Your config is bog-standard, so that can't be it. What Fuel version is your app on? The session classes have been refactored about 6 months ago, so if you are on 1.8.0, switching to 1.9/dev could fix your problem. It is stable, it will become 1…
Comment by
WanWizard
January 2018
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,366
Last Active
April 29
Roles
Administrator