-
Notifications
You must be signed in to change notification settings - Fork 11
General Snippets
This snippets are for general purppose and not related to any class or package inside codeigniter.
cicontroller
It creates a base code for a controller. If the file was previously saved, it will take the file name for the path in the final comment at the end of the controller.
cimodel
Creates a base code for a basic model.
cihelper
Creates a base code for a custom helper. You can specify the name and the params on the base documentation generated.
cigitignore
This is a snippets that creates a gitignore file with some default contents:
*/config/development
*/logs/log-*.php
*/logs/!index.html
*/cache/*
*/cache/!index.html
cihtaccess
For apache users, this helps to create a default .htaccess file to use friendly urls.
ciphp
This adds the first line tag used on the php files to avoid execution.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');