PHP, Laragon, CodeIgniter 3

Overview

1 - PHP, CODEIGNITER.

CodeIgniter.

  • O que é o CodeIgniter?
  • Requisitos necessários para seguir o curso.
  • Requisitos de software.
  • Algumas notas sobre a sequência das aulas.

O que é o CodeIgniter ?.

  • É uma framework de PHP (padrão MVC).
  • Ocupa muito pouco espaço (2.5MB).
  • Solução interessante para quem quer começar a desenvolver rapidamente.
  • Permite criar aplicações web de larga escala.
  • Poucas configurações iniciais e não requer uso de linhas de comando.
  • Não necessita de um pré-compilador de PHP (template language).
  • Requisitos básicos de servidor web (PHP 5.1+, MySQL).
  • Curva de aprendizagem simples.

Requisitos necessários.

  • Bons conhecimentos de HTML, CSS.
  • Conhecimentos sólidos de PHP, OOP, SQL.
  • Conhecimentos de base de dados (MySQL).
  • Bom domínio o editor de código a utilizar.

Requisitos software.

  • Servidor web local (Laragon).
  • Editor de código (Visual Studio Code).
  • (Opcional) Um programa de edição de imagem.
  • Browser para testar as aplicações web.

2 - O que é o padrão MVC.

MVC-Model + View + Controller.
    MODEL -> Dados.

    VIEW -> Apresentação/Visualização.

    CONTROLLER -> Lógica da aplicação.

3 - Instalação do software necessário.

CodeIgniter.

Laragon.

Visual Studio Code.

4 - CodeIgniter Configurações do VS Code para CodeIgniter.

  • Vscode extenções
    • Vscode-icons.
    • PHP IntelliSense.
    • PHP intellisense for codeigniter.
    • Lorem ipsum.

5 - CodeIgniter Criação de um projeto CodeIgniter.

FontAwesome

6 - CodeIgniter Estrutura de pastas e arquivos do CodeIgniter.

  • Ex: app_02

7 - Como esconder pastas e ficheiros no VS Code.

  • Ex: app_03

  • Vscode: preferences/settings, "files.exclude": { ... }.

  • "**/index.html": true,

8 - Fluxo de execução do CodeIgniter.

  • Ex: app_04
  index.php ->  Application/config/routes.php ->  Welcome controller ->  Welcome_message
  • Carrega as configurações iniciais da aplicação e procura a route de inicio.
  • No ficheiro routes.php está indicado o controller inicial.
  • O siatema vai procurar o controller indicado na pasta controllers.
  • O controller welcome, através do método index, solicita a apresentação da view welcome_message.

9 - Primeiro exercício Relação entre Controllers e Views.

  • Ex: app_05

10 - Fisionomia de um Controller e Views dentro de pastas.

  • Ex: app_06

11 - Controllers com mais métodos e Controllers em subpastas.

  • Ex: app_07

  • Localhost - http://localhost/CodeIgniter-3/app_07/index.php/inicio/outra

  • Localhost - http://localhost/CodeIgniter-3/app_07/index.php/inicio/outra_fun

  • F - http://localhost/CodeIgniter-3/app_07/socios/novo/

  • F - http://localhost/CodeIgniter-3/app_07/socios/novo/outra_pg

You might also like...
A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

A multithreaded application server for PHP, written in PHP.

appserver.io, a PHP application server This is the main repository for the appserver.io project. What is appserver.io appserver.io is a multithreaded

Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP

Lodash-PHP Lodash-PHP is a port of the Lodash JS library to PHP. It is a set of easy to use utility functions for everyday PHP projects. Lodash-PHP tr

A PHP 5.3+ and PHP 7.3 framework for OpenGraph Protocol

Opengraph Test with Atoum cd Opengraph/ curl -s https://getcomposer.org/installer | php php composer.phar install --dev ./vendor/atoum/atoum/bin/atoum

A status monitor for Elite Dangerous, written in PHP. Designed for 1080p screens in the four-panel-view in panel.php, and for 7 inch screens with a resolution of 1024x600 connected to a Raspberry Pi.

EDStatusPanel A status monitor for Elite Dangerous, written in PHP. Designed for 1080p screens in the four-panel-view in panel.php, and for 7 inch scr

🐘 A probe program for PHP environment (一款精美的 PHP 探針, 又名X探針、劉海探針)

Simplified Chinese | 简体中文 Traditional Chinese(Taiwan) | 正體中文(臺灣) Traditional Chinese(Hong Kong) | 正體中文(香港) Japanese | 日本語 😎 X Prober This is a probe

PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language

php-text-analysis PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP l

PHP generics written in PHP

PHP generics written in PHP Require PHP = 7.4 Composer (PSR-4 Autoload) Table of contents How it works Quick start Example Features Tests How it work

PHP exercises from my course at ETEC and some of my own play-around with PHP

etec-php-exercises PHP exercises from my course at ETEC and some of my own play-around with PHP Translations: Português (BR) Projects Project Descript

Owner
Daniel Oliveira
Front-end Web Development
Daniel Oliveira
Alpine MySql PHP Tailwind - Codeigniter 4 & Smarty

AMPT-CI Alpine MySql PHP Tailwind - Codeigniter 4 & Smarty What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, fle

Waan Solutions 6 Sep 28, 2022
Midtrans Payment API CodeIgniter 4

⚠️ ⚠️ ANNOUNCEMENT ⚠️ ⚠️ Please use the updated and composer compatible library: Midtrans PHP. For better more modern composer compatibility. This rep

Fadhlurrahman 2 Dec 8, 2022
A research raw data repository for researchers of Arba Minch University built using Codeigniter which follows MVC architecture. The front-end is build using Bootstrap.

Arba Minch University Dataset Repository This system is a research dataset repository for Arba Minch University researchers and is build using Codeign

Wuletaw Wonte 8 Jul 1, 2022
It's a CodeIgniter Library for Captcha Generation. With additional Flexibility .

Original Source : Pavel Tzonkov <[email protected]> Source Link : http://gscripts.net/free-php-scripts/Anti_Spam_Scripts/Image_Validator/d

Chris # 4 Sep 2, 2022
Friendly open source CMS forged on Codeigniter 3. FI v1.x uses the old lite theme and all modules.

ForgeIgniter v1.x - CI-3.x Friendly open source CMS forged on Codeigniter 3 This version is now discontinued, please check version 2 or 3 for updates.

ForgeIgniter 1 Jan 28, 2022
CodeIgniter 4 Development

CodeIgniter 4 Development What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More informatio

Gad Iradufasha 2 Sep 22, 2022
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

Ernest Buffington 7 Aug 28, 2022
A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

null 272 Dec 22, 2022
PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

Benoit Jacquemont 994 Dec 29, 2022