thank you it was little confusing at the end when the concept of dependency injection started, can you add one more example. However i appreciate your effort. all of your videos were pretty clear for understading basic concepts. I am looking for some tutorials on cakephp. If you can post them that would be helpful. Thanks once again.
hey even i also have some doubt..though you pass the parameter to constructor still it is dependent on logger class..so wht's the concept of dependency injection here..
HI rahul , thanks for your video, its appreciable , i have confusion at 10:07 in this video, like what the exactly use of dependency injection,, as we have already create the object of class logger in the class userrofile, now again we are creating object of class log in the line 43, please give a quick reply. thanks
Thanks for your efforts, I think it still dependent on logger class, because when I instantiate the user class it's mandatory to put the object of logger class. Please explain
Thanks for this concept, but I just want to know for the same example is it possible, could we use inheritance property instead of dependency injection concept (use parent class function or property inside the child class)?
Thankyou for this Awesome Video , Understood almost Completely , Having Some Doubts :- 1. We usually create object of a class like $logger = new logger; but in this video you created it like $logger = new logger(); , is there any special reason for that , as code is working fine without () aswell, as per previous videos we use () mostly to pass parameters for constructors , but in this video no parameters needed as there is no Construct in Logger Class. So Please Clarify it. 2.We are Not Inheriting/Extendng the Logger Class in UserProfile Class but still we are able to access the log function of Logger Class in UserProfile Class , so its making me little bit confuse , can u explain this Part Aswell. Thank You For All of your awesome videos , Expecting a Reply to clear the Doubts soon , so please clear the doubts thanks.
Dragon Boyz 1. In php, It is your choice to use ( ) when your constructor require no params, but must to use ( ) in java. 2. As you can see clearly in the code , both classes are present at same level. will it be like that if you are going to use inheritance? If so then what you get would be absurd. that's why the code exists and hence the video.
none of the frameworks are neither best nor worst.. all have their own of features. One suits for one application and the other suits for another one. Since you're new to frameworks.. I suggest you go for codeigniter first. As its easy to understand compared to Laravel.
i am confued user profile class me private $logger; ko aapnay object kaha 7:08 timing pay question ye hay key isay object kese conside kr raay o aaap isay to variable hona chaiye please reply i would be grateful to you tanks for this tutorial
In dependency injection vedio you take constructor and paas $logger as a parameter so where is the object of logger class. I don't understand this Sir Please help me
Asif Khan In first half of video, he created logger object in constructor of userprofile class made it to initialized. in later half he created logger object outside the close passed it as parameter to userprofile and there instance variable initialized.
hello thanks for the magic functions videos its really helpful. thanks a lot :) but today i also have a separate question apart oops or php . i have two drives in hard disk C & D would i install ubuntu in D drive or its compulsory that is must be C drive. in C drive i have win-7 and remaining space is only 10 GB in C drive. so can i use drive D if 30 GB space and fully free.
yes but actually when i install in another drive then C drives generate an error that why i ask you because in all tutorials you are using Linux so i think you are the right person for the question apart that thanks for reply i have done :) n literally you really teach a well manner just waiting for the next video tutorial :)
Sir, I have learned a lot from your tutorial, and would be able to understand various core concepts. To be honest after watching your tutorials I got the interest towards programming. Sir currently I am working on Zend Framework-2 which seems to have some difficult Big Words kind of functionalities and how they are managed under the hood. I tried a lot to learn myself the core structure but only able to get some ideas, I have not found a very good community support for it. Please if you can make a series on ZEND2 or ZEND3 would be great because all the tutorials that I have gone through, just explains to imitate the things like you create this file and put that code and run etc. I want to know little more in detail about it as the way you explain the things. I will wait for your reply, Please response me back if or if you are not going to make the series on the same. Thank you
Thank you very much for the appreciation. Honestly speaking I don't know much about ZF as I've never worked on it. But most of the php frameworks, if not all, available in the market are based on OOPs and specifically MVC design pattern. So, if you've strong knowledge of OOP concept, it hardly matters which framework you're working with.. you can easily learn it. Or even build your own version of "Framework". And for video on ZF, I don't think I'll be able to cover it any time soon as I already have a lot of videos pending in pipeline. And can't make time for those.
Hi Rahul,
Tum ne ekdum zabardast video banaye hai dost.
Ek number!!!!
Zakass!!!
Hats off yaar.
Very useful content.
Good job.
Very good video, thanks
So many use of logger logger is confusing... But 2-3 bar me samajh aaya
Very nice video.
u r awasome!!! very nice tutorial!!! plz post more complicated logic using opps php all of those used in practical projects in it companies
Fantastic Video Tut....
aik dam mast
thank you it was little confusing at the end when the concept of dependency injection started, can you add one more example.
However i appreciate your effort.
all of your videos were pretty clear for understading basic concepts.
I am looking for some tutorials on cakephp.
If you can post them that would be helpful.
Thanks once again.
vinay kumar thank you for your valuable feedback. I'll try my best to make the example more clearer. :)
hey even i also have some doubt..though you pass the parameter to constructor still it is dependent on logger class..so wht's the concept of dependency injection here..
Please make video for creational, structural and Behavioural patterns
with php example
nice bhai
HI rahul , thanks for your video, its appreciable , i have confusion at 10:07 in this video, like what the exactly use of dependency injection,, as we have already create the object of class logger in the class userrofile, now again we are creating object of class log in the line 43, please give a quick reply.
thanks
Nice video
Rahul bhai..thanks for making it simple..Aur DI Container k baare me kuch dala hoga toh link bhejo na..thanks
Please make video about design pattern..
GG bro ! thansk for this tut
Sir you are awesome..... Thankful to you.
Thanks for your efforts,
I think it still dependent on logger class, because when I instantiate the user class it's mandatory to put the object of logger class. Please explain
Nice tutorial -------
nice one
Thank you sir you videos are to good. but if possible.
Can you add one more video on dependency injection
thank you so much
You are a Boss!!
Thanks Lot..
bht hi ala
Loved it really amazing the way u explained dependency injection thank u so much
Thanks for this concept, but I just want to know for the same example is it possible, could we use inheritance property instead of dependency injection concept (use parent class function or property inside the child class)?
Q Sir,...If class Dependent on 20-25 object ....How to handle parameter list
awsome
Can we extend logger class to use its method in UserProfile class instead of dependency Injection technique
sir what's the difference in dependency injection and inheritance as in both concepts we can call the methods then what's the main difference.
Nice
Thankyou for this Awesome Video , Understood almost Completely , Having Some Doubts :-
1. We usually create object of a class like $logger = new logger; but in this video you created it like $logger = new logger(); , is there any special reason for that , as code is working fine without () aswell, as per previous videos we use () mostly to pass parameters for constructors , but in this video no parameters needed as there is no Construct in Logger Class. So Please Clarify it.
2.We are Not Inheriting/Extendng the Logger Class in UserProfile Class but still we are able to access the log function of Logger Class in UserProfile Class , so its making me little bit confuse , can u explain this Part Aswell.
Thank You For All of your awesome videos , Expecting a Reply to clear the Doubts soon , so please clear the doubts thanks.
Dragon Boyz
1. In php, It is your choice to use ( ) when your constructor require no params,
but must to use ( ) in java.
2. As you can see clearly in the code , both classes are present at same level.
will it be like that if you are going to use inheritance?
If so then what you get would be absurd.
that's why the code exists and hence the video.
Thankyou
thanks this video
New Userprofile class mai logger variable pas kiye bina nhi kar sakte?
Can you please explain dependency injection using Magento2 example.
$logger is mentioned in Class UserProfile as "private $logger;". But when we do type-hinting, you mentioned Logger class. So how is it working??
Great explanation , man :)
i guess Im kind of randomly asking but does anybody know of a good place to watch newly released series online?
@Tony Fox i watch on FlixZone. Just google for it =)
@Saul Benedict Yea, been using flixzone for years myself :)
@Saul Benedict Thanks, I signed up and it seems like they got a lot of movies there :D I appreciate it!!
@Tony Fox No problem :D
I am confused that after understanding Core PHP , I should go for CodeIgnitor or Laravel ?? Can u please explain which framework is best ?
none of the frameworks are neither best nor worst.. all have their own of features. One suits for one application and the other suits for another one. Since you're new to frameworks.. I suggest you go for codeigniter first. As its easy to understand compared to Laravel.
So please tell me which framework is used for what ?? Example - for Ecommerce and social networking site.
sir i am still confusing this topic ..
can you give animation example
Bro plzz share cakephp tutorials plz bro
Hii
Are you a php developer?
@@adilismail3593 yes
sir dependency injection aur MVC model ek hi working ek hi hai kya?? please reply
+nishant dua nahi .. totally different..
+PHP in Hindi okie sir thanks
i am confued
user profile class me private $logger; ko aapnay object kaha 7:08 timing pay
question ye hay key isay object kese conside kr raay o aaap
isay to variable hona chaiye
please reply i would be grateful to you
tanks for this tutorial
object bhi to variable mein hi store hota hai na.. jaise koi bhi aur value store hoti hai..
you mean aap ny ek new object k liye container banaya hai right?
In dependency injection vedio you take constructor and paas $logger as a parameter so where is the object of logger class. I don't understand this Sir Please help me
Asif Khan
In first half of video, he created logger object in constructor of userprofile class made it to initialized.
in later half he created logger object outside the close passed it as parameter to userprofile and there instance variable initialized.
hello thanks for the magic functions videos its really helpful. thanks a lot :)
but today i also have a separate question apart oops or php .
i have two drives in hard disk C & D would i install ubuntu in D drive or its compulsory that is must be C drive. in C drive i have win-7 and remaining space is only 10 GB in C drive. so can i use drive D if 30 GB space and fully free.
Yes, in-fact its not a good idea to install both OS in save partition. You should always prefer to installing one OS per partition.
yes but actually when i install in another drive then C drives generate an error that why i ask you because in all tutorials you are using Linux so i think you are the right person for the question apart that thanks for reply i have done :) n literally you really teach a well manner just waiting for the next video tutorial :)
dependency injection nhi aya samaj
Sir, I have learned a lot from your tutorial, and would be able to understand various core concepts. To be honest after watching your tutorials I got the interest towards programming. Sir currently I am working on Zend Framework-2 which seems to have some difficult Big Words kind of functionalities and how they are managed under the hood. I tried a lot to learn myself the core structure but only able to get some ideas, I have not found a very good community support for it.
Please if you can make a series on ZEND2 or ZEND3 would be great because all the tutorials that I have gone through, just explains to imitate the things like you create this file and put that code and run etc.
I want to know little more in detail about it as the way you explain the things.
I will wait for your reply, Please response me back if or if you are not going to make the series on the same. Thank you
Thank you very much for the appreciation. Honestly speaking I don't know much about ZF as I've never worked on it. But most of the php frameworks, if not all, available in the market are based on OOPs and specifically MVC design pattern. So, if you've strong knowledge of OOP concept, it hardly matters which framework you're working with.. you can easily learn it. Or even build your own version of "Framework". And for video on ZF, I don't think I'll be able to cover it any time soon as I already have a lot of videos pending in pipeline. And can't make time for those.