我需要从class Home extends CI_Controller {
public function __construct(){
parent::__construct();
//instead of checking the user whether he is logged in,
//in every function, check it in the constructor
if (!$this->session->userdata('is_logged_in')) {
redirect('Signin/signin');
}
}
//function to show customer lists
public function index() {
//query all the customers added by the user and pass it to view
$this->load->view('customer_list_view',$data);
}
If the user wants to add a customer, add a function to show the form
//customer add/edit form view
public function add_customer(){
//show form view
$this->load->view('customer_add_view');
}
//save/update customer
public function save_customer($userid = NULL){
//save or update based the availability of the user in the database. For a new user, userid will be null.
}
//delete customer
public function delete_customer($userid){
//delete the customer here
}
}
SDK启动外部活动(FeedbackActivity
。)
我想自定义HockeyApp
,添加ActionBar
和更多内容,但我无法修改外部Navigation Drawer
。
我的想法是将外部Activity
嵌入到另一个中,因此我可以根据需要自定义它。
我已阅读Activity
,但已被弃用......
有更好的主意吗?
答案 0 :(得分:0)
我认为你有一些选择:
CustomFeedbackActivity
的{{1}},因为@lelloman说要自定义它(我会选择这个)FeedbackActivity
CustomFeedbackActivity
,而不是FeedbackActivity
中的所有内容,并自行拨打HockeyApp API 但考虑到HockeyApp SDK的许可,为了做到这一点,@ Vlad Matvienko说