...

posted on 16 May 2008 00:35 by mypeace
 

short_open_tag

posted on 11 May 2008 11:36 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

posted on 28 Mar 2008 01:47 by mypeace

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>

---------------------------------------------------------------------------------------------------

Nissan March

posted on 15 Mar 2008 04:54 by mypeace

DFD tools

posted on 11 Mar 2008 08:19 by mypeace

กำ พิมพ์เป็นหน้า กด publish แล้วหายหมดเลย 
งั้นลงแค่นี้พอ  หมดอารม  เขียนใหม่ละ  - -" 
------------------------------------------------
ข้อมูลจาก wiki 

DFD tools

  • CA ERwin Data Modeler, a data modeling tool
  • ConceptDraw, a Windows and MacOS X data flow diagramming tool
  • Dia, a free source diagramming tool with flowchart support
  • Kivio, a free source diagramming tool for KDE
  • Microsoft Visio, a Windows diagramming tool which includes very basic DFD support (Images only, does not record data flows)
  • SILVERRUN ModelSphere, a cross-platform tool for business process modelling and data flow diagramming
  • SmartDraw, a Windows diagraming tool with Yourdon and Coad process notations and Gane and Sarson process notation
  • System Architect, an enterprise architecture tool, supporting Coad/Yourdon, Gane & Sarson, Ward/Mellor, and SSADM notations and techniques
    ----------------------------------------------------------------
     visual-paradigm

Flower

posted on 13 Feb 2008 06:43 by mypeace
 

CI-Pb with the scaffloding

posted on 13 Feb 2008 04:39 by mypeace
CodeIgniter
ปัญหา
http://localhost:8888/CodeIgniter/index.php/blog/index.php/blog/scaffolding/add

วิธีแก้
system/application/config/config.php

- set your the base_url in your config file
$config['base_url'] = "http://localhost/CodeIgniter_1.5.4/";

or  $config['base_url']= http://localhost/CodeIgniter/;

Sixpence none the richer - Breath your Name

posted on 13 Feb 2008 04:16 by mypeace

  

     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

Sixpence None The Richer - Kiss Me

posted on 13 Feb 2008 03:49 by mypeace