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
php oil refine install Error
That is not a new install, at least not from our site. We don't include that timezone by default. ;)
Comment by
WanWizard
April 2014
permalink
php oil refine install Error
As the message says, you haven't specified a timezone in your php.ini file, which is required for modern PHP versions. To avoid date calculations from going horribly wrong, Fuel requires that you either set it there, or in your application con…
Comment by
WanWizard
April 2014
permalink
Validation valid_date example
Correct, the regex behind it splits on the square brackets, making the double quotes part of the match string.
Comment by
WanWizard
April 2014
permalink
TLS support for smtp
It's probably best to create a ticket for this at https://github.com/fuel/email/issues, with a short description of the problem and a link to this thread, so Frank can look at it.
Comment by
WanWizard
April 2014
permalink
Loading lang file within a module.
Cool, glad you have it sorted.
Comment by
WanWizard
April 2014
permalink
Loading lang file within a module.
Fuel works with what we call request context. If the request loads an app controller, your in the app context, if the request loads a module controller, your in the module context, of that specific module. Only if you are in a module context, you …
Comment by
WanWizard
April 2014
permalink
TLS support for smtp
Is that similar to what Google uses? SMTP + TLS on port 465?
Comment by
WanWizard
April 2014
permalink
Calculated fields with Observer
No need to aplogise, everyone has his own style. ;) I made the statement with a smiley... I didn't say you did anything wrong, I just clarified how observers work. You can have a look in the typing observer, it uses the orm_notifier method in…
Comment by
WanWizard
April 2014
permalink
Calculated fields with Observer
Your coding standard make me shiver, but to each their own... ;) It doesn't really matter how you do it, either with a direct method like you do, or using a notifier. Note that per model class, only one observer instance is created, which is …
Comment by
WanWizard
April 2014
permalink
OSX Oil Fix (XAMPP)
I fixed it some time ago using an alias, mapping 'phpcli' to 'php -c /path/to/my/php.ini'. Now I can do phpcli oil .... and have no problem...
Comment by
WanWizard
April 2014
permalink
OSX Oil Fix (XAMPP)
The main problem on OSX is that the php sapi module is configured to use a different php.ini file than php-cli, causing all kinds of issues on the commandline, including missing socket files and missing php modules (so for example you don't hav…
Comment by
WanWizard
April 2014
permalink
FuelPHP 1.x Composer Setup
Thanks. In the beginning we worked with a single branch, end tagging was needed, later it was decided to create separate branches for each version. I don't really have a problem with this. 1.7.1 is a maintenance release on 1.7, 1.7.2 is a mai…
Comment by
WanWizard
April 2014
permalink
FuelPHP 1.x Composer Setup
Great. I'm planning on releasing 1.7.2 soon, so we can include it then. It also means changing installation instructions, and the oil shell script (from get.fuelphp.com) because that uses submodules too...
Comment by
WanWizard
April 2014
permalink
FuelPHP 1.x Composer Setup
Is this only the introduction of the json, and removal of the submodules? If so, do you mind sending it in as PR on 1.8/develop? Getting rid of the submodules is a long standing task on my list.
Comment by
WanWizard
April 2014
permalink
Understanding EAV
What do you mean by "property"? In EAV, data is stored as a key-value pair, so in the above example, you get two records in your EAV table, one with key="firstname", value="John", and one with key="lastname" …
Comment by
WanWizard
April 2014
permalink
Volcano: Open Source Billing System
For billing purposes, yes, I found that. But I was more thinking about the entire ordering and invoicing process, from a product point of view. So an API to create an order, add order lines, generate an invoice from it (with all sorts of pricing a…
Comment by
WanWizard
April 2014
permalink
Module route with subfolder
Yes, not a problem. That file should contain: namespace Blog; class Controller_Backend_Post { public function action_index() { } } Is that so?
Comment by
WanWizard
April 2014
permalink
Volcano: Open Source Billing System
This is VERY cool! And it looks the part too! Any plans on expanding into area's like invoicing, so it can also be used as a finance backend, email invoices out, follow up on payments, etc?
Comment by
WanWizard
April 2014
permalink
Use of cascade_save into $_belongs_to
Easier would be to always save the parent. That will trigger any observer on that parent, which could loop over the children and add totals and other stuff), and it will by default cascase_save all children. We have a similar setup in our finance m…
Comment by
WanWizard
April 2014
permalink
Eager loading
If you specify the relation on the query, either in the find() array, or using ->related(), it will eager load the related objects. There is currently no option to include a relation in the result by default, and not easy to fix since the ORM Qu…
Comment by
WanWizard
April 2014
permalink
Use of cascade_save into $_belongs_to
'cascade_save' works downwards (parent -> child), not upwards in the relation chain. So saving Model_Panier would also save all Model_Panier_Contenu records, but not the other way around. And it is on by default, so no need to set it …
Comment by
WanWizard
April 2014
permalink
Observers
I am clueless. This is what our base model defines in it's _init method: static::$_observers['Orm\\Observer_CreatedAt'] = array('events' => array('before_insert'),'property' => 'created_at…
Comment by
WanWizard
April 2014
permalink
Session trap to log user offline
Very difficult to do, because the session is live until it is either destroyed or expired. A destroy you should be able to capture, but an expiration is impossible to capture with certain backends. Some, like Memcached or Redis just auto expire the…
Comment by
WanWizard
April 2014
permalink
Validation active_field
https://github.com/fuel/orm/commit/f8792d730d86f17845a45a4d34e4fa79c582f24f Thanks for testing!
Comment by
WanWizard
April 2014
permalink
Observers
That is indeed the idea behind it, and it works fine here. Defined like this, your model must define columns called 'created_at' and 'updated_at', which must be created as "unsigned int" to store a unix timestamp. Not…
Comment by
WanWizard
April 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,368
Last Active
4:16PM
Roles
Administrator