Heya people!
Today im going to share LitePHP with you as a pre release so i can get some feedback!
IF your unsure how to do something within the framework then please ask ill explain how to accomplish it!
If you can provide feedback that would be great if not you can just download it and have play
Ok heres the download link
MediaFire 28.0KB
Compressed (rar): 28.0 KB
Uncompressed: 172 KB
MD5: 92C11D4A6E1F6E89AEF7088150F2C8B5
Sample Application
Mediafire
Take a look at the following files
/index.php
/system/applications/welcome/controllers/index.php
/system/applications/welcome/views/index.php
Hope i can get some feedback on this!
--
Programming Rules
Controllers HAVE to be pretended with Controller_
Models HAVE to be pretended with Model_
For access to View / Input / Model .. you need to extend the controller like
Within templates you can use things like
the $this->inc() function includes a another template file into the main template
and the $this->url creates an url pretended with base_url in your config file
Today im going to share LitePHP with you as a pre release so i can get some feedback!
IF your unsure how to do something within the framework then please ask ill explain how to accomplish it!
If you can provide feedback that would be great if not you can just download it and have play
Ok heres the download link
MediaFire 28.0KB
Compressed (rar): 28.0 KB
Uncompressed: 172 KB
MD5: 92C11D4A6E1F6E89AEF7088150F2C8B5
Sample Application
Mediafire
Take a look at the following files
/index.php
/system/applications/welcome/controllers/index.php
/system/applications/welcome/views/index.php
Hope i can get some feedback on this!
--
Programming Rules
Controllers HAVE to be pretended with Controller_
Models HAVE to be pretended with Model_
For access to View / Input / Model .. you need to extend the controller like
PHP:
class Controller_hello extends Controller
{
public function index()
{
/*
* Will be run http://site.tld/hello
* and http://site.tld/hello/index
*/
$this->View->Assign('id',22); // in template $this->key
$this->View->Output('home/index'); // will compile and output views/home/index.php
}
}
Within templates you can use things like
PHP:
<html>
<?php $this->inc('sections/head')?>
<body>
Some Link<?php echo $this->url('downloads','view',$this->id) ?>
</body>
</html>
the $this->inc() function includes a another template file into the main template
and the $this->url creates an url pretended with base_url in your config file