Yii Framework Forum: How to access model in web/css/ folder - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to access model in web/css/ folder

#1 User is offline   manocreative 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 12-December 13

Posted 03 November 2016 - 06:13 AM

Dear Friends,


It is possible to access model in web/css/custom.php file.How to get findall values on custom.php file.Please any one can help me...

$customer = app\models\WebsiteSettings::find()
    ->where(['id' => 1])
    ->one();



Above code i try to use but showing error.
0

#2 User is offline   Patrick Jones 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 495
  • Joined: 14-July 12
  • Location:Berlin

Posted 03 November 2016 - 01:24 PM

Having a model in web/css sounds like a questionable approach.
Freelance developer for hire - send me a message!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users