Vframe은 개발자로서의 삶을 많은 재미와 스트레스없이 만들기 위해 제작 된 PHP MVC 프레임 워크입니다. VFrame은 또한 API를 효율적이고 스트레스가 많은 방식으로 쉽게 쓸 수있는 편안한 API를 제공합니다. 날 믿어! 이것은 내가 함께 일한 것 중 가장 멋진 편안한 API 중 하나입니다! :) vframe은 중소형 엔터프라이즈 애플리케이션에 적합합니다.
vframe이 제공하는 것
시작하기
MVC 프레임 워크 정보
컨트롤러 생성
예
공동 작업
편안한 API.
코드 재사용.
모듈성.
쉽고 역동적 인 웹 인터페이스를 허용하는 레이아웃.
데이터베이스 추상화.
유용한 수업과 방법이 많이 있습니다.
프로젝트의 다양한 경로에 대한 상수.
훌륭한 오류 핸들러.
클래스 자동 로더.
상자에 대한 권리 자산 및 리소스.
.htaccess 개인 파일에 대한 무단 액세스를 방지합니다.
멋진 프로그래밍 경험.
쉬운 버그 트레이스.
코드 조직의 네임 스케이킹.
경량 개발.
다른 많은 것 중 ...
git clone https://github.com/victor-iyiola/vFrame.git 또는 zip을 웹 서버 디렉토리 (예 : htdocs )로 다운로드하십시오.cd path/to/project 변경하십시오.vFrame/app/libs/config.ini 에있는 config.ini 파일을 엽니 다.project_path 적절하게 변경하고 데이터베이스 구성을 변경하십시오.localhost/vFrame/ 입력하십시오 (서버 설정에 따라 적절하게 변경해야 함).vframe 은 MVC 프레임 워크로, 뷰가 모델에서 구분되며 둘 다 컨트롤러를 통해 정보를 전달합니다. MVC (또는 Model View Controller)는 갱단이 만든 디자인 패턴 중 하나입니다.
vFrame/app/controllers 에서 새 PHP 클래스를 만듭니다.Controller (예 : HomeController , AboutController , FrequentlyAskedQuestionController QuestionController로 끝나야합니다.vFrame/app/core/Controller.php 에 위치한 슈퍼 클래스 Controller 확장해야합니다.AppLibsController 확장 한 후에는 Abstract Method index() 무시해야합니다. 새 PHP 클래스를 작성하고 이름을 지정 HomeController.php
<?php
/**
* @author
* Created by victor.
* A.I. engineer & Software developer
* [email protected]
* On 06 09, 2017 @ 3:45 PM
* Copyright victor © 2017. All rights reserved.
*/
namespace App Controllers ;
use App Core Controller ;
class HomeController extends Controller
{
/**
* HomeController constructor.
*/
public function __construct ()
{
parent :: __construct ();
$ this -> view -> title = " Home " ; // the title of the page
$ this -> view -> css = [ " home " ]; // loads a custom css file (home.css)
}
/**
* Controller responsible for "/" or home page
*
* @credits Victor I. Afolabi <[email protected]>
* @endpoint localhost/vFrame/
*/
public function index ()
{
// renders the home view located @ vFrame/app/views/home/index.php
$ this -> view -> render ( ' home/index ' );
}
/**
* Controller responsible for "/about"
*
* @credits Victor I. Afolabi <[email protected]>
* @endpoint localhost/vFrame/about
*/
public function about ()
{
// renders the about view located @ vFrame/app/views/home/about.php
$ this -> view -> render ( ' home/about ' );
}
/**
* Controller responsible for "/contact"
*
* @credits Victor I. Afolabi <[email protected]>
* @endpoint localhost/vFrame/contact
*/
public function contact ()
{
// renders the contact view located @ vFrame/app/views/home/contact.php
$ this -> view -> render ( ' home/contact ' );
}
}더 많은 예를 보려면 예제 지점을 확인할 수 있습니다.
주저하지 말고 풀 요청을 보내십시오. 모든 제안과 협업에 열려 있습니다. 여기를 클릭하여 메일을 촬영할 수도 있습니다.