You must know that are
-config : Configuration files
-helper : helper for application, contain function that you create
-libraries : Collection of your code.
-errors : Contains template for error display
-hooks : Controlling files load.
-model : Collection of your code
-controller : Controller, control client request to others(view,library... etc)
-view : Template for showing information to user.
simple create test page
1. if your class name is thegreatestpost, you should save your controller file as thegreatestpost.php
<?php
class thegreatestpost extends Controller {
function index()
{
echo 'Hello the greatest post!';
}
}
?>
to view it, www.your-site.com/index.php/thegreatestpost/
if you want controller thegreatestpost is default controller, just edit $route['default_controller'] in config\routes.php as :
$route['default_controller'] = 'thegreatestpost';
and url to view index is www.your-site.com/index.php/
display result will be:
Hello the greatest post!
Add another function,
<?php
class thegreatestpost extends Controller {
function index()
{
echo 'Hello the greatest post!';
}
function greatest()
{
echo 'Hello postmen';
}
}
?>
to view greatest www.your-site.com/index.php/thegreatestpost/greatest/
result view:
Hello postmen
to passing value url to your function simply like this:
function greatest($value1 = "") : url= www.your-site.com/index.php/thegreatestpost/greatest/123
meaning $value1 = 123
function greatest($value1 = "", $value2 = "") :url= www.your-site.com/index.php/thegreatestpost/greatest/123/abc
meaning $value1 = 123, $value2 = abc
more reference visit : http://codeigniter.com/
Showing posts with label platform. Show all posts
Showing posts with label platform. Show all posts
Friday, April 23, 2010
Friday, February 12, 2010
List of web text editor - Open Source(free) and Commercial
These are three the best and free text editor for web. They are LGPL license for web application development.
More reference visit : http://www.geniisoft.com/showcase.nsf/WebEditors
Wednesday, July 15, 2009
CAKE PHP
CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.Release: 1.2.3.8166 Stable
- No Configuration - Set-up the database and let the magic begin
- Extremely Simple - Just look at the name...It's Cake
- Active, Friendly Community - Join us #cakephp on IRC. We'd love to help you get started.
- Flexible License - Distributed under the MIT License
- Clean IP - Every line of code was written by the CakePHP development team
- Best Practices - covering security, authentication, and session handling, among the many other features.
- OO - Whether you are a seasoned object-oriented programmer or a beginner, you'll feel comfortable
You can easily download and research on CakePHP site.
Subscribe to:
Posts (Atom)


