# |
Jul 17th 2018, 09:34 |
josbeir |
src/Lib/Events |
# |
Jul 17th 2018, 09:34 |
josbeir |
yeah me too |
# |
Jul 17th 2018, 09:33 |
neon1024 |
Sometimes `src/Lib/Listeners` |
# |
Jul 17th 2018, 09:33 |
neon1024 |
@josbeir I tend to actually use`src/Listeners` myself |
# |
Jul 17th 2018, 09:31 |
josbeir |
place model related listeners in src/Model/EventListeners or place them in a global src/EventListeners or ... |
# |
Jul 17th 2018, 09:29 |
josbeir |
any suggestions ? |
# |
Jul 17th 2018, 09:29 |
josbeir |
i'm always struggling in wich folder to place EventListeners |
# |
Jul 17th 2018, 09:26 |
snake-venom |
hi. i have question.. if i will develop a large application in cakephp 3 then if they cakephp 4 released then how much it will tough/ feasible to update from cakephp 3 to cakephp 4 ? |
# |
Jul 17th 2018, 09:19 |
josbeir |
if you start developing in cake 3.6.x then migration would be not that painfull |
# |
Jul 17th 2018, 09:17 |
snake-venom |
hi. i have question.. if i will develop a large application in cakephp 3 then if they cakephp 4 released then how much it will tough/ feasible to update from cakephp 3 to cakephp 4 ? |
# |
Jul 17th 2018, 09:07 |
jraavis |
Hello all, is there any article to learn "How to create a theme/template on cakephp 2" ? |
# |
Jul 17th 2018, 08:51 |
megan |
Hi Rakesh! There is no coupon code for the training but theres only a $2 donation to CakeSF for the Getting started with CakePHP 3 training session - http://training.cakephp.org/ |
# |
Jul 17th 2018, 08:43 |
Rakesh |
need coupon code for cakephp 3 training |
# |
Jul 17th 2018, 08:42 |
Rakesh |
CakePHP 3 any coupon code for cakephp 3 training |
# |
Jul 17th 2018, 08:40 |
josbeir |
needed select2.. |
# |
Jul 17th 2018, 08:40 |
josbeir |
pff @admad i went to the darkside on my new project, i added jquery :,( :,( :,( |
# |
Jul 17th 2018, 08:40 |
Rakesh |
Hi Everyone |
# |
Jul 17th 2018, 08:37 |
josbeir |
i never did the tutorial, mvc pattern is probably also explained over there: -) |
# |
Jul 17th 2018, 08:37 |
mr.mjsm |
ok thank you sir |
# |
Jul 17th 2018, 08:37 |
josbeir |
read up on mvc, then do the tutorial |
# |
Jul 17th 2018, 08:36 |
mr.mjsm |
ok so i read MVC then CMS ? |
# |
Jul 17th 2018, 08:36 |
josbeir |
don't let this talk frighten you tho, i'm sure you will get stuff up and runing in a while :slightly_smiling_face: |
# |
Jul 17th 2018, 08:35 |
admad |
the manual is available is multiple languages, so if translation is available in your native language use that |
# |
Jul 17th 2018, 08:35 |
josbeir |
it will shed a light on most of the things you need to know before you start |
# |
Jul 17th 2018, 08:35 |
josbeir |
maybe first read up on the basics on MVC patterns in development |
# |
Jul 17th 2018, 08:35 |
admad |
you English seems decent enough, don't see why you cannot follow the tutorials :slightly_smiling_face: |
# |
Jul 17th 2018, 08:35 |
mr.mjsm |
ok will do it, hope my answer is there :+1: |
# |
Jul 17th 2018, 08:34 |
admad |
being new to a framework is exactly why you should be doing tutorials first |
# |
Jul 17th 2018, 08:33 |
mr.mjsm |
:,( sorry new to cakephp. i tried to read the tutorial but didn't understand that much. so I just went on coding |
# |
Jul 17th 2018, 08:33 |
admad |
have you done the CMS tutorial from the manual? |
# |
Jul 17th 2018, 08:32 |
admad |
@mr.mjsm "so in the view.ctp file I added this code" NEVER do database calls in view layer |
# |
Jul 17th 2018, 08:32 |
neon1024 |
@mr.mjsm Have you completed the Tutorial? |
# |
Jul 17th 2018, 08:31 |
josbeir |
ever. |
# |
Jul 17th 2018, 08:31 |
josbeir |
@mr.mjsm never put that stuff in your view |
# |
Jul 17th 2018, 08:31 |
madbbb |
thank you for your answers. I will try to use manually unpkg until I have only 3-5 dependencies |
# |
Jul 17th 2018, 08:31 |
slackebot |
variable name used in Email/index.ctp |
# |
Jul 17th 2018, 08:31 |
mr.mjsm |
Question: in the companies template i want to list all the emails associated with a company. so in the view.ctp file I added this code to get a list of the objects: $query = $emails->find('all', ['conditions' => ['Emails.company_id >' => $company->company_id]]); the way i use the condition maybe wrong but that's i will solve later, right now i am getting an error " Undefined variable: emails " how to access the emails then ? i used the same |
# |
Jul 17th 2018, 08:26 |
josbeir |
indeed, i like webpack and then put that stuff on a cdn if needed |
# |
Jul 17th 2018, 08:25 |
admad |
if you have only we assets then directly using unkpg is fine |
# |
Jul 17th 2018, 08:25 |
neon1024 |
I use Yarn for Vue.js as I need Node.js dependencies, but I wouldn’t use Yarn for jQuery |
# |
Jul 17th 2018, 08:25 |
neon1024 |
I like unpkg as I can fix a semver |