...
posted on 16 May 2008 00:35 by mypeace

php.ini
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
CI Part 1
ที่Config->routes.php
เพื่อเรียก
$route['default_controller'] = "blog";
ส่วนควบคุม ไปเรียกหน้า view->blog_view.php
-ส่งข้อมูล array $data ไปด้วย
<?php
class blog extends Controller {
function blog()
{
parent::Controller();
}
function index()
{
$data['title']="my blog title";
$data['heading']="my blog heading";
$data['todo'] = array('clean house','eat lunch','call mom');
$this->load->view('blog_view',$data);
}
}
?>
หน้า view->blog_view แสดงผล
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body>
<h1><?php echo $heading?></h1>
<ol>
<?php foreach($todo as $item): ?>
<li><?php echo $item; ?></li>
<?php endforeach; ?>
</ol>
</body>
</html>
---------------------------------------------------------------------------------------------------
กำ พิมพ์เป็นหน้า กด publish แล้วหายหมดเลย
งั้นลงแค่นี้พอ หมดอารม เขียนใหม่ละ - -"
------------------------------------------------
ข้อมูลจาก wiki
DFD tools
It's every day I'm in this place
I feel this way I feel the same
It's every day I'm in this place
I feel this way I feel the same
Is it all inside my head
Is it all inside my head
I'll view the list
And take my pick
I view my faith
And make a choice
'Cause it's nobody else's but mine
**But you are in my heart
I can feel your beat
And you move my mind
From behind the wheel
When I lose control
I can only breathe your name
I can only breathe your name
So many days within this race
I need the truth I need some grace
I need the path To find my place
I need some truth I need some grace
The part of you That's part of me
We'll never die We'll never leave
And it's nobody else's but mine
You'll view the list
And take your pick
You'll view my faith
And make a choice
'Cause it's nobody else's but yours