Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation package Codeigniter

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


About

There will be documentation

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages