# |
Jul 9th 2018, 19:45 |
joopm |
just to publist to github |
# |
Jul 9th 2018, 19:44 |
joopm |
i used to develop application in localhost,so the issue is not by developing cakephp applications |
# |
Jul 9th 2018, 19:43 |
mikesmoniker |
joopm, You don’t edit the CakePHP source code. You use the framework to build your app, utilizing it’s various extension points and configuration to change default behavior if you need. It might be most easily understood by _doing_, though. If you have time, consider setting aside whatever you’re working on and doing the tutorial from the Cake docs start-to-finish to get a better idea of the workflow. |
# |
Jul 9th 2018, 19:39 |
joopm |
at github |
# |
Jul 9th 2018, 19:39 |
joopm |
so how is possible to make a difference between framework sourcecode and your own source code? |
# |
Jul 9th 2018, 19:02 |
jhob |
I had seen that but helpers can only be called from views and this in the controller, or am I missing something? |
# |
Jul 9th 2018, 18:50 |
slackebot4 |
that you don't push cakephp-files or other vendor code to your repository. While you finnish your work, you make commits which are pushed to master (or any branch). There your code is, powered by cakephp and other vendor codes. |
# |
Jul 9th 2018, 18:50 |
chris-andre |
Have you worked with cakephp before? And I also think it is quite common; cakephp and other thirdparty code exists in the vendor folder. Your own code will be in src/ folder. When installing cakephp, you will have a composer.json file and a .gitignore file which tells composer what plugins/codes that is require to run your app. Cakephp will be one of them. Because of .gitignore, you will not even push vendor-folder to you repo, meaning |
# |
Jul 9th 2018, 18:35 |
joopm |
but if i've just visit branch master page there is no difference than original and my own codes |
# |
Jul 9th 2018, 18:33 |
joopm |
i know that there are commits |
# |
Jul 9th 2018, 18:33 |
joopm |
and how do you arrenge that your own code will distingue than original cakephp soure codes? |
# |
Jul 9th 2018, 18:32 |
joopm |
thank you for your answer |
# |
Jul 9th 2018, 18:32 |
joopm |
hello chris-andre |
# |
Jul 9th 2018, 18:32 |
chris-andre |
@joopm I create a new cakephp project with composer, then I initialize git, creates a new empty repo (without readme.md aswell) on github and pushes the new project to the new github repo. |
# |
Jul 9th 2018, 18:26 |
joopm |
or first make a repository on github? |
# |
Jul 9th 2018, 18:25 |
joopm |
do you make first the cakephp project with composer and than import it to the github? |
# |
Jul 9th 2018, 18:25 |
joopm |
may i ask you how do you use cakephp with github? |
# |
Jul 9th 2018, 18:25 |
joopm |
hello all |
# |
Jul 9th 2018, 16:39 |
steinkel |
https://github.com/CakeDC/users/blob/master/src/View/Helper/AuthLinkHelper.php#L61 |
# |
Jul 9th 2018, 16:38 |
steinkel |
there is a new helper AuthLinkHelper |
# |
Jul 9th 2018, 16:27 |
jhob |
In cakedc/users just upgraded 4.2.1 to 7.0.2 and ```$this->Auth->isAuthorized() ``` no longer works in controller. What should be called instead? Have tried and can't work it out. |
# |
Jul 9th 2018, 15:13 |
lorenzo |
thanks |
# |
Jul 9th 2018, 15:11 |
josbeir |
:) |
# |
Jul 9th 2018, 15:11 |
josbeir |
maybe i will |
# |
Jul 9th 2018, 15:10 |
lorenzo |
if you want to add it, I can merge it :slightly_smiling_face: |
# |
Jul 9th 2018, 15:03 |
josbeir |
but a warning would be nice because it directly it adds a record for that snapshot in the phinxlog table + overwrites the lock file |
# |
Jul 9th 2018, 15:02 |
josbeir |
my bad of course |
# |
Jul 9th 2018, 15:02 |
josbeir |
yep, by mistake |
# |
Jul 9th 2018, 15:02 |
lorenzo |
right? |
# |
Jul 9th 2018, 15:02 |
lorenzo |
the issue is using snapshot instead of diff |
# |
Jul 9th 2018, 15:01 |
lorenzo |
i see |
# |
Jul 9th 2018, 15:01 |
josbeir |
its possible that i'm not grasping all functionality tho :P |
# |
Jul 9th 2018, 15:00 |
josbeir |
well. if you go back it will drop all your tables :P |
# |
Jul 9th 2018, 15:00 |
josbeir |
lock file gets overwritten so no way to go back |
# |
Jul 9th 2018, 14:59 |
josbeir |
snapshot includes dropTable stuff in the down() method |
# |
Jul 9th 2018, 14:59 |
josbeir |
you already are using schemas, picture you are doing some schema changes, then you generate a snapshot instead of a diff |
# |
Jul 9th 2018, 14:57 |
lorenzo |
how? |
# |
Jul 9th 2018, 14:56 |
josbeir |
it can screw you over bigtime |
# |
Jul 9th 2018, 14:56 |
josbeir |
snapshot generation should throw a warning/confirmation tbh |
# |
Jul 9th 2018, 14:56 |
lorenzo |
nice! |
# |
Jul 9th 2018, 14:56 |
josbeir |
git reverted the lock to a previous state and generated a diff, all good now |