# |
Jul 1st 2019, 05:06 |
ra7bi |
seems the answer is `WWW_ROOT./dir` |
# |
Jul 1st 2019, 05:03 |
ra7bi |
i tried webroot object but it seems not working |
# |
Jul 1st 2019, 05:03 |
ra7bi |
i need to know how i can include the file stored in webroot of my project in to my plugin source file . |
# |
Jul 1st 2019, 05:02 |
conehead |
@ra7bi can't you create a symlink from that file to your webroot folder? |
# |
Jul 1st 2019, 05:01 |
ra7bi |
:confounded: i want to include ttf font from my plugin file |
# |
Jul 1st 2019, 04:59 |
conehead |
@chrisshick Have you taken a look at Deployer? https://deployer.org/ I am currently testing it (for dev/stage so far) and I am quite happy with the results. Even comes with cakephp support |
# |
Jul 1st 2019, 04:56 |
niel45 |
@ra7bi, should be possible, not sure it is wise though. path would be something like ../../../../../filename |
# |
Jul 1st 2019, 04:53 |
ra7bi |
how would be the path looks like |
# |
Jul 1st 2019, 04:53 |
ra7bi |
is it possible to access a file stored in `root/webroot` from `vendor/pluginName/src/file.php ` ? |
# |
Jul 1st 2019, 04:53 |
niel45 |
what version of Cake? I don't recognise your heirarchy. |
# |
Jul 1st 2019, 04:35 |
slackebot |
<hollistergraham123> |
# |
Jul 1st 2019, 04:33 |
hollistergraham123 |
They are both spelled correctly |
# |
Jul 1st 2019, 04:33 |
hollistergraham123 |
I did. |
# |
Jul 1st 2019, 04:31 |
niel45 |
make sure they what they're supposed to be |
# |
Jul 1st 2019, 04:30 |
niel45 |
@hollistergraham123, looks like you have differences in spelling/case. DepositLogs vs. Depositlog |
# |
Jul 1st 2019, 04:28 |
hollistergraham123 |
I think this might be a bug. But not sure if it’s Cakephp or Composer Autoload |
# |
Jul 1st 2019, 04:28 |
hollistergraham123 |
Welp after looking at the includes. It’s including it as DepositlogControlelr and DepositlogTable.php |
# |
Jul 1st 2019, 04:25 |
hollistergraham123 |
i did nothing but the bake commands then went to the index page and for some reason it won’t work. |
# |
Jul 1st 2019, 04:24 |
hollistergraham123 |
Is DepositLogs a restrict name somehow? I keep getting Undefined property: DepositLogsController::$DepositLogs in /var/www/localhost/htdocs/src/Controller/Api/DepositlogsController.php on line 25 [CORE/src/Controller/Controller.php, line 388] |
# |
Jul 1st 2019, 04:05 |
ra7bi |
with my new custom TCPDFEngine.php which i placed in `src/Pdf/Engine/TCPdfEngine.php` |
# |
Jul 1st 2019, 04:04 |
ra7bi |
@ndm i followed your suggestion in ``https://cakesf.slack.com/archives/C053DPNGT/p1561889872215700`` but i dont know how i can replaced the original call of `TCPDFEngine.php` |
# |
Jun 30th 2019, 19:54 |
mdotobie |
In regards to the Hash utilities, what is difference in use cases for the `{n}`, `{s}` or `{*}` – I’m not sure why I would use anything other than just `{*}` |
# |
Jun 30th 2019, 17:35 |
yamcomnet |
not my favorite :) |
# |
Jun 30th 2019, 17:35 |
yamcomnet |
ended up using ZipArchive() |
# |
Jun 30th 2019, 17:35 |
yamcomnet |
basically i was looking support to zip folder recursively |
# |
Jun 30th 2019, 17:34 |
st.steinkuehler |
Policies are always needed with this plugin |
# |
Jun 30th 2019, 17:33 |
st.steinkuehler |
@ndm Thanks, I figured it out by now. This small paragraph has helped https://book.cakephp.org/authorization/1.1/en/component.html#automatic-authorization-checks and also this answer https://stackoverflow.com/a/53494211 |
# |
Jun 30th 2019, 17:27 |
ndm |
@st.steinkuehler I'm not yet overly familiar with the plugin, but as far as I understand, all permissions are resolved by policies. For controllers and actions, the resource could be the current request object I guess. Check for example the request authorization middleware docs: https://book.cakephp.org/authorization/1.1/en/request-authorization-middleware.html |
# |
Jun 30th 2019, 17:26 |
ndm |
Slacks user select box is really annoying, it should close itself after pressing TAB, which effectively selects the user :( |
# |
Jun 30th 2019, 17:23 |
ndm |
@thomas078 Maybe... maybe not... you'd have to explain what exactly your concern is. |
# |
Jun 30th 2019, 17:00 |
yamcomnet |
working with cakephp Folder/File utilities. Any best practice to .zip folder? |
# |
Jun 30th 2019, 16:52 |
martin |
hmm trying to make the oauth 2 server plugin working in cakephp 3.7 is to much work. I wanted to simple use a plugin to make oauth2 on an api project, Nobody uses oauth2 anymore in cake? |
# |
Jun 30th 2019, 15:24 |
martin |
oh now it works :) |
# |
Jun 30th 2019, 15:19 |
martin |
I hate errors like that |
# |
Jun 30th 2019, 15:18 |
martin |
hmm now I have an "An Internal Server Error Occurred" |
# |
Jun 30th 2019, 15:13 |
martin |
Maybe I just need to remove the companyname from the namespace? :S |
# |
Jun 30th 2019, 15:11 |
martin |
but I don't see namespace? |
# |
Jun 30th 2019, 15:11 |
martin |
```| pluginname._controller:index | /Pluginname/:controller | {"action":"index","plugin":"pluginname"} ``` |
# |
Jun 30th 2019, 15:09 |
admad |
use the routes shell to see the routes connected |
# |
Jun 30th 2019, 15:07 |
martin |
IT says I need to create file, and set the namepace to Pluginname/ |
# |
Jun 30th 2019, 15:06 |
martin |
also dumped the autoload |