Welcome Guest, Not a member yet? Register   Sign In
Build My Own Addin
#6

(12-20-2016, 11:23 AM)jamierc80 Wrote: Ok thanks, I've have been googling a bit more and thinks it's more of a library/helper that I need for bootstrap elements.

often what I do is create a config file for the frontend framework.  So, for bootstrap, I create bootstrap.php and put it in applications/config/bootstrap.php

Then add it to the /application/config/autoload.php file.

In the bootstrap.php file, I have all the possible bootstrap changes.

PHP Code:
<?php
//  application/config/bootstrap.php
// make sure it's autoloaded in /application/config/autoload.php

$config["full_tag_open"] = '<ul class="pagination">';
$config["full_tag_close"] = '</ul>';    
$config["first_link"] = "&laquo;";
$config["first_tag_open"] = "<li>";
$config["first_tag_close"] = "</li>";
$config["last_link"] = "&raquo;";
$config["last_tag_open"] = "<li>";
$config["last_tag_close"] = "</li>";
$config['next_link'] = '&gt;';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '<li>';
$config['prev_link'] = '&lt;';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '<li>';
$config['cur_tag_open'] = '<li class="active"><a href="#">';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>'

Once you've added all the easy stuff like this, then you could build your library to cover the things the bootstrap config file doesn't cover.
Reply


Messages In This Thread
Build My Own Addin - by jamierc80 - 12-18-2016, 03:22 AM
RE: Build My Own Addin - by enlivenapp - 12-18-2016, 08:42 AM
RE: Build My Own Addin - by jamierc80 - 12-18-2016, 03:20 PM
RE: Build My Own Addin - by enlivenapp - 12-20-2016, 10:19 AM
RE: Build My Own Addin - by jamierc80 - 12-20-2016, 11:23 AM
RE: Build My Own Addin - by enlivenapp - 12-21-2016, 08:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB