From d6ae0453aabe9fbe3537683f58a132da0d763278 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Sat, 10 Jul 2021 20:10:53 -0300 Subject: [PATCH] Few changes on readme --- README.md | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9c30163..e0fedf7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Phacil-framework - ![GitHub](https://img.shields.io/github/license/exacti/phacil-framework.svg) ![GitHub top language](https://img.shields.io/github/languages/top/exacti/phacil-framework.svg) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/exacti/phacil-framework.svg) ![GitHub issues](https://img.shields.io/github/issues/exacti/phacil-framework.svg) ![PHP Version](https://img.shields.io/badge/php-%3E%3D5.4.20-blue.svg) ![GitHub last commit](https://img.shields.io/github/last-commit/exacti/phacil-framework.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/exacti/phacil-framework.svg) ![GitHub release](https://img.shields.io/github/release/exacti/phacil-framework.svg) + ![GitHub](https://img.shields.io/github/license/exacti/phacil-framework.svg) ![GitHub top language](https://img.shields.io/github/languages/top/exacti/phacil-framework.svg) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/exacti/phacil-framework.svg) ![GitHub issues](https://img.shields.io/github/issues/exacti/phacil-framework.svg) ![PHP Version](https://img.shields.io/badge/php-%3E%3D5.4.45-blue.svg) ![GitHub last commit](https://img.shields.io/github/last-commit/exacti/phacil-framework.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/exacti/phacil-framework.svg) ![GitHub release](https://img.shields.io/github/release/exacti/phacil-framework.svg) A super easy PHP Framework for web development! @@ -37,6 +37,8 @@ This is a simple Hello World! for this framework. 2. Edit **controller/common/home.php** like that. ```php document->setDescription($description)`; ##### Sample: ```php document->addStyle('pipoca.css'); @@ -357,7 +363,8 @@ In this framework, loaders are a simple way to get resources to use in your PHP For sample, to load a model, is just `$this->load->model('folder/file');` and to use is `$this->model_folder_file->object();`, like this sample: ```php load->model('data/json'); $this->data['totalData'] = $this->model_data_json->total(); @@ -386,6 +393,9 @@ This load is simple and registry to object of origin. ##### Sample: ```php load->database('mpdo', 'localhost', 'root', 'imtheking', 'nameDatabase'); @@ -405,6 +415,8 @@ To create a model, put in the models folder a directory and file with the code. ```php load->model('folder/file'); @@ -473,6 +488,9 @@ Without SEO URL, we invoke a page with *route* get parameter when contains a sch In a sample case, we have this controller: ```php 482, "id" => 221), array("index" => 566, "id" => 328)); @@ -626,13 +647,16 @@ In a sample case, we have this controller: ```php 'blub', 'foo' => 'bar', ); - $xml = new SimpleXMLElement(''); + $xml = new \SimpleXMLElement(''); array_walk_recursive($test_array, array ($xml, 'addChild')); $this->response->addHeader('Content-Type: text/xml'); @@ -664,6 +688,9 @@ Except for the first parameter, the others are optional. ```php registry->set('cripto', $criptoClass); ``` Using in /controler/demo/sample.php ```php test->query("SELECT * FROM mundo"); }