I have a custom extension model like this:
app/code/Namespace/Module/Model/Core.php
<?php
namespace Namespace\Module\Model;
class Core
{
public function save($data){
....
}
}
I want to create a PHP script inside the same Magento project folder like this:
script/test.php
$model = \app\code\Namespace\Module\Model\Core; //roughly like this
$data = 'test';
$model->save($data);
is it even possible to do this?