Skip to content

tinchorton/bootstrap-codeigniter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-codeigniter

Helper para manejar bootstrap 3 en las vistas de codeigniter

Documentation

Inside helper

Example

Controller

public function index()
{	
	//load helper bootstrap
	$this->load->helper('bootstrap');
	//call view
	$this->load->view('yourview');		
}

View

# Don't forget <?php ?>
# Copy/Paste into <head> </head>
<?= load_bootstrap(); ?>

# Copy/Paste into <body> </body>
<?php
	//send info to method test of controller welcome
	echo form_open("welcome/test");
	$atributos = array('style' 	=> 'text-align: center;');
	echo form_input_text('nombre', 'Ingresa nombre', $atributos);
	echo form_input_password('password','Ingresa contraseña', $atributos);
	echo form_input_checkbox('remember','Recordar');
	echo form_input_radio('area','Valor 1', 'valor1');
	echo form_input_radio('area','Valor 2', 'valor2');
	echo form_input_radio('area','Valor 3', 'valor3');
	echo form_input_textarea('area','ingresa una descripcion');
	echo form_input_select("lol");
	$options = array('1' => 1,'2' => 2);
	echo select_options($options);
	echo form_submit("Enviar formulario");
	echo form_close();

	// send file to method uploadTest of controller welcome
	echo form_open_multipart("welcome/uploadTest");
	echo form_input_file('Selecciona una imagen');
	echo form_submit("Enviar formulario");
	echo form_close();
?>

About

Helper para manejar bootstrap 3 en las vistas de codeigniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 99.4%
  • HTML 0.6%