# |
Jul 10th 2017, 08:29 |
neon1024 |
Can you give some examples why? It’s worked well for us for a long while |
# |
Jul 10th 2017, 08:28 |
admad |
doing plugin development inside /vendor is a bad idea. |
# |
Jul 10th 2017, 08:28 |
admad |
plugin |
# |
Jul 10th 2017, 08:28 |
neon1024 |
Which repo though @admad the project repo, or the plugin repo? |
# |
Jul 10th 2017, 08:26 |
admad |
@maymeow use separate copy of repo for plugin development |
# |
Jul 10th 2017, 08:04 |
cjquinn |
I feel like all the gotchas are covered here - https://book.cakephp.org/3.0/en/controllers/middleware.html#adding-the-new-http-stack-to-an-existing-application |
# |
Jul 10th 2017, 07:56 |
birdy247 |
Are there any gotchas I need to look out for |
# |
Jul 10th 2017, 07:56 |
birdy247 |
I was going to turn on middle ware |
# |
Jul 10th 2017, 07:56 |
birdy247 |
I have just upgraded from 3.3 to 3.4.x |
# |
Jul 10th 2017, 07:54 |
maymeow |
I have installed git server + CI + Packagist for private repos. After commit to server CI commit changes to Github for public repos. |
# |
Jul 10th 2017, 07:52 |
neon1024 |
We use a private internal Packagist server for our private packages |
# |
Jul 10th 2017, 07:52 |
neon1024 |
If you are developing plugins which are not using Composer, they should be in `/plugins` |
# |
Jul 10th 2017, 07:51 |
neon1024 |
https://getcomposer.org/doc/03-cli.md#update |
# |
Jul 10th 2017, 07:51 |
neon1024 |
Then when you’re done, just update the `composer.json` to the tag you need and update |
# |
Jul 10th 2017, 07:51 |
neon1024 |
Then we can work in the plugin inside `/vendor` and push changes and tags back up directly from the vendor folder |
# |
Jul 10th 2017, 07:50 |
neon1024 |
We use `composer update --prefer-source` to force a git repo in the vendor folder |
# |
Jul 10th 2017, 07:50 |
neon1024 |
So you’re interesting in the workflow of developing plugins using Composer? |
# |
Jul 10th 2017, 07:49 |
maymeow |
or is there way to split repository into subrepositories? for example after tests and then commit changes? |
# |
Jul 10th 2017, 07:46 |
maymeow |
if you download plugin with composer its ignored in vendor forlder |
# |
Jul 10th 2017, 07:46 |
maymeow |
yes but you developing project with more plugins? If you made change into plugin how can you push it to his own repository? |
# |
Jul 10th 2017, 07:45 |
neon1024 |
Not me, we moved away from sub-modules to using Composer about 3 years ago |
# |
Jul 10th 2017, 07:44 |
maymeow |
Hi anyone of u using git submodules for larger project? |
# |
Jul 10th 2017, 07:20 |
voycey |
please see https://book.cakephp.org/2.0/en/core-utility-libraries/app.html#loading-classes |
# |
Jul 10th 2017, 07:20 |
voycey |
but in Cake 2 it is App::uses |
# |
Jul 10th 2017, 07:20 |
voycey |
You can just simply use include |
# |
Jul 10th 2017, 06:42 |
cakephp143 |
I have to use it in a plugin |
# |
Jul 10th 2017, 06:41 |
cakephp143 |
I create a lib and/or a Component, but I cant use it |
# |
Jul 10th 2017, 06:41 |
cakephp143 |
in cake 2 how to include some utilities in my controllers? |
# |
Jul 10th 2017, 06:40 |
cakephp143 |
hi all |
# |
Jul 10th 2017, 00:57 |
flashios09 |
@thomasnucleus np |
# |
Jul 10th 2017, 00:57 |
thomasnucleus |
Thanks so much |
# |
Jul 10th 2017, 00:57 |
thomasnucleus |
jeez |
# |
Jul 10th 2017, 00:57 |
thomasnucleus |
I just realised I changed the default app_form templates ages ago |
# |
Jul 10th 2017, 00:57 |
thomasnucleus |
o MY |
# |
Jul 10th 2017, 00:56 |
flashios09 |
``` ``` |
# |
Jul 10th 2017, 00:51 |
flashios09 |
this `?= $this->Form->control('expiry_date', ['type' => 'datetime']); ?` will be converted to this: |
# |
Jul 10th 2017, 00:50 |
flashios09 |
@thomasnucleus it works for me |
# |
Jul 10th 2017, 00:43 |
flashios09 |
one min i will take a look at the doc |
# |
Jul 10th 2017, 00:43 |
flashios09 |
@thomasnucleus i haven’t used postgres before but i’m sure that you can have a date time field using the form helper |
# |
Jul 10th 2017, 00:40 |
thomasnucleus |
My input: ?= $this->Form->control('expiry_date', ['type' => 'datetime']); ? |
# |
Jul 10th 2017, 00:40 |
thomasnucleus |
I'm trying to set a form input to a 'timestamp' type, however it just displays a text input. I tried 'datetime' as well but that doesn't give me the hour and minute inputs. My field type in my postgres database is timestamp without timezone. How come the 'timestamp' and 'datetime' types aren't working? |