Model could not be loaded while executing query [Phalcon Framework]

i get some trouble when using model query for execute in phalcon framework like this sample and the result :

$query = new Query(
“SELECT * FROM Campaign”,
$this->getDI()
);

Model ‘Campaign’ could not be loaded
#0 [internal function]: Phalcon\Mvc\Model\Manager->load(‘Campaign’, true)
#1 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect()
#2 [internal function]: Phalcon\Mvc\Model\Query->parse()
#3 /var/www/html/gamanads/app/controllers/AdspaceController.php(185): Phalcon\Mvc\Model\Query->execute()
#4 [internal function]: Vokuro\Controllers\AdspaceController->offerwallAction()
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Vokuro\Controllers\AdspaceController), ‘offerwallAction’, Array)
#6 [internal function]: Phalcon\Dispatcher->_dispatch()
#7 [internal function]: Phalcon\Dispatcher->dispatch()
#8 /var/www/html/gamanads/public/index.php(41): Phalcon\Mvc\Application->handle()
#9 {main}

how i solve this problem is just, get full path for the model in models folder like this.

$query = new Query(
“SELECT * FROM Vokuro\Models\Campaign”,
$this->getDI()
);

and, taraaaaaa…. works very well.

thankyou.

Advertisements

Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted

 

recently encountered a SwiftMail error while trying to send a mail through gmail.

Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted.
I was trying to send mail through my gmail and google thought that I was a spam(maybe because I was requesting too fast) I received a mail from them saying my account was access and I told them it was me. I was able to send mail without problem and it just occured now.

 

I researched on the internet and some answers includes enabling the “access for lesser app” and “unlocking gmail captcha” which sadly didn’t work for me until I found the 2-step verification.

What I did the following was:

  1. enable the 2-step verification to google HERE
  2. Create App Password to be use by your system HERE
  3. I selected Others (custom name) and clicked generate
  4. Went to my env file in laravel and edited thisMAIL_USERNAME=talentscoutphil@gmail.com

    MAIL_PASSWORD=thepasswordgenerated

  5. Restarted my apache server and boom! It works again.

This was my solution. I created this to atleast make other people not go wasting their time researching for a possible answer.

i hope this trick will solve the problem especially if you user php framework with mail library.

cheers.

INDONESIAN Best Build Guide Karina for Ranked or Classic, trust me it works!

Hello guys,

I just want to share about this awsome build for Karina (just falling in love for the first time i use this hero).

Combined with emblem magic assasin (which is just level 18), i try this build for ranked and the result is amazing. Focus on magic penetration, so this is my build.

1. Calamitry reaper
2. Concentrated energy
3. Devil tears
4. Arcane boots
5. Glowing wand
6. Holy cristal.

And let me know in comment, how is the result for this build.

Please like, comment and subscribe.

Enjoy!

Mobile Legends. Mobile Legends 5v5. Mobile Legends Bang Bang. Mobile Legends Karina. Mobile Legends Karina Best Build So sick. Mobile Legends Karina Build Maniac. Mobile Legends Karine Guide. Mobile Legends Karina Pentakill. Mobile Legends Karina Build.

Best Build Guide Karina for Ranked or Classic, trust me it works!