are there any performance differences when I use namespace outside controller vs use namespace in one of more controller methods ?
#Scenario 1
use Yii;
use app\models\Book; # the Book model is always loaded ??
class AuthorController extends Controller
{
function actionAddBook() {
$book = new Book();
}
}
#Scenario 2
use Yii;
class AuthorController extends Controller
{
function actionAddBook() {
$book = new app\models\Book(); #Book model only loaded inside AddBook action ??
}
}