Closed ghost closed 7 years ago
for question 1
you can change the code with
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*| --------------------------------------------------------------------------
*| Web Controller
*| --------------------------------------------------------------------------
*| For default controller
*|
*/
class Web extends Front
{
public function __construct()
{
parent::__construct();
}
public function index()
{
if (installation_complete()) {
redirect('administrator/login');
} else {
redirect('wizzard/setup','refresh');
}
}
public function home()
{
$this->template->build('home');
}
}
/* End of file Web.php */
/* Location: ./application/controllers/Web.php */
on application/controllers/Web.php file
for current version you cant't change the label name, it's possible if you change the field name on database, for form builder you can change the label name
whether that is your intention to create a new page in this cicool?
to generate crud or update it you will lose the custom code that you apply to cicool crud, you can generate back by removing the crud first
whether you are looking to add an action on the data line?
thanks
Thank you for your reply.
i was wondering if i can create php files and call them from the menu ... i.e. /folder name/example.php
Add custom button to list view on row that will open up new window and pass a parameter (e.g. id)
Thanks
Please help me with my other questions above. Thanks
yes to create a page / module you can make the application / controllers / example.php you can learn the system CodeIgniter
to be able to add a custom button you can create a button on a view, for example, you create a custom button on the blog, you can open view
application/views/backend/standart/administrator/blog/blog_list.php
you can add custom button by write this code
<?php is_allowed('blog_custom', function($blog) use ($blog){?>
<a href="javascript:void(0);" data-href="<?= site_url('administrator/blog/custom/' . $blog->id); ?>" class="label-default remove-data"><i class="fa fa-close"></i> Custom Button</a>
<?php }) ?>
and you can change the auth application/controllers/administrator/Auth.php controller method login with
redirect('administrator/user/profile','refresh');
thanks
1 - How can i divert the user directly to login page 2 - In the CRUD Builder how can i change labels 3 - How can i put custom PHP pages on the site 4 - If i change a view, will i need to take a copy if i regenerate crud pages? 5 - Are there any examples of where you have added an action from the grid (i.e. from list open new page passing details from table?)
Thank you ,i look forward to your response.