pomerla/ci3-jumpstart

A very simple Cjdeigniter3-Jumpstart

v1.1.4 2018-04-24 12:39 UTC

README

Installation package Codeigniter

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646569676e697465722d332e312e382d6f72616e67652e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5570646174652d4d61792f32342f323031382d3336616465312e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d76312e312e342d627269676874677265656e2e737667

Quick start

The preferred way to install this extension is through composer.

Either run

composer create-project pomerla/ci3-jumpstart

Or download and unzip the latest version of the archive to your hosting. Go to the directory with the unpacked engine. Installation will start automatically. Fill the connection settings to the database and set the administrator login and password. The install.txt file is required. This file will be automatically deleted after installation.

When you're done, you can delete this ( .gitignore, LICENSE , README.md, composer.json and dir vendor) with your repository.

Bootstrap and font-awesome are in the assets folders.

A simple CRUD library is included in the assembly.
Example of use

function __construct()
	{
		parent::__construct();
	    $this->load->library('common/crud_lib');
	}

	
public function index()
	{
		if (!$this->ion_auth->logged_in())
		{
			// redirect them to the login page
			redirect('auth/login', 'refresh');
		}
		else if (!$this->ion_auth->is_admin()) // remove this elseif if you want to enable this for non-admins
		{
			// redirect them to the home page because they must be an administrator to view this
			return show_error($this->lang->line('text_error_1'), '', $heading = $this->lang->line('text_error_h'));
		}
		else
		{
            $data['users'] = $this->crud_lib->select('users');
            //use select('users') where array('ip_address'=>'127.0.0.1') order_by 'id ASC' or 'DESC'
            //$data['users'] = $this->crud_lib->select('users',array('ip_address'=>'127.0.0.1'),'id DESC');
            
            //$dat = array(
			//	'first_name' => 'Admin',
            //    'last_name' => 'Members',
			//	'email' => 'admin@admin.com'
			//);
			
            //$this->crud_lib->insert('users',$dat);
            //$this->crud_lib->delete('users','6');
            //$this->crud_lib->update('users','2',$dat);
            
			$this->load->view('admin_message', $data);
		}
		
	}	

We recommend that you open this README in another tab as you perform the tasks below. You can (watch our video Soon) for a full demo of all the steps in this tutorial.

Links

Codeigniter
Codeigniter-hmvc
CodeIgniter-develbar
CodeIgniter-Ion-Auth