I have been programming functions over the past few years and have never understood the βvirtuesβ of using objects.
My key question is: can an instance of an object in PHP be used on multiple pages, or does it die with the page because it is closed?
Even the link to the tutorial will be great!
Everything that you create through PHP will cease to exist the moment the page is completed until you place it in some kind of repository.
, , . , MVC .
MVC.
, , , . , , .
, ... , .. MVC.
"" - PHP ". , , , . ," , , - , ..
CodeIgniter "Yay" "@# $! @# $".
: Amazon ( ) (, DVD ..). /, , . . DVD- .
, , , , . DVD. , , . , . .
,
. ,
http://journals.ecs.soton.ac.uk/java/tutorial/java/objects/object.html
PHP has a shared-nothing architecture. Objects do not stand up to the request.