# |
May 26th 2017, 08:00 |
birdy247 |
Can I load a task and use a different name? |
# |
May 26th 2017, 07:33 |
narendravaghela |
@admad could you please help me to define the structure for my application? |
# |
May 26th 2017, 07:27 |
chris-andre |
Morning! |
# |
May 26th 2017, 06:59 |
kareylo |
Hi there ! |
# |
May 26th 2017, 06:51 |
narendravaghela |
and there will be a reference id to make the relationship |
# |
May 26th 2017, 06:51 |
narendravaghela |
and all those store will be stored in database table e.g. stores |
# |
May 26th 2017, 06:51 |
narendravaghela |
for example, store admin can create multiple stores |
# |
May 26th 2017, 06:50 |
narendravaghela |
and the database is common |
# |
May 26th 2017, 06:47 |
narendravaghela |
kind of saas structure |
# |
May 26th 2017, 06:46 |
narendravaghela |
each store has it’s own data |
# |
May 26th 2017, 06:46 |
narendravaghela |
I mean in the system, there will be many stores |
# |
May 26th 2017, 06:46 |
narendravaghela |
Right, but whatever the store admin will do, I need to add its id as a reference in all the entities |
# |
May 26th 2017, 06:39 |
admad |
why? it's just a matter of different authorization rules |
# |
May 26th 2017, 06:24 |
narendravaghela |
It is about defining the application architecture - Admin panel: It has full access to all the entities and functions - Store Admin Panel: It has full access to all the data associated to that particular store What is the best practice? Should I create 2 different CakePHP applications? |
# |
May 26th 2017, 01:43 |
jeremyharris |
@metoyoko no problem! |
# |
May 26th 2017, 01:41 |
royalty |
has anyone written a couchbase data source? |
# |
May 26th 2017, 01:41 |
royalty |
out of curiosity |
# |
May 26th 2017, 01:41 |
metoyoko |
@jeremyharris thanks for response |
# |
May 26th 2017, 01:40 |
jeremyharris |
@metoyoko perhaps you’re looking for extending views: https://book.cakephp.org/3.0/en/views.html#extending-views> or, elements: <https://book.cakephp.org/3.0/en/views.html#elements |
# |
May 26th 2017, 01:39 |
metoyoko |
hi all, using cakephp 3.4 how to reference additional/another ctp inside default.ctp? because I want to extend my hidden modal. thanks |
# |
May 25th 2017, 23:40 |
hiromi2424 |
medel_: not underscore but hyphen |
# |
May 25th 2017, 23:31 |
jeremyharris |
bye! |
# |
May 25th 2017, 23:30 |
obinoob |
you |
# |
May 25th 2017, 23:30 |
obinoob |
;) see your latter |
# |
May 25th 2017, 23:30 |
jeremyharris |
No problem, I'm happy to help! |
# |
May 25th 2017, 23:29 |
jeremyharris |
Yowza |
# |
May 25th 2017, 23:27 |
obinoob |
need to switch device now bed time and it's about 40ºC |
# |
May 25th 2017, 23:26 |
obinoob |
slackebot: jeremyharris you're a nice fellow :) thank you for your patience |
# |
May 25th 2017, 23:26 |
obinoob |
I will and the fact that I can't create an unique instance and pass my params drives me a bit crazy I'm self learning person so always looking to find proper answers only rest when I get my answer :) |
# |
May 25th 2017, 23:25 |
jeremyharris |
If you need it in the controller, make a getter that just caches the var on first call |
# |
May 25th 2017, 23:24 |
jeremyharris |
You don't need out anywhere else, so it's fine :) |
# |
May 25th 2017, 23:24 |
obinoob |
slackebot: yes I was doing that but that felt wrong |
# |
May 25th 2017, 23:24 |
jeremyharris |
On the trait |
# |
May 25th 2017, 23:23 |
jeremyharris |
Make it when you need it |
# |
May 25th 2017, 23:17 |
obinoob |
slackebot: not an easy task to me lol |
# |
May 25th 2017, 23:15 |
obinoob |
slackebot: where should I create UserData instance? |
# |
May 25th 2017, 23:12 |
obinoob |
slackebot: 2) remove AppRules constructor |
# |
May 25th 2017, 23:12 |
obinoob |
slackebot: 1) replace Controller constructor by public function initialize() { parent::initialize(); } |
# |
May 25th 2017, 23:10 |
jeremyharris |
Then make it a component :P |
# |
May 25th 2017, 23:10 |
jeremyharris |
So use initialize instead :) removing the constructor override will help. Then remove the trait constructor and just call a method that sets up the user instead. Problems solved |
# |
May 25th 2017, 23:08 |
obinoob |
slackebot: I'm afraid so |