# |
Jul 13th 2017, 09:14 |
savant |
welp |
# |
Jul 13th 2017, 09:14 |
chris-andre |
@savant oh no, not yet |
# |
Jul 13th 2017, 09:13 |
savant |
@chris-andre did you get a blog? |
# |
Jul 13th 2017, 09:12 |
kareylo |
So, I got a great idea to put mine first |
# |
Jul 13th 2017, 09:12 |
savant |
highly recommend for public slack :slightly_smiling_face: |
# |
Jul 13th 2017, 09:12 |
savant |
it lets everyone know where I am located |
# |
Jul 13th 2017, 09:11 |
kareylo |
@savant You put your country flag ? Tsss :P |
# |
Jul 13th 2017, 08:34 |
hmic |
not worth the hassle on application code for me too - makes sense in behaviors and plugins, sure. |
# |
Jul 13th 2017, 08:34 |
hmic |
spritz: the second one is still wrong, your would want to use the primaryKey instead of the static "id" |
# |
Jul 13th 2017, 08:29 |
saeideng |
thanks |
# |
Jul 13th 2017, 08:29 |
lorenzo |
the second way I use when I need to build complex nested conditions |
# |
Jul 13th 2017, 08:28 |
lorenzo |
@spriz I also use the first version more often |
# |
Jul 13th 2017, 08:28 |
savant |
https://getcomposer.org/doc/04-schema.md#extra |
# |
Jul 13th 2017, 08:28 |
savant |
yes |
# |
Jul 13th 2017, 08:28 |
saeideng |
you add extra value on composer.json? |
# |
Jul 13th 2017, 08:26 |
saeideng |
probably I can detect by commit date |
# |
Jul 13th 2017, 08:25 |
saeideng |
I have git for my program |
# |
Jul 13th 2017, 08:25 |
saeideng |
:+1: |
# |
Jul 13th 2017, 08:25 |
savant |
and then if I want to update, I just look at the diff on github and apply those changes |
# |
Jul 13th 2017, 08:24 |
savant |
and set it to whatever I got the app version at |
# |
Jul 13th 2017, 08:24 |
savant |
`extra.cakephp.app_version` |
# |
Jul 13th 2017, 08:24 |
savant |
something like |
# |
Jul 13th 2017, 08:24 |
savant |
I typically just add a value in my application |
# |
Jul 13th 2017, 08:24 |
saeideng |
but i worry about other files |
# |
Jul 13th 2017, 08:23 |
saeideng |
I know I should update bootstrap/middleware/index.php |
# |
Jul 13th 2017, 08:23 |
saeideng |
but |
# |
Jul 13th 2017, 08:23 |
saeideng |
nut I want update that |
# |
Jul 13th 2017, 08:22 |
savant |
we dont set a version in composer.json |
# |
Jul 13th 2017, 08:22 |
saeideng |
i want compare by latest version |
# |
Jul 13th 2017, 08:22 |
saeideng |
how I can to detect cakephp/app version on my exist programs? |
# |
Jul 13th 2017, 08:21 |
saeideng |
hi |
# |
Jul 13th 2017, 08:16 |
marcusgoede |
i do that because i need a place where the bake shell can find the value with the translate function __(‘value’) and put it into the pot file. is there a better way with just one file to maintain? |
# |
Jul 13th 2017, 08:10 |
hmic |
savants one is faster, this is more readable and flxible, i usually prefer using sprintf for string formatting |
# |
Jul 13th 2017, 08:10 |
jarard01 |
hmic thanks - yes I just tried that and I'm going to use that approach |
# |
Jul 13th 2017, 08:09 |
hmic |
jarard01, you could use printf number formatting too like sprintf('%010d', $int); |
# |
Jul 13th 2017, 08:08 |
jarard01 |
thanks savant that worked |
# |
Jul 13th 2017, 08:08 |
hmic |
marcusgoede: why translate on loading the file? - you will not need all of them in every case for sure. so thats quite a bit of wasted resources. just translate them when you output them - this is how it's usually done and best practise anyways! |
# |
Jul 13th 2017, 08:08 |
jarard01 |
hi neon1025 o/ |
# |
Jul 13th 2017, 08:06 |
neon1024 |
Morning everyone |
# |
Jul 13th 2017, 07:58 |
savant |
http://php.net/manual/en/function.str-pad.php |
# |
Jul 13th 2017, 07:58 |
jarard01 |
so 1 would be come 00000001 |