Skip to content

Avenir

A blog about web

  • Laravel tutorials
    • Laravel 9 – How to use same form for create and update data
  • CodeIgniter Tutorials
    • CodeIgniter 4
    • Learn CodeIgniter 3 in small steps
      • Step 1: First contact – What is MVC and what is CodeIgniter
      • Step 1.1: Again about MVC and CodeIgniter – The controllers
      • Step 1.2: Again about MVC and CodeIgniter – The views
      • Step 1.3: Again about MVC and CodeIgniter – The models
      • Step 2: Set up the environments
      • Step 3: Set up the database that will be used by CodeIgniter
      • Step 4 – Removing the index.php from the URL and allow the use of “search-engine friendly” URLs
      • Step 5 – Final settings. Finishing the configuration of your CodeIgniter
      • Step 6 – Verify CodeIgniter configuration. Is everything OK?
      • Step 7 – Using CodeIgniter and Composer – with a real world example
      • Step 8 (optional) – Using sessions with database in CodeIgniter
      • Step 9 – No more MY_Controller monopoly. How you can create more than one base controller
      • Step 10 – Make your first library: a breadcrumb generator
      • Step 11 – Creating and working with the famous MY_Controller
      • Step 12 – Creating and using page templates in CodeIgniter
      • Step 13 – Uploading multiple files (images) in CodeIgniter
      • Step 14 – Crop and resize uploaded images in CodeIgniter
      • Step …n…: Moving application and system folder to safety
    • Create a CMS using CodeIgniter 3
      • Step 1 – Create an admin area in CodeIgniter 3
      • Step 2 – Create a template for admin area
      • Step 3 – Securing the admin area with Ion Auth library – first, the settings
      • Step 3.1 – Creating the login and logout page with Ion Auth
      • Step 3.2 – Administer groups with Ion Auth
      • Step 3.3 – Administer users with Ion Auth
      • Step 3.4 – Creating the profile page with Ion Auth
      • Step 4 – Create a multilanguage site with CodeIgniter
      • Step 4.1 – Create the admin area for a multilanguage site in CodeIgniter
      • Step 4.2 – Set up the language for a multilanguage site in CodeIgniter
      • Step 4.3 – Use “personalized” controllers and methods for a multilanguage site in CodeIgniter
      • Step 4.4 – Returning to our MY_Controller. Doing everything that needs to be done for better working with languages
      • Step 5 – Administer static pages for our multilanguage CMS – creating the pages
      • Step 5.1 – Administer static pages for our multilanguage CMS – listing the created pages
      • Step 5.2 – Administer static pages for our multilanguage CMS – editing the pages
      • Step 5.3 – Administer static pages for our multilanguage CMS – deleting the pages
      • Step 6 – Creating categories for a multilanguage site in CodeIgniter
      • Step 7 – Using the language files for a multi-language site in CodeIgniter
      • Step 8 – Putting it all together. How do visitors access our pages
    • Authentication system with Ion Auth and CI3
      • Let’s install Ion Auth library
      • Register users using Ion Auth in CodeIgniter 3
      • Login using Ion Auth and AJAX in CodeIgniter
      • Alter the way Ion Auth works by using hooks. Get a gravatar after the user logs in
      • Login (and register) with Facebook and Ion Auth
  • Fat-Free Framework Tutorials
    • 1. Installing Fat Free Framework
    • 2. Moving logic to controllers
    • 3. Creating a configuration file
    • 4. Moving the Routes in a file
    • 5. Returning to routes and how to work with them
    • 6. Organising controllers in subfolders, routes and namespacing
    • 7. Enter the Views. How to separate logic from presentation in F3
    • 8. Using the templating engine of the framework

Forms? Keep the validation rules inside the model

  • Codeigniter
February 14, 2014May 15, 2014 avenirer 2 comments

As always, when talking about forms we also talk about validation. For a long time I’ve validated the forms inside the controllers because it is […]

Continue reading

Codeigniter: My MY_Model or “How not to repeat yourself”

  • Codeigniter
December 5, 2013December 5, 2013 avenirer 9 comments

Often times I find myself doing the same queries over and over again for each table used by an application. This is why I needed to […]

Continue reading

A new book about CodeIgniter from Packt Publishing

  • Codeigniter
October 28, 2013December 10, 2013 avenirer 3 comments

The CodeIgniter community is still thriving, despite the recent events at EllisLab (http://ellislab.com/blog/entry/ellislab-seeking-new-owner-for-codeigniter). A 3.0 version is in the works down at GitHub and a […]

Continue reading

Codeigniter – Connect to two different (multiple) databases

  • Codeigniter
September 26, 2013January 15, 2015 avenirer 10 comments

In a job application interview, the employer asked me if I made some “database scalability” in the past. To my shame, I didn’t even understand […]

Continue reading

Codeigniter – Create a CAPTCHA with Sessions using the Codeigniter’s Captcha helper

  • Codeigniter
August 16, 2013December 14, 2014 avenirer 9 comments

Now and then there is the need to create a captcha spam protection to stop spiders from spamming your website’s forms. Codeigniter framework has a […]

Continue reading

CodeIgniter: How to retrieve data from a database

  • Codeigniter
June 18, 2013November 8, 2016 avenirer 25 comments

What is a dynamic site without databases, right? Yesterday someone asked me to make a tutorial about retrieving data from a database using CodeIgniter. As […]

Continue reading

CodeIgniter: How to export data to Excel file

  • Codeigniter
April 10, 2013November 1, 2013 avenirer 15 comments

I will assume that you know how to use CodeIgniter, know what controllers, models and views are and what they do. If you don’t know […]

Continue reading

PDO Tutorial – 04: Running simple SELECT using PDO

  • Uncategorized
February 1, 2013December 10, 2013 avenirer No comments

There are more ways to retrieve data from a database using PDO. The shortest way, but in my opinion, the too long to remember every […]

Continue reading

Confirm box in javascript: Are you sure you want to delete?

  • Uncategorized
January 29, 2013December 10, 2013 avenirer No comments

We’ve been there. To click by mistake a link or a button which deletes an information and not to be asked if I am sure […]

Continue reading

Prevent website directory listing with .htaccess

  • Uncategorized
January 27, 2013December 10, 2013 avenirer No comments

What is directory listing? There are those embarassing moments in life when you feel naked when someone sees at you something they aren’t suppose to […]

Continue reading

Posts pagination

«Previous Posts 1 … 4 5 6 7 Next Posts»
  • English
  • Română

Categories

  • Arduino
  • Codeigniter
  • CodeIgniter 4
  • Copy/Paste
  • Good to know
  • Javascript
  • Laravel
  • PHP
  • SEO
  • Uncategorized
  • WordPress

Did you think of buying me some coffee for these GREAT TUTORIALS?

You can also buy me a gift on Amazon

My Github repos

  • CodeIgniter MY_Model
  • Basic CI app with Ion Auth and Bootstrap
  • CodeIgniter multilanguage site
  • CodeIgniter MY_Upload Library
  • CodeIgniter Image_nation Library
  • CodeIgniter Breadcrumb Library
  • CodeIgniter Configuration Verifier
  • Assetor
  • CodeIgniter Matches CLI
  • AValidator

Blogroll

  • CV-ul meu

Search

Tags

.htaccess array arrays captcha cli codeigniter composer cookbook database Eloquent form validation image image manipulation Jamie Rumbelow laravel library matches menu model event models multi-level multiple files my_model my_upload objects php recaptcha recursive function rob foster route swift mailer swiftmailer upload url validation validation rules
WordPress Theme: Occasio by ThemeZee.