# |
Nov 27th 2017, 12:35 |
obinoob |
neon1024: meaning? |
# |
Nov 27th 2017, 12:34 |
obinoob |
neon1024: allows optionality by transaction" |
# |
Nov 27th 2017, 12:27 |
neon1024 |
Because not everyone uses MySQL. Because it allows optionality by transaction. Because it’s brought over from Cake 2. To allow for application of timestamping only in certain models |
# |
Nov 27th 2017, 12:26 |
obinoob |
neon1024: why is that extra layer of complexity if mysql can handle timestamp update etc? any guesses? |
# |
Nov 27th 2017, 12:24 |
justcharlz |
@neon1024 don't have access to do shell script. It's on a shared server. |
# |
Nov 27th 2017, 12:24 |
obinoob |
neon1024: existing ;) |
# |
Nov 27th 2017, 12:24 |
neon1024 |
https://github.com/cakephp/cakephp/blob/f0e61d9b665249eef415e9749e8506e82e53fdc7/src/ORM/Behavior/TimestampBehavior.php#L32-L34 |
# |
Nov 27th 2017, 12:22 |
neon1024 |
Probably |
# |
Nov 27th 2017, 12:22 |
obinoob |
neon1024: ok that part is pretty straight forward is there any other option besides 'always' ? |
# |
Nov 27th 2017, 12:22 |
neon1024 |
I mean, hoping that you’re not using something archaic like FTP |
# |
Nov 27th 2017, 12:22 |
neon1024 |
justcharlz, My guess would be that it’s a DebugKit panel perhaps. If not, then perhaps you’ve not done `composer install` on the server |
# |
Nov 27th 2017, 12:21 |
justcharlz |
NOTE: the plugin is a template plugin |
# |
Nov 27th 2017, 12:21 |
neon1024 |
obinoob, You’d told it to, that’s why it’s doing it. |
# |
Nov 27th 2017, 12:18 |
justcharlz |
and I did not leave anything out of the upload |
# |
Nov 27th 2017, 12:18 |
justcharlz |
Hello all. any help will be appreciated. I uploaded cakephp3 application to my server subdomain. After uploading, I was getting error 500. Upon checking the error log, it is saying Error: Fatal Error (256): [Cake\Core\Exception\MissingPluginException Plugin Panel could not be found. |
# |
Nov 27th 2017, 11:28 |
obinoob |
I also do not understadn what is the need of a extra layer of complexity if mysql can handle those: created CURRENT_TIMESTAMP, updated NULL ON UPDATE CURRENT_TIMESTAMP ? |
# |
Nov 27th 2017, 11:27 |
obinoob |
Hi I've noticed that $this->addBehavior('Timestamp', [ 'events' => [ 'Model.beforeSave' => [ 'created' => 'new', 'updated' => 'always', ]]]); will always fill the updated on create... any option to update only after creation? |
# |
Nov 27th 2017, 10:59 |
saeideng |
joopm :middle_finger: |
# |
Nov 27th 2017, 10:58 |
saeideng |
Cake\Http\Cookie |
# |
Nov 27th 2017, 10:52 |
neon1024 |
`./doTheThings.sh` |
# |
Nov 27th 2017, 10:48 |
lilhermit |
`composer create-project cakephp/app NewProject andand cd NewProject andand composer require rudy/plugin` ;) |
# |
Nov 27th 2017, 10:38 |
neon1024 |
https://github.com/cakephp/app/blob/master/composer.json#L39-L41 |
# |
Nov 27th 2017, 10:38 |
rudy1976s |
@neon1024 thank you |
# |
Nov 27th 2017, 10:37 |
neon1024 |
Or if you want it scripted, edit the Composer post install script |
# |
Nov 27th 2017, 10:37 |
neon1024 |
`composer create-project cakephp/app NewProject andand composer require rudy/plugin` |
# |
Nov 27th 2017, 10:36 |
rudy1976s |
@neon1024 yes I know that way but I need to download the skeleton and other plugin in a single operation |
# |
Nov 27th 2017, 10:36 |
neon1024 |
`composer create-project cakephp/app` |
# |
Nov 27th 2017, 10:35 |
rudy1976s |
Hello is there a way to download only the cake 3.5 skeleton via composer? |
# |
Nov 27th 2017, 10:18 |
joopm |
but it does not work |
# |
Nov 27th 2017, 10:17 |
joopm |
i tried use \Cake\Utility\Cookie; |
# |
Nov 27th 2017, 10:17 |
joopm |
how can i include Cookie? |
# |
Nov 27th 2017, 09:50 |
joopm |
yoo neon1024 |
# |
Nov 27th 2017, 09:34 |
saeideng |
globale variable in cake is `Configure::config()` |
# |
Nov 27th 2017, 09:30 |
neon1024 |
Morning everyone |
# |
Nov 27th 2017, 09:29 |
joopm |
and not neceesly to having double time links |
# |
Nov 27th 2017, 09:28 |
joopm |
i thoguht it enough just to set the globale variable to de |
# |
Nov 27th 2017, 09:26 |
saeideng |
in my case I have 2 link for every links `example.com/en/article` and `example.com/de/article` |
# |
Nov 27th 2017, 09:25 |
saeideng |
I no, but you can |
# |
Nov 27th 2017, 09:24 |
saeideng |
set locale in beforeRender |
# |
Nov 27th 2017, 09:24 |
joopm |
do you add it to the AppControll? |
# |
Nov 27th 2017, 09:24 |
saeideng |
yes |