Category Archives: programming

CodeIgniter vs Laravel

I’ve been using laravel for years already. Now I need to move to Laravel and I need strong reasons why I should.

Here I compiled some

  1. Laravel is truly OOP
  2. The ORM (eloquent) in Laravel is really powerful
  3. Can tune the speed with cache and queue
  4. Artisan command that really help doing job faster – e.g. creating controllers, models, run migration (database) etc.
  5. Migration that acts like database version control for the development team
  6. RESTful resource controllers
  7. Many available packages developed by other programmers that can be used
  8. More support, community, references. e.g. laracasts.com, laravel.io
  9. Powerful routes
  10. Class autoloading?

And below are the articles you may wan to read that are also my reference to the above points.

  1. laravel vs CI. A difficult choice

R&D List – Things to learn

Things to explore, study, learn

  • AWS – EC2, RDS, S3 – to set up a complete application platform and see how flexible and easy to manage
  • how to sync database updates among programmers just what git does for source codes
  • git stashes, submodules and subtrees
  • update svn from production server
  • push to deploy with git to production server (from gitlab)

Others:

Simple datatables.net code

This is just a basic code to use datatables.

Important components in the code:

  1. include of js, css on top
  2. declaring ‘thead’ tag
  3. declaring ‘id’ of the table to be same as called in js at the bottom
  4. include js script at the bottom

or can refer here for code

 

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">
<script src="https://code.jquery.com/jquery-1.12.3.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
 
<h1>A List</h1>
 
<table id="myTable" class="display" cellspacing="0" border="1">
    <thead>
        <tr>
            <th>org</th>
            <th>session</th>
            <th>total</th>
        </tr>
    </thead>
 
    <?php
    $counter = 0;
 
    foreach ($branch_list as $row) {
    ?>
    <tr>
        <td><?php echo $row->orgname; ?></td>
        <td><?php echo $row->sessionname; ?></td>
        <td><?php echo $row->total_student; ?></td>
    </tr>
    <?php } ?>
</table>
 
<script>
$(document).ready(function() {
    $('#myTable').DataTable();
} );
</script>