I havethis:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Adverts_model extends Base_module_model {
public $required = array('advert_title');
function construct() {
parent::construct('fuel_adverts');
}
}
class Adverts_item_model extends Base_module_record {
}
And in my database i have id, advert_title and image, but when in the admin i need something to say the following:
"Sorry you've upladed 10 adverts and most remove an advert to create another one"
Then in the code dont allow creation of another until one item is removed....
So what would I need to add to the above code in order to this?
Comments
https://github.com/daylightstudio/FUEL-CMS/issues/114#issuecomment-2610234