Build Fast your project
- Classes for stability
- Availlable only with Composer : Command :
composer require canaryphp/canaryphp
composer.json
{
"require":{
"canaryphp/canaryphp"
}
}
- After install read :
CanaryPHP START.md
: START.md
- Create Your first page :
- Create secondpage.php in :
./example/webroot/secondpage.php
<?php
require dirname(__DIR__).DIRECTORY_SEPARATOR.'index.php';
CanaryPHP\Load::content();
- Create secondpageController.php in :
./example/controller/secondpageController.php
<?php
function sayhello(){
return 'Hello World !';
}
pass('message',sayhello());
- Create view for secondpage.php in :
./example/template/default/view/secondpage.php
<h1>get('message')</h1>
- Edit home page Content :
- Edit file in :
./example/controller/indexController.php
- Edit view file in :
./example/template/default/view/index.php
- show page content in :
localhost/example/secondpage.php
vendor
folder and thevendor/autoload.php
script are generated by composer ,there are not part from CanaryPHP