How do I integrate the DI Class in other base class file ?
<?php
namespace Phalcon\Engines;
class Logic extends \Phalcon\DI\Injectable
{
public function __construct()
{
}
}
for example :
in Controll
class , i can use $this->session
or $this->request
.
<?php
namespace Phalcon\Engines;
use Phalcon\Mvc\Controller as MvcController;
class Controller extends MvcController
{
public $_request_session = true;
}
how can I use $this->session
or $this->request
in Logic
class .
My English general.Say not clear
thks.