# |
Oct 3rd 2016, 14:56 |
flangofas |
so in your controller you would do something like this: $this->request->session()->write('Config.language', $language); |
# |
Oct 3rd 2016, 14:55 |
flangofas |
In Cake 3, you can access session object from the request object |
# |
Oct 3rd 2016, 14:49 |
goldsatish |
sir i want like this type for cakephp 3 |
# |
Oct 3rd 2016, 14:49 |
goldsatish |
http://alvarotrigo.com/blog/implementing-multilanguage-in-cakephp-2-x/ |
# |
Oct 3rd 2016, 14:48 |
avi |
Thanks dereuromark! |
# |
Oct 3rd 2016, 14:47 |
goldsatish |
sir can you sent to me any sample code |
# |
Oct 3rd 2016, 14:47 |
dereuromark |
avi: for a project its fine |
# |
Oct 3rd 2016, 14:47 |
goldsatish |
sir there not code for controller and link code.. |
# |
Oct 3rd 2016, 14:46 |
goldsatish |
sir not there... |
# |
Oct 3rd 2016, 14:46 |
flangofas |
just go here: http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html |
# |
Oct 3rd 2016, 14:46 |
goldsatish |
thanks sir.. |
# |
Oct 3rd 2016, 14:46 |
flangofas |
in Cake 3 book, you can find all this |
# |
Oct 3rd 2016, 14:46 |
flangofas |
OK |
# |
Oct 3rd 2016, 14:45 |
goldsatish |
sir if you know can you sent to me all steps.. or any sample code... |
# |
Oct 3rd 2016, 14:45 |
goldsatish |
how can mange session and redirectr .. there not mentioned in cakephp3 document |
# |
Oct 3rd 2016, 14:44 |
goldsatish |
https://amdmaher.wordpress.com/2014/01/07/multilingual-in-cakephp-2-x-step-by-step/ |
# |
Oct 3rd 2016, 14:44 |
goldsatish |
sir i m looking this type |
# |
Oct 3rd 2016, 14:44 |
avi |
So as a generic rule, `phpunit.xml` and `phpcs.xml` should not be committed to the project, i suppose - or does that depend based on the project and members? |
# |
Oct 3rd 2016, 14:44 |
flangofas |
first you need to understand TranslateBehavior from http://book.cakephp.org/3.0/en/orm/behaviors/translate.html |
# |
Oct 3rd 2016, 14:43 |
goldsatish |
yes sir.. |
# |
Oct 3rd 2016, 14:43 |
flangofas |
Hi goldsatish |
# |
Oct 3rd 2016, 14:42 |
goldsatish |
multilingual in CakePHP 3 step-by-step |
# |
Oct 3rd 2016, 14:41 |
flangofas |
:+1: for the commit hook |
# |
Oct 3rd 2016, 14:41 |
goldsatish |
when i change button English to Arabic... all css,image and content change.. |
# |
Oct 3rd 2016, 14:41 |
flangofas |
@admad Nice. :slightly_smiling_face: |
# |
Oct 3rd 2016, 14:40 |
goldsatish |
i want to make websites English and Arabic |
# |
Oct 3rd 2016, 14:40 |
goldsatish |
can you anyone tell to me how can do cakephp multiple language ? |
# |
Oct 3rd 2016, 14:39 |
goldsatish |
hello everyone... |
# |
Oct 3rd 2016, 14:35 |
avi |
Ah! Makes sense. And thanks for the link - thatâ??s helpful! |
# |
Oct 3rd 2016, 14:34 |
admad |
@avi https://github.com/cakephp/cakephp/blob/master/contrib/pre-commit |
# |
Oct 3rd 2016, 14:32 |
admad |
@avi setup a git commit hook |
# |
Oct 3rd 2016, 14:32 |
admad |
writing formatted code should become second nature. You shouldn't have to run phpcbf everytime on your own code |
# |
Oct 3rd 2016, 14:32 |
avi |
@admad I have it configured in my editor, but sometimes before making a commit / submitting a merge request, I would just like to run phpunit and phpcs on the whole project. So seeing if i can get as lazy as possible in executing the most minimal command :P |
# |
Oct 3rd 2016, 14:32 |
maikh |
@neon1024 im there now ;) |
# |
Oct 3rd 2016, 14:31 |
Neon1024 |
Oh right, sorry, assumed you mean like a watcher or something |
# |
Oct 3rd 2016, 14:31 |
admad |
Neon1024: i never said to run it on every keystroke. You can configure it to run on file save |
# |
Oct 3rd 2016, 14:31 |
Neon1024 |
Especially with phpcbf able to auto-fix most errors |
# |
Oct 3rd 2016, 14:31 |
Neon1024 |
admad, Not everyone wants it running on every keystroke though |
# |
Oct 3rd 2016, 14:30 |
admad |
@avi running phpcs should be configured in your editor itself |
# |
Oct 3rd 2016, 14:30 |
Neon1024 |
o |
# |
Oct 3rd 2016, 14:30 |
ndm |
Well, there's german here on slack :slightly_smiling_face: |