简体   繁体   English

grocerycrud add_action没有显示正确的URL

[英]grocerycrud add_action not showing correct URL

I am trying to add an action in an old system using GroceryCRUD 1.3.1, using the following line of code: 我正在尝试使用以下代码行在使用GroceryCRUD 1.3.1的旧系统中添加操作:

$crud->add_action('Note', base_url('assets/grocery_crud/themes/flexigrid/css/images/note.png'), base_url('meta/organisation_admin/manage_user_notes'), '', array($this, 'get_pk'));

The action button is created, but the URL is not correct. 操作按钮已创建,但URL不正确。 Instead of the URL specified, I get this (for example): 我得到的不是例如指定的URL,例如:

meta/organisation_admin/12345

Where 12345 is the user's ID, so my get_pk function does return the correct primary key, but the URL is not right. 其中12345是用户的ID,因此我的get_pk函数确实返回正确的主键,但是URL不正确。

Any ideas? 有任何想法吗?

Well i will recommend you upgrade the GC library. 好吧,我建议您升级GC库。 It have evolved way ahead and might be - your issue what you are facing in might also get resolved. 它已经向前发展了,而且可能会-您面临的问题也可能得到解决。 If you still are having issue post upgradation, do share your concerns, will look in for a proper solution / workaround for the issue. 如果您在升级后仍遇到问题,请分享您的疑虑,并为该问题寻找适当的解决方案/解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM