Git Product home page Git Product logo

jasonbaier / ci3-fire-starter Goto Github PK

View Code? Open in Web Editor NEW
153.0 153.0 154.0 2.14 MB

NOW THAT CODEIGNITER 4 HAS BEEN RELEASED, THIS PROJECT WILL NOT BE UPDATED ANYMORE. CI3 Fire Starter is a CodeIgniter3 skeleton application that includes jQuery and Twitter Bootstrap. It is intended to be light weight, minimalistic and not get in your way of building great CodeIgniter 3 applications.

License: MIT License

PHP 74.28% HTML 0.39% CSS 10.63% JavaScript 14.70%

ci3-fire-starter's People

Contributors

ammarfrahm avatar arif-rh avatar bryant1410 avatar jasonbaier avatar klavatron avatar simogeo avatar towerx avatar yinlianwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ci3-fire-starter's Issues

Admin template footer bug

Hello,

I noticed some bugs with the admin template:

  1. The footer always produces a vertical scrollbar, even if the content of the page is less than the height of the screen. (eg. the admin dashboard)
    There are approximately 10 white pixels below the footer's banner.

  2. Regarding issue #29, if I'm not using a vhost, the footer is set at the height of the screen (not below content of the page)
    If the page content is greater than the height of the screen, the footer is displayed over the content. For example, in the "Settings" page, the footer is fixed at the "Welcome Message" heading, even if I scroll down, the footer remains fixed. (on my fullhd screen)

Also, if I'm not using a vhost, the language button does not work and returns a system dialog box that displays message "404 not found".
However, changing the language in the user profile work smoothly.

Tested with latest Chrome and Firefox.

can't add composer packet

I trying add composer packet

https://github.com/raveren/kint/

with

composer require raveren/kint

and I already enable in application/config/config.php

with

$config['composer_autoload'] = TRUE;

but when I load the application this composer packet aren't work and another packet I add on from composer, any suggestion or idea ?

and downloaded packet not in

/application/vendor

but in main folder,

i made solution this

#32

maybe you have another good solution

How

@JasonBaier

