php oil g scaffold artist name:varchar[150] country_id:tinyint[3]
Fatal error: Call to undefined function Fuel\Core\mysql_connect() in <snip>/mixdb/fuel/core/classes/database/mysql.php on line 67
<?php
class Controller_Artist extends Controller {
public function action_index()
{
$data['list'] = $this->get_list();
$this->render('welcome/index', $data);
}
public function get_list()
{
$users = DB::select('*') ->from('artist')->as_object()->execute();
var_dump($users);
}
}
Thank you.
PDO is generating another error, but it seems I haven't added in PDO_MYSQL to my build, either.
I'll put this down to silly configuration mistakes, try again tomorrow with a fresh build and let you know how I go!
Thanks for the prompt reply.
class Model_Example extends ActiveRecord\Model {
protected $table_name = 'example_table';
}
It looks like you're new here. If you want to get involved, click one of these buttons!