# |
Jul 10th 2018, 07:40 |
sheraliqureshi.mhtech |
how to integrate 3rd party (like any crm service ) in cake php? Error: Class 'Sugar\sugarRestClient' not found File E:\xampp\htdocs\corbanone-corbanportal-6c1576bf1fdb\src\Controller\AppController.php Line: 149 i am facing this error for yesterday |
# |
Jul 10th 2018, 07:40 |
sheraliqureshi.mhtech |
@neon1024 |
# |
Jul 10th 2018, 07:34 |
neon1024 |
Morning all |
# |
Jul 10th 2018, 06:53 |
steinkel |
in a controller, you can use https://github.com/CakeDC/users/blob/master/src/Controller/Component/UsersAuthComponent.php#L152 passing the url in the event |
# |
Jul 10th 2018, 06:36 |
sheraliqureshi.mhtech |
i am facing this error for yesterday |
# |
Jul 10th 2018, 06:35 |
sheraliqureshi.mhtech |
Error: Class 'Sugar\sugarRestClient' not found File E:\xampp\htdocs\corbanone-corbanportal-6c1576bf1fdb\src\Controller\AppController.php Line: 149 |
# |
Jul 10th 2018, 06:35 |
sheraliqureshi.mhtech |
how to integrate 3rd party (like any crm service ) in cake php? |
# |
Jul 10th 2018, 05:08 |
Mutter |
Good morning |
# |
Jul 10th 2018, 01:03 |
graziel |
@waspinator https://book.cakephp.org/3.0/en/core-libraries/time.html#Cake\I18n\Time::i18nFormat |
# |
Jul 10th 2018, 00:30 |
waspinator |
for whatever reason they give different results. `Y` is a year behind |
# |
Jul 10th 2018, 00:29 |
waspinator |
what's the difference between `Y` and `yyyy` when it comes to chronos? |
# |
Jul 9th 2018, 21:23 |
jhob |
resolved that issue now btw, turns out upgrading breaks lots of things! |
# |
Jul 9th 2018, 19:45 |
joopm |
and make a difference with my own source code and the framework codes |
# |
Jul 9th 2018, 19:45 |
mikesmoniker |
And maybe leave Git out of it for now. That might be adding an unnecessary layer of confusion. But when you do incorporate Git, consider either using the `composer create-project` command to set up a proper project structure or grabbing the .gitignore file from the cakephp/app project. |
# |
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 |