How can I get in touch with you via email about another repository (it doesn't have issues there.)

redirect to /htdocs?

Hi Jason,

Loving the looks of your skeleton and want to try it out on a new project. Feel like I'm missing something though: should I be using an .htaccess redirect at the web root to serve the htdocs directory? Can't find anything about the CI index.php in your readme, as it's not where I expect it to be.

Thanks!
Evan

log_message function not working.

None of my log_messages was working in any controller extended from My_Controller. The system messages and anything extending CI_Controller worked fine.

I tracked it down to this line in the My_Controller constructor.

date_default_timezone_set($timezones[$this->settings->timezones]);

I checked in the config and my time_reference configuration was;

$config['time_reference'] = 'local';

Once I set it to a UM? value the log_message function started working again ok.

Not sure why this is the case, but posting here as an informational.

Installation problem

I installed apache2 on my ubuntu 16 and the localhost folder is located in /var/www/html/

Downloaded ci3-fire-starter and extracted the folder to /var/www/html/ci3-fire-starter-folder

I also followed the installation instruction; changing the base url to => http://localhost/ci3-fire-starter-folder
configured the database, gives permission to the folder and so on

However, I only managed to view the welcome page. But once I click on login button or contact or whatever, I got an error

is there any step(s) that I missed? Please help me

CRUD in propject

Hello - Just wanted to say that I really like this project. I noticed you have CRUD functionality built into the admin area. Did you use a framework to do that?

Have you ever though about incorporating GroceryCRUD into this project? I tried to do it, but was not successful. If you were ever thinking about features, incorporating GroceryCRUD into this started app would be awesome!.

Upgrade to CI 3.0.5

Will there by any chance ever be an upgrade to CI 3.0.5? Would much appreciate it.

Email Validation Error

Every instance of a form throws up a error

The Email field must contain a valid email address.

and it comes down to this validation rule: valid_email

Anyone else having this problem?

can we have ACL and templating system?

i already use this for several project.. but this project lack of templating system and ACL
i add thi to my_controller

function set_template($template_file="template.php")
{
// make sure that $template_file has .php extension
$template_file = substr($template_file, -4) == '.php' ? $template_file : ($template_file . ".php");

    $this->template = "../../{$this->settings->themes_folder}/{$this->settings->theme}/{$template_file}";
}
public function view($view='',$param=NULL)
{
    $data = $this->includes;
    $data['content'] = $this->load->view($view, $param, TRUE);
    $this->load->view($this->template, $data);

}

undefined variable ?

hello first of all thanks for creating this starter kit,
however when i create a new controller im getting this error

    Message: Undefined variable: page_header

    Filename: default/template.php

    Line Number: 76

my controller is like this

    class Movie extends Public_Controller {

        public function index() {
            // Check for login
            if (!$this->session->userdata('logged_in')) {redirect('/');}

            // Build Data for page
            $header_data['page_title'] = 'Main';

            // load views
            $data['content'] = $this->load->view('movie/top_menu', $header_data, TRUE);
            $this->load->view($this->template, $data);
        }
    }

cant figure out what i am doing wrong im new in php and codeigniter

Error importing database

Hello, I'm getting the following error when trying to import the 'ci3-fire-starter.sql' databse.

SQL query:

CREATE TABLE IF NOT EXISTS `emails` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`name` varchar( 64 ) NOT NULL ,
`email` varchar( 256 ) NOT NULL ,
`title` varchar( 128 ) NOT NULL ,
`message` text NOT NULL ,
`created` datetime NOT NULL ,
`read` datetime DEFAULT NULL ,
`read_by` int( 11 ) unsigned DEFAULT NULL ,
PRIMARY KEY ( `id` ) ,
KEY `name` ( `name` , `email` ( 255 ) , `title` , `created` , `read` , `read_by` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 AUTO_INCREMENT =2;

MySQL said: Documentation
#1071 - Specified key was too long; max key length is 1000 bytes 

Any ides what is going on?

I can't complete the installation

Hi, this is my first framework and I have issues with the installation, I don´t understand the step that says "Upload all files to your server (excluding the /data folder)". In google I only find info about upload images to a server, but I think that's not what I need. Sorry if it's something stupid, it's my first web project, there are many things i don´t understand.

sort by number

let say I add number one field example in user list there I add the number counting by

 <td>
                    <a href="<?php echo current_url(); ?>?sort=no&dir=<?php echo (($dir == 'asc' ) ? 'desc' : 'asc'); ?>&limit=<?php echo $limit; ?>&offset=<?php echo $offset; ?><?php echo $filter; ?>"><?php echo lang('users col no'); ?></a>
                    <?php if ($sort == 'no') : ?><span class="glyphicon glyphicon-arrow-<?php echo (($dir == 'asc') ? 'up' : 'down'); ?>"></span><?php endif; ?>
                </td>
  <?php if ($total) : ?>
                <?php $i = 1;
                 foreach ($users as $user) : ?>
                    <tr>
                        <td<?php echo (($sort == 'no') ? ' class="sorted"' : ''); ?>>
                            <?php echo $i; ?>
                        </td>
                        <td<?php echo (($sort == 'id') ? ' class="sorted"' : ''); ?>>
                            <?php echo $user['id']; ?>
                        </td>
                        <td<?php echo (($sort == 'username') ? ' class="sorted"' : ''); ?>>
                            <?php echo $user['username']; ?>
                        </td>
                        <td<?php echo (($sort == 'first_name') ? ' class="sorted"' : ''); ?>>
                            <?php echo $user['first_name']; ?>
                        </td>
                        <td<?php echo (($sort == 'last_name') ? ' class="sorted"' : ''); ?>>
                            <?php echo $user['last_name']; ?>
                        </td>
                        <td<?php echo (($sort == 'status') ? ' class="sorted"' : ''); ?>>
                            <?php echo ($user['status']) ? '<span class="active">' . lang('admin input active') . '</span>' : '<span class="inactive">' . lang('admin input inactive') . '</span>'; ?>
                        </td>
                        <td<?php echo (($sort == 'is_admin') ? ' class="sorted"' : ''); ?>>
                            <?php echo ($user['is_admin']) ? lang('core text yes') : lang('core text no'); ?>
                        </td>
                        <td>
                            <div class="text-right">
                                <div class="btn-group">
                                    <?php if ($user['id'] > 1) : ?>
                                        <a href="#modal-<?php echo $user['id']; ?>" data-toggle="modal" class="btn btn-danger" title="<?php echo lang('admin button delete'); ?>"><span class="glyphicon glyphicon-trash"></span></a>
                                    <?php endif; ?>
                                    <a href="<?php echo $this_url; ?>/edit/<?php echo $user['id']; ?>" class="btn btn-warning" title="<?php echo lang('admin button edit'); ?>"><span class="glyphicon glyphicon-pencil"></span></a>
                                </div>
                            </div>
                        </td>
                    </tr>
                <?php 
                $i++;
                endforeach; ?>
            <?php else : ?>
                <tr>
                    <td colspan="7">
                        <?php echo lang('core error no_results'); ?>
                    </td>
                </tr>
            <?php endif; ?>

then i try sorting is error found,

A Database Error Occurred

Error Number: 1054

Unknown column 'no' in 'order clause'

SELECT SQL_CALC_FOUND_ROWS * FROM users WHERE deleted = '0' ORDER BY no asc LIMIT 0, 10

Filename: models/Users_model.php

Line Number: 57

I think it because sorting method by calling database. how made sorting number without querying from database?

404 page not found

After success installation of CI3 Fire Starter I try to login but Page shownme 404 page not found in addition same with contact ,admin deshbord . Only home page working fine .
Screenshot_20210428-002040
Screenshot_20210428-002024

.

Composer problem

Hi
I Wanted to install https://github.com/yidas/codeigniter-model with composer on this project.
After installing that and activating composer_autoload ($config['composer_autoload'] = true;)
Public_Controller (and Private_Controller and Admin_controller &... ) not included.
error:
( ! ) Fatal error: Class 'Public_Controller' not found in /media/global/wamp/www/ci3/application/controllers/Welcome.php on line 3

Call Stack

1 | {main}( ) | .../index.php:0
2 | require_once( '/media/global/wamp/www/ci3/system/core/CodeIgniter.php' ) | .../index.php:325
3 | require_once( '/media/global/wamp/www/ci3/application/controllers/Welcome.php' ) | .../CodeIgniter.php:411

A PHP Error was encountered
Severity: Error
Message: Class 'Public_Controller' not found
Filename: controllers/Welcome.php
Line Number: 3

routing not works properly;

have to include /index.php/

at PHP 7.2.1 in development environment, ERROR - 2019-02-17 15:47:18 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/c3fire/application/config/config.php:526) /Applications/MAMP/htdocs/c3fire/system/core/Common.php 564
in production environment, routing have to add /index.php/ after the domain

language menu is empty

hi,
i appreciate ur effort on this project, i installed its really good but i have a problem on my local machine with it that as i mentioned in title the language menu is empty in the top nav bar and in the profile menu. i add core language of codeigniter and it didn't change. please tell me if im wrong or ots a bug in the fire-starter.
here is two screenshot may be help:
http://i63.tinypic.com/mw65hd.jpg
http://i65.tinypic.com/1z4z8tc.jpg

--update:
by the way now i checked ihe log and it saids:
ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 82
ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 102
ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 144

thanks a lot
sincerely
bye

Issue in set_template

Hi,
It seams set_template does not work, I've used
$this->set_template('fullwith');
before:
$this->load->view
and i get following error:

Unable to load the requested file: ../../htdocs/themes/default/fullwith.php

Note: I created fullwith.php file in htdocs/themes/default

Regards

Database

Hi,

I think the database isn't updated yet. While setting up i get the following error.

Error Number: 1146
Table 'firestarter.login_attempts' doesn't exist
DELETE FROM login_attempts WHERE attempt < '2016-03-02 10:36:35'
Filename: models/Users_model.php
Line Number: 425

Can you upload it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.