Ah right gotchya. I thought that may be the case. It does seem tricky to maintain yes, which was my worry, although I suppose it does make sense as the constructor is meant to be for the current...
I'm just looking for opinions on my situation in relation to oop. I'm a beginner at the moment. Basically in my site I have files, photos and I also have messages.
I've been tasked with adding a couple of pages to a site created in joomla. I've never used joomla at all but thought I could get by, by simply adding these extra pages as static pages with php.
...
Thanks NogDog. Book purchased. I've previously used codeigniter in my last job briefly and you're right it does seem the easiest especially compared to what I am tasked with learning in my new job,...
I'm developing a system whereby users can upload files then make posts on a thread whilst attaching multiple items/files to each post i.e. one user may make a post with a single photo attached,...
Also I want my event to fire when an appropriate element is interacted with rather than attaching events to all elements. At the moment I am trying to delegate events by attaching listeners to parent...
Thanks again xelawho. Yep unfortunately I do need to pass "this" too. The previous code I posted was very simplified so that it simply addressed the problem at hand but in my actual code I have data...
I've managed to come up with some code and wanted to see if anyone could suggest improvements or point me in the right direction if I'm doing something wrong. I could explain it but I think the code...
Thanks xelawho. Yep you're right that is pretty simple but what I'm trying to achieve is something like that but which can be applied to many many elements inside a given page or more precisely...
Decided on job 2. Hardest decision ever but I just can't risk letting go of php and coding at this early stage of my career as a web developer which is definitely what I would be doing. In the words...