ridwanskaterock / cicool

Cicool is a multifunctional application that is used to facilitate your work in creating a system, CMS, E-Comerce and others
20 stars 13 forks source link

Great Product - Few Questions #37

Closed ghost closed 7 years ago

ghost commented 7 years ago

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.

ridwanskaterock commented 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

  1. 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

  2. whether that is your intention to create a new page in this cicool?

  3. 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

  4. whether you are looking to add an action on the data line?

thanks

ghost commented 7 years ago

Thank you for your reply.

  1. i was wondering if i can create php files and call them from the menu ... i.e. /folder name/example.php

  2. Add custom button to list view on row that will open up new window and pass a parameter (e.g. id)

Thanks

ghost commented 7 years ago
  1. After changing this code, the i am in a loop in which i login and it redirects me to the login page again! - changed it to administrator/dashboard in which the login page appears.

Please help me with my other questions above. Thanks

ridwanskaterock commented 7 years ago
  1. yes to create a page / module you can make the application / controllers / example.php you can learn the system CodeIgniter

  2. 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

image

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 }) ?>
ridwanskaterock commented 7 years ago

and you can change the auth application/controllers/administrator/Auth.php controller method login with image

redirect('administrator/user/profile','refresh');

thanks