1
2
3
4
5
6
7
2
3
4
5
6
7
public function __construct($connection. array $spec) { 	$this->_prototype = new Message($connection); 	$this->_connection = $connection; 	$this->_spec = $spec; 	$this->_currentMailbox = $spec['mailbox']; }
In this code,
$this->_prototype = new Message($connection);creates prototype of Message instance. Where should I put the class file if I have Model, View and Controller directories only? Where and how to name new directory?
Another question - MVC
Can I insert controller of Class2 into controller of Class1? Won't be it a mess afterwards? Or should I make prototype patterns for that only? Eg.:
1
2
3
4
2
3
4
public function __construct() { 	$this->class2 = new Class2Controller; }
edited 1×, last 07.11.17 09:11:21 am