# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
$referrals = $this->Referrals->find('threaded', ['contain' => 'Users'])->where(['user_id' => $user_obj->referral_id]); |
# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
@hmic so this is what im doing |
# |
Feb 3rd 2018, 23:51 |
popperz0r |
ok thanks! :slightly_smiling_face: |
# |
Feb 3rd 2018, 23:50 |
hmic |
seems like its legit and just add that functionality for windows users |
# |
Feb 3rd 2018, 23:50 |
hmic |
so you might understand |
# |
Feb 3rd 2018, 23:50 |
hmic |
read whats in the github repo |
# |
Feb 3rd 2018, 23:50 |
hmic |
remove the package from your composer.json |
# |
Feb 3rd 2018, 23:49 |
popperz0r |
is it safe to remove i assum? |
# |
Feb 3rd 2018, 23:49 |
hmic |
i actually dont know what it is at all, but this would explain it |
# |
Feb 3rd 2018, 23:49 |
hmic |
it is to provide some functionality to windows users that is available without helper on unix like oses |
# |
Feb 3rd 2018, 23:48 |
hmic |
still, what i say |
# |
Feb 3rd 2018, 23:48 |
popperz0r |
even my server |
# |
Feb 3rd 2018, 23:48 |
popperz0r |
im ubuntu :S |
# |
Feb 3rd 2018, 23:48 |
hmic |
dont know. could be just a helper for functionality windows does not provide, while other (unix like) OS do |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
looks like a keylogger? |
# |
Feb 3rd 2018, 23:47 |
hmic |
check the cakephp composer.json on what it requires |
# |
Feb 3rd 2018, 23:47 |
hmic |
i dont |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
i think it was with cake update |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
:S |
# |
Feb 3rd 2018, 23:28 |
hmic |
you obviously installed that package |
# |
Feb 3rd 2018, 23:27 |
hmic |
https://github.com/Seldaek/cli-prompt |
# |
Feb 3rd 2018, 23:27 |
hmic |
https://packagist.org/packages/seld/cli-prompt |
# |
Feb 3rd 2018, 23:19 |
popperz0r |
i even use linux |
# |
Feb 3rd 2018, 23:18 |
popperz0r |
:S |
# |
Feb 3rd 2018, 23:18 |
popperz0r |
÷S |
# |
Feb 3rd 2018, 23:18 |
popperz0r |
anyone knows from where this file came from? vendor/seld/cli-prompt/res/hiddeninput.exe |
# |
Feb 3rd 2018, 23:03 |
ricksaccous |
basically i have a leadEntity that I want to be able to plop anywhere since the website will have a new lead form in the footer throughout |
# |
Feb 3rd 2018, 23:03 |
ahmed_bodi |
threaded seems to work. Although it isnt exactly what im looking for |
# |
Feb 3rd 2018, 23:03 |
hmic |
ricksaccous: i don't quite see the usecase, but beforeRender() will be just before your templates get rendered |
# |
Feb 3rd 2018, 23:02 |
ricksaccous |
to set it* |
# |
Feb 3rd 2018, 23:02 |
ricksaccous |
what's the best place in your appController so you could always access it in the template |
# |
Feb 3rd 2018, 23:02 |
ricksaccous |
let's say you want access to an entity throughout your app, and this would always be a newEntity |
# |
Feb 3rd 2018, 22:52 |
ahmed_bodi |
ok let me try that. I'd have preferred to do the one query on the user obj and load this associated data if possible |
# |
Feb 3rd 2018, 22:52 |
ahmed_bodi |
ok let me try that. I'd have preferred to do the one query on the user obj and load this associated data if possibl |
# |
Feb 3rd 2018, 22:52 |
hmic |
you are using get(), not find(), you need to use find('tree') i suppose |
# |
Feb 3rd 2018, 22:52 |
ahmed_bodi |
i think so too |
# |
Feb 3rd 2018, 22:51 |
hmic |
but i guess your issue is, you are not quering correctly |
# |
Feb 3rd 2018, 22:51 |
ahmed_bodi |
lft and rght are all populated |
# |
Feb 3rd 2018, 22:51 |
hmic |
if you do something stupid/wrong, you need to repair |
# |
Feb 3rd 2018, 22:51 |
hmic |
if you upgrade your table that only has parent_id fields populated, you need to repair |
# |
Feb 3rd 2018, 22:50 |
hmic |
if you are working with it correctly, you dont. |