3 Min Quick Start


# Page Builder

Page builder let's build static or dynamic page less coding, let's start!

  1. First go to Page Builder in backend
  2. There's Add Page button to create page
  3. In Add Page there's form :
    • Title
      Title for title of page, this is required.
    • Featured Image
      Featured image for add image that showing in the page.
    • Link
      Link for create link of page this is required and unique.
    • Template
      Template has 2 options Frontend and Backend, Frontend for page that show in frontend page Backend that show in Backend Page.
    • Breadcrumb
      Breadcrumb for list menu history.
    • Content
      Content for main content of page.
    • Keyword
      Keyword for meta tag keyword.
    • Description
      Description for meta tag description.
    • View
      View is list of view template that you created, can be found in directory "application/views/page/"
  4. After fill the form and save, in the list of page you get link the page, for example page/about, can be accsess via domain.com/page/about

# CRUD Builder

CRUD Builder let's build CRUD (Create, Read, Update, Delete) apps without coding, let's start

  1. First go to CRUD Builder in backend
  2. There's Add Table button to create CRUD apps
  3. In Add Page there's form :
    • Table name
      Table name is list of table you created in database.
    • Subject
      Subject for subject of CRUD.
    • Title
      Title for title of page CRUD.
    • Action
      Action for limit action of CRUD.
    • Breadcrumb
      Breadcrumb for list menu history.
    • Field Options
      List all field options
      • Fields
        List fields name and input for alias name.
      • Column
        Checkbox for show or not column.
      • Add
        Checkbox for show or not field add.
      • Edit
        Checkbox for show or not field edit.
      • Details
        Checkbox for show or not field details.
      • Fields Type
        Select type field.
      • Validation
        Add validation rules.
  4. After fill the form and save, in the list of CRUD Builder you will get link the page, for example myigniter/table/book, can be accsess via domain.com/myigniter/table/book

# Example Controller

This example controller for who don't want using builder, you can also export from builder by clicking green button Generate Module

<?php

defined('BASEPATH') or exit('No direct script access allowed');

/**
 * Example Controller.
 */
class Example extends MX_Controller
{
    private $title;

    public function __construct()
    {
        parent::__construct();

        $this->title = 'Hello World'; // Set title page
    }

    /**
     * Frontend Hello World page.
     */
    public function index()
    {
        $this->load->model('bookModel'); // Load smart model
        $data['book'] = $this->bookModel->search(); // Search model
        $data['helloWorld'] = 'Hello World'; // Data send to wrapper

        $this->layout->set_title($this->title);
        $this->layout->set_wrapper('hello_world', $data);
        $this->layout->render(); // template used by default is front template , if you need to change it try 'admin' or 'auth'
    }
......

Full example can be found in application/modules/example/controllers/Example.php or Full Documentation