Search the Community
Showing results for tags 'cms'.
Found 3 results
In video 28, when we create a cms object, inside the constructor we declare:- global $FP; $this->FP= &$FP; the explanation being we can directly access the global $FP object directly and won't have to use a copy Doubt 1: throughout earlier project we have used copies and never used &(reference) so why was it essential in this case? Doubt 2: What is the difference in using a copy ($this->FP=$FP) and an original? Shouldn't they work similarly as in case of $this->FP=$FP, we are still referencing to the same object. Doubt 3: How to know when to use a the reference object?