Skip to content

Commit

Permalink
a little clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Owura authored and Owura committed Jul 17, 2017
1 parent 125462b commit 4372033
Show file tree
Hide file tree
Showing 54 changed files with 921 additions and 219 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,32 @@ application/logs/*

composer.lock

/user_guide/
user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*

/vendor/

/node_modules

/storage/cache/*
!storage/cache/index.html
!storage/cache/.htaccess

/storage/logs/*
!storage/logs/index.html
!storage/logs/.htaccess

#.env

# IDE Files
#-------------------------
/nbproject/
.idea/*
.vscode/*
.editorconfig

## Sublime Text cache files
*.tmlanguage.cache
Expand Down
11 changes: 11 additions & 0 deletions app/Interfaces/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>

<p>Directory access is forbidden.</p>

</body>
</html>
81 changes: 81 additions & 0 deletions app/controllers/AppController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
*
*/
class AppController extends CI_Controller
{
/**
* Display a listing of the resource.
* GET /appcontroller
*/
public function index()
{
echo "hello";
}

/**
* Display the specified resource.
* GET /appcontroller/get/{id}
*
* @param int $id
*/
public function get($id)
{

}

/**
* Show the form for creating a new resource.
* GET /appcontroller/create
*/
public function create()
{

}

/**
* Store a newly created resource in storage.
* POST /appcontroller/store
*/
public function store()
{

}

/**
* Show the form for editing the specified resource.
* GET /appcontroller/edit/{id}
*
* @param int $id
*/
public function edit($id)
{

}

/**
* Update the specified resource in storage.
* PUT /appcontroller/update/{id}
*
* @param int $id
*/
public function update($id)
{

}

/**
* Remove the specified resource from storage.
* DELETE /appcontroller/delete/{id}
*
* @param int $id
*/
public function delete($id)
{

}
}

/* End of file AppController.php */
/* Location: ./app/controllers/AppController.php */
10 changes: 0 additions & 10 deletions app/controllers/Users.php

This file was deleted.

3 changes: 3 additions & 0 deletions app/views/appcontroller/create.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>APPCONTROLLER#CREATE</h1>

<p>Find me in <pre>app/views/create.php</pre></p>
3 changes: 3 additions & 0 deletions app/views/appcontroller/edit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>APPCONTROLLER#EDIT</h1>

<p>Find me in <pre>app/views/edit.php</pre></p>
3 changes: 3 additions & 0 deletions app/views/appcontroller/get.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>APPCONTROLLER#GET</h1>

<p>Find me in <pre>app/views/get.php</pre></p>
3 changes: 3 additions & 0 deletions app/views/appcontroller/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>APPCONTROLLER#INDEX</h1>

<p>Find me in <pre>app/views/index.php</pre></p>
11 changes: 0 additions & 11 deletions app/views/users.php

This file was deleted.

11 changes: 0 additions & 11 deletions app/views/workers.php

This file was deleted.

10 changes: 5 additions & 5 deletions cli/Commands/Console.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Craftsman\Commands;
namespace CLI\Commands;

use Craftsman\Core\Command;
use Craftsman\Core\Codeigniter;
use CLI\Core\Command;
use CLI\Core\Codeigniter;
use Psy\Configuration;
use Psy\Shell;

Expand All @@ -11,9 +11,9 @@
/**
* Console Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Console extends Command
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Generators/Controller.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Generators;
namespace CLI\Commands\Generators;

use Craftsman\Core\Generator;
use CLI\Core\Generator;

/**
* Generator\Controller Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Controller extends Generator implements \Craftsman\Interfaces\Command
class Controller extends Generator implements \CLI\Interfaces\Command
{
protected $name = 'generate:controller';
protected $description = 'Generate a Controller';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Generators/Migration.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php
namespace Craftsman\Commands\Generators;
namespace CLI\Commands\Generators;

use Craftsman\Core\Generator;
use CLI\Core\Generator;
use Symfony\Component\Console\Input\InputOption;

/**
* Generator\Migration Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Migration extends Generator implements \Craftsman\Interfaces\Command
class Migration extends Generator implements \CLI\Interfaces\Command
{
protected $name = 'generate:migration';
protected $description = 'Generate a Migration';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Generators/Model.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Generators;
namespace CLI\Commands\Generators;

use Craftsman\Core\Generator;
use CLI\Core\Generator;

/**
* Generator\Model Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Model extends Generator implements \Craftsman\Interfaces\Command
class Model extends Generator implements \CLI\Interfaces\Command
{
protected $name = 'generate:model';
protected $description = 'Generate a Model';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Generators/Seeder.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Generators;
namespace CLI\Commands\Generators;

use Craftsman\Core\Generator;
use CLI\Core\Generator;

/**
* Generator\Seeder Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Seeder extends Generator implements \Craftsman\Interfaces\Command
class Seeder extends Generator implements \CLI\Interfaces\Command
{
protected $name = 'generate:seeder';
protected $description = 'Generate a Seeder';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Migrations/Info.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php
namespace Craftsman\Commands\Migrations;
namespace CLI\Commands\Migrations;

use Craftsman\Core\Migration;
use CLI\Core\Migration;
use Symfony\Component\Console\Helper\TableSeparator;

/**
* Migration\Info Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Info extends Migration implements \Craftsman\Interfaces\Command
class Info extends Migration implements \CLI\Interfaces\Command
{
protected $name = 'migrate:info';
protected $description = 'Display the current migration scheme';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Migrations/Latest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Migrations;
namespace CLI\Commands\Migrations;

use Craftsman\Core\Migration;
use CLI\Core\Migration;

/**
* Migration\Latest Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Latest extends Migration implements \Craftsman\Interfaces\Command
class Latest extends Migration implements \CLI\Interfaces\Command
{
protected $name = 'migrate:latest';
protected $description = 'Run the latest migration';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Migrations/Refresh.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Migrations;
namespace CLI\Commands\Migrations;

use Craftsman\Core\Migration;
use CLI\Core\Migration;

/**
* Migration\Refresh Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Refresh extends Migration implements \Craftsman\Interfaces\Command
class Refresh extends Migration implements \CLI\Interfaces\Command
{
protected $name = 'migrate:refresh';
protected $description = 'Rollback all migrations and run them all again';
Expand Down
10 changes: 5 additions & 5 deletions cli/Commands/Migrations/Reset.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Craftsman\Commands\Migrations;
namespace CLI\Commands\Migrations;

use Craftsman\Core\Migration;
use CLI\Core\Migration;

/**
* Migration\Reset Command
*
* @package Craftsman
* @package CLI
* @author David Sosa Valdes
* @link https://github.com/davidsosavaldes/Craftsman
* @link https://github.com/davidsosavaldes/CLI
* @copyright Copyright (c) 2016, David Sosa Valdes.
*/
class Reset extends Migration implements \Craftsman\Interfaces\Command
class Reset extends Migration implements \CLI\Interfaces\Command
{
protected $name = 'migrate:reset';
protected $description = 'Rollback all migrations';
Expand Down
Loading

0 comments on commit 4372033

Please sign in to comment.