Facebooktwittergoogle_plusredditpinterestlinkedinmail

Getting Started with FuelPHP

FuelPHP is a simple, flexible, community driven PHP 5 web framework. It was born out of the frustrations people have with the current available frameworks and developed with support from a community of developers. FuelPHP is extremely portable, works on almost any server and prides itself on clean syntax.

Installations:-

Follow step by step instruction to Install FuelPHP in your development environment. If your using
Linux then you can install fuelPHP by quick installation using command line.


$ curl get.fuelphp.com/oil | sh
# now that oil is installed, create a blog project in a directory called Sites
$ cd Sites/
$ oil create blog

Manual Installation:-

Manual Installation on Linux using git clone    


$ cd /path/to/your/project-dir/
$ git clone --recursive git://github.com/fuel/fuel.git

Setup fuel PHP on WAMP server:-

Setup using zip file:-

1) Download zip file from official site(fuelphp-1.7.zip).
2) Extract it and copy all files in your project directory (e.g  C:\wamp\www\fuelphp )
fuel-1.png

3) Check http://localhost/fuelphp/public/
fuel-2.png

Default Controller :-

APPPATH/classes/controller/welcome.php.

This view can be found at APPPATH/views/welcome/index.php.

Configurations:-

Setting the Environment :-

Add “SetEnv FUEL_ENV production” in public/.htaccess

SetEnv FUEL_ENV production

Database configurations:-

fuel/app/config/db.php


return array(
// a MySQL driver configuration

'development' => array(
'type'           => 'mysqli',
'connection'     => array(
'hostname'       => 'localhost',
'port'           => '3306',
'database'       => 'fuelphp',
'username'       => 'root',
'password'       => '',
'persistent'     => false,
),
'identifier'   => '`',
'table_prefix'   => '',
'charset'        => 'utf8',
'enable_cache'   => true,
'profiling'      => false,
),
);

Reference:- 

http://fuelphp.com/docs/


Getting Started with FuelPHP Roopendra PHP,
Getting Started with FuelPHP FuelPHP is a simple, flexible, community driven PHP 5 web framework. It was born out of the frustrations people have with the current available frameworks and developed with support from a community of developers. FuelPHP is extremely portable, works on almost any server and prides itself...
<h2>Getting Started with FuelPHP</h2> FuelPHP is a simple, flexible, community driven PHP 5 web framework. It was born out of the frustrations people have with the current available frameworks and developed with support from a community of developers. FuelPHP is extremely portable, works on almost any server and prides itself on clean syntax.<strong>Installations:-</strong>Follow step by step instruction to Install FuelPHP in your development environment. If your using Linux then you can install fuelPHP by quick installation using command line. <pre><code> $ curl get.fuelphp.com/oil | sh # now that oil is installed, create a blog project in a directory called Sites $ cd Sites/ $ oil create blog</code></pre> <strong>Manual Installation:-</strong><strong>Manual Installation on Linux using git clone    </strong> <pre><code> $ cd /path/to/your/project-dir/ $ git clone --recursive git://github.com/fuel/fuel.git</code></pre> Setup fuel PHP on WAMP server:-<strong>Setup using zip file:-</strong>1) Download zip file from official site(fuelphp-1.7.zip). 2) Extract it and copy all files in your project directory (e.g  C:\wamp\www\fuelphp ) fuel-1.png3) Check http://localhost/fuelphp/public/ fuel-2.png<strong>Default Controller :-</strong>APPPATH/classes/controller/welcome.php.This view can be found at APPPATH/views/welcome/index.php.<strong>Configurations:-</strong><strong>Setting the Environment :-</strong>Add "SetEnv FUEL_ENV production" in public/.htaccessSetEnv FUEL_ENV production<strong>Database configurations:-</strong>fuel/app/config/db.php <pre><code> return array( // a MySQL driver configuration'development' => array( 'type'           => 'mysqli', 'connection'     => array( 'hostname'       => 'localhost', 'port'           => '3306', 'database'       => 'fuelphp', 'username'       => 'root', 'password'       => '', 'persistent'     => false, ), 'identifier'   => '`', 'table_prefix'   => '', 'charset'        => 'utf8', 'enable_cache'   => true, 'profiling'      => false, ), );Reference:-http://fuelphp.com/docs/</code></pre>
(Visited 666 times, 12 visits today)
Facebooktwittergoogle_pluslinkedinrss