# |
Dec 11th 2017, 00:18 |
joopm |
hello there |
# |
Dec 10th 2017, 22:56 |
dereuromark |
I guess it is just the search bot after all which made up all kind of things. |
# |
Dec 10th 2017, 22:51 |
dereuromark |
I always wondered why my logs show so much 404s in a 2.x app. Does anyone else have this bug that if someone requests /index.php directly, that all links have some prefix /page/... ? Thus search engines then try to follow those invalid ones? |
# |
Dec 10th 2017, 22:14 |
dereuromark |
If we introduce a new method here it could even be sth for 3.6. Seems like the easiest way |
# |
Dec 10th 2017, 22:06 |
saeideng |
https://github.com/cakephp/cakephp/issues/11524 |
# |
Dec 10th 2017, 22:05 |
saeideng |
can you give me opened issue related to this ? |
# |
Dec 10th 2017, 21:55 |
dereuromark |
Did anyone keep the old syntax via config and had some good or better experience with it? |
# |
Dec 10th 2017, 21:54 |
dereuromark |
Now you have to duplicate some, since a few use sprintf() and others __() inside code |
# |
Dec 10th 2017, 21:54 |
dereuromark |
Does anyone else think it was a bad idea to move from %s to {0...n} placeholders for i18n? |
# |
Dec 10th 2017, 18:59 |
dereuromark |
basic server 1:1 |
# |
Dec 10th 2017, 18:59 |
dereuromark |
guest: you need to also restart php and apache/nginx etc |
# |
Dec 10th 2017, 18:32 |
bravo-kernel |
Has the .env check in bootstrap been turned of for performance reasons? I found it odd .env did not work directly, overlooked the comment. |
# |
Dec 10th 2017, 18:28 |
Guest24244 |
https://pastebin.com/V1KTa10M |
# |
Dec 10th 2017, 18:26 |
Guest24244 |
required ext intl *] |
# |
Dec 10th 2017, 18:26 |
Guest24244 |
but still composer showing me error like |
# |
Dec 10th 2017, 18:26 |
Guest24244 |
i need your help .. i installed php intl extention and also mb string |
# |
Dec 10th 2017, 18:06 |
Guest24244 |
its centos |
# |
Dec 10th 2017, 18:03 |
saeideng |
`sudo apt-get install all-required-package --package=cakephp-app` |
# |
Dec 10th 2017, 18:00 |
dereuromark |
also curl and sqlite is recommended. |
# |
Dec 10th 2017, 18:00 |
dereuromark |
same thing on ubuntu and co: php7.1-mbstring |
# |
Dec 10th 2017, 17:58 |
admad |
it is |
# |
Dec 10th 2017, 17:57 |
Guest24244 |
also command to install php mbstring .. or its not required ? |
# |
Dec 10th 2017, 17:57 |
Guest24244 |
:d you guys rock |
# |
Dec 10th 2017, 17:56 |
admad |
and if you have a choice switch to debian/ubuntu :slightly_smiling_face: |
# |
Dec 10th 2017, 17:56 |
dereuromark |
Google is your friend. I for example only know debian and linux: `sudo apt-get install php7.1-intl` ;) |
# |
Dec 10th 2017, 17:56 |
admad |
most likely it's: yum install php-intl |
# |
Dec 10th 2017, 17:55 |
Guest24244 |
admad you dont know the command . ? |
# |
Dec 10th 2017, 17:55 |
admad |
*install |
# |
Dec 10th 2017, 17:55 |
admad |
google how to intall php-intl package on centos |
# |
Dec 10th 2017, 17:54 |
Guest24244 |
how to solve it ? |
# |
Dec 10th 2017, 17:54 |
Guest24244 |
but it is showing me php ext intl missing.. |
# |
Dec 10th 2017, 17:54 |
Guest24244 |
i was installing cakephp3 on centos |
# |
Dec 10th 2017, 17:54 |
Guest24244 |
hi |
# |
Dec 10th 2017, 14:55 |
saeideng |
configShallow is good thing :) |
# |
Dec 10th 2017, 14:55 |
saeideng |
by configShallow I able now to use both ``` $this->addBehavior('UploadConfig',['fields'=>['image','img']]); $this->addBehavior('UploadConfig'); ``` |
# |
Dec 10th 2017, 14:50 |
admad |
well earlier you never mentioned you can skip using the `fields` key when adding the behavior |
# |
Dec 10th 2017, 14:49 |
saeideng |
``` public function initialize(array $config) { $configs = []; foreach ($config as $field => $settings) { if (is_int($field)) { $configs[$settings] = []; } else { $configs[$field] = $settings; } } $this->setConfig($configs); } ``` |
# |
Dec 10th 2017, 14:49 |
saeideng |
for example |
# |
Dec 10th 2017, 14:48 |
saeideng |
I know |
# |
Dec 10th 2017, 14:48 |
admad |
my code will give you exact same result |
# |
Dec 10th 2017, 14:48 |
saeideng |
$this->setconfig(['fields'=>['image1']]); |