# |
Mar 1st 2018, 17:32 |
birdy247 |
vue.js |
# |
Mar 1st 2018, 17:32 |
birdy247 |
I then add this to the select list |
# |
Mar 1st 2018, 17:31 |
birdy247 |
if the option isnt there, I pop a modal and the use can add a new one |
# |
Mar 1st 2018, 17:31 |
hakuna |
when I run a phpinfo () I see the extensions enabled |
# |
Mar 1st 2018, 17:31 |
birdy247 |
I have a form on the front end which provides a select list |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
So, can I 'use \phpseclib\Net\SSH2' ? |
# |
Mar 1st 2018, 17:31 |
savant |
@birdy247 what are you trying to do exactly? |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
$ssh = new \phpseclib\Net\SSH2() |
# |
Mar 1st 2018, 17:31 |
birdy247 |
WOuld I have to hook into the afterSave or similar? |
# |
Mar 1st 2018, 17:31 |
savant |
@bmcwhirter :slightly_smiling_face: |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
@savant Nevermind - documentation was old. Found what I needed in the actual class |
# |
Mar 1st 2018, 17:30 |
birdy247 |
Is there a way to return the whole entity when its saved rather than just the ID? |
# |
Mar 1st 2018, 17:30 |
savant |
@bmcwhirter can you link me to that example? |
# |
Mar 1st 2018, 17:30 |
birdy247 |
Am using Crud Api |
# |
Mar 1st 2018, 17:30 |
obinoob |
err: play = plain |
# |
Mar 1st 2018, 17:30 |
obinoob |
hakuna: what you mean by extensions appear can you see the file extensions and play php code |
# |
Mar 1st 2018, 17:29 |
savant |
@bmcwhirter is that a class from the phpseclib? |
# |
Mar 1st 2018, 17:29 |
hakuna |
yes, user/group match |
# |
Mar 1st 2018, 17:29 |
bmcwhirter |
@savant yessir |
# |
Mar 1st 2018, 17:28 |
savant |
@bmcwhirter this is cake3? |
# |
Mar 1st 2018, 17:28 |
obinoob |
server must have permissions to write on logs and tmp |
# |
Mar 1st 2018, 17:28 |
obinoob |
check ls -lsa user/group match ?!? |
# |
Mar 1st 2018, 17:27 |
hakuna |
i set the permissions to logs and tmp folders |
# |
Mar 1st 2018, 17:27 |
hakuna |
and the extensions appear |
# |
Mar 1st 2018, 17:26 |
obinoob |
at first hand sounds like permissions issue |
# |
Mar 1st 2018, 17:26 |
hakuna |
yes, the php.info is running |
# |
Mar 1st 2018, 17:26 |
obinoob |
and or check apache (supposing you're using it) logs |
# |
Mar 1st 2018, 17:26 |
bmcwhirter |
@savant The library is called phpseclib. I tried 'use phpseclib' and also 'use phpseclib\phpseclib' but am getting 'Class 'App\Shell\Net_SSH2' not found'. Example said to use "$ssh = new Net_SSH2(<ip>);" |
# |
Mar 1st 2018, 17:26 |
hakuna |
mod_php is enabled |
# |
Mar 1st 2018, 17:26 |
obinoob |
check if you php install is working at all |
# |
Mar 1st 2018, 17:25 |
hakuna |
the logs appear empty |
# |
Mar 1st 2018, 17:23 |
savant |
hakuna: if you are using apache, make sure you enable mod_php |
# |
Mar 1st 2018, 17:22 |
obinoob |
hakuna: or tail -f logs/debug.log ? |
# |
Mar 1st 2018, 17:22 |
savant |
@bmcwhirter its just the namespace+class name |
# |
Mar 1st 2018, 17:22 |
obinoob |
hakuna: what does it say tail -f logs/error.log ? |
# |
Mar 1st 2018, 17:22 |
bmcwhirter |
Relative to what? |
# |
Mar 1st 2018, 17:22 |
savant |
use \Path\To\cLASS; |
# |
Mar 1st 2018, 17:21 |
savant |
@bmcwhirter yeah |
# |
Mar 1st 2018, 17:21 |
hakuna |
What can this be? |
# |
Mar 1st 2018, 17:21 |
hakuna |
i have a problem rendering cakephp, the ext intl, mbstring, and simplexml are enabled but te browser is showing the php code of the app.php file |
# |
Mar 1st 2018, 17:21 |
bmcwhirter |
But I assume I need to put something in a use line, though, wouldn't I? |