# |
Jul 3rd 2018, 03:24 |
chrisshick |
api_key environment currency |
# |
Jul 3rd 2018, 03:24 |
chrisshick |
Then, there shouldn't be an issue at all to just simply create a settings table with the options you need |
# |
Jul 3rd 2018, 03:22 |
humbba12 |
I'm sorry I mean no. I'm using the api in the controller |
# |
Jul 3rd 2018, 03:21 |
chrisshick |
with all the settings in it |
# |
Jul 3rd 2018, 03:21 |
chrisshick |
you could create a settings table |
# |
Jul 3rd 2018, 03:20 |
chrisshick |
but if you wanted to stick with models |
# |
Jul 3rd 2018, 03:20 |
chrisshick |
I would recommend using events and utilizing it that way |
# |
Jul 3rd 2018, 03:20 |
chrisshick |
Personally, any time you using models within models, it starts to get hairy and creates dependencies |
# |
Jul 3rd 2018, 03:18 |
humbba12 |
yes |
# |
Jul 3rd 2018, 03:17 |
chrisshick |
I'm assuming you are using the payment processor api directly in the model? |
# |
Jul 3rd 2018, 03:17 |
humbba12 |
for example to get the payment proccesor api key to charge the customer in orders model |
# |
Jul 3rd 2018, 03:16 |
chrisshick |
Why would you need it in other models? |
# |
Jul 3rd 2018, 03:02 |
humbba12 |
I'm working in a e-commerce website I need to give the admin the posibility to change payment proccesor api keys, change from sandbox to production, change currency, etc. I got Orders, coupons, users, customers controller and model, etc |
# |
Jul 3rd 2018, 02:35 |
chrisshick |
A few more details would hlep |
# |
Jul 3rd 2018, 02:35 |
chrisshick |
@humbba12 what are you trying to do? |
# |
Jul 2nd 2018, 23:45 |
humbba12 |
what would be the best aproach to handle settings table which I need in other models? |
# |
Jul 2nd 2018, 19:59 |
saeideng |
I did not see first goal |
# |
Jul 2nd 2018, 19:58 |
josbeir |
First jap goal was luck |
# |
Jul 2nd 2018, 19:58 |
josbeir |
Such teamwork |
# |
Jul 2nd 2018, 19:58 |
josbeir |
That was a world goal,no luck involved |
# |
Jul 2nd 2018, 19:57 |
saeideng |
good night lucky goal |
# |
Jul 2nd 2018, 19:57 |
saeideng |
good night BEL |
# |
Jul 2nd 2018, 19:56 |
josbeir |
Evening |
# |
Jul 2nd 2018, 19:56 |
bravo-kernel |
Anyway, thanks for the pointer, gotta go, good evening folks |
# |
Jul 2nd 2018, 19:55 |
itmpls |
that is insane |
# |
Jul 2nd 2018, 19:55 |
josbeir |
Hope they beat Brazil Friday |
# |
Jul 2nd 2018, 19:55 |
bravo-kernel |
I LOVE that mentality, not selfish at all, result focussed |
# |
Jul 2nd 2018, 19:54 |
bravo-kernel |
Idd |
# |
Jul 2nd 2018, 19:54 |
josbeir |
Lukaku is becoming a real legend if he keeps playing like this |
# |
Jul 2nd 2018, 19:54 |
bravo-kernel |
Haha |
# |
Jul 2nd 2018, 19:54 |
itmpls |
insane |
# |
Jul 2nd 2018, 19:54 |
itmpls |
wow |
# |
Jul 2nd 2018, 19:54 |
bravo-kernel |
:clap: closest thing to NL |
# |
Jul 2nd 2018, 19:54 |
saeideng |
ah , I see now |
# |
Jul 2nd 2018, 19:54 |
admad |
3rd goal in last minute of extra time |
# |
Jul 2nd 2018, 19:54 |
josbeir |
Crazy idd |
# |
Jul 2nd 2018, 19:53 |
admad |
@saeideng belgium won 3-2 |
# |
Jul 2nd 2018, 19:53 |
bravo-kernel |
How about Lukaku letting that ball roll ?? |
# |
Jul 2nd 2018, 19:53 |
saeideng |
result ? |
# |
Jul 2nd 2018, 19:53 |
bravo-kernel |
Totally and I must say.. this is what I like about the Belgian team, they actually feel like a real team |
# |
Jul 2nd 2018, 19:52 |
josbeir |
Entertainment |