Changeset 1482
- Timestamp:
- 10/29/2006 06:53:33 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
HISTORY (modified) (2 diffs)
-
UPGRADE (modified) (1 diff)
-
demos/quickstart/protected/pages/GettingStarted/CommandLine.page (modified) (6 diffs)
-
framework/Web/Services/TPageService.php (modified) (1 diff)
-
framework/Web/THttpRequest.php (modified) (1 diff)
-
framework/Web/UI/WebControls/TRepeater.php (modified) (1 diff)
-
index.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/HISTORY
r1467 r1482 14 14 CHG: All validators ClientSide.OnError becomes ClientSide.OnValidationError, and OnError event becomes OnValidationError. (Wei) 15 15 16 17 Version 3.0.5 October 8, 2006 18 =============================== 16 Version 3.0.6 December 4, 2006 17 ============================== 18 CHG: constructUrl() now encodes & into & by default (Qiang) 19 CHG: TRepeater does not render <span> anymore for empty item template (Qiang) 20 21 Version 3.0.5 October 23, 2006 22 ============================== 19 23 BUG: Ticket#409 - Multiple page services will mess up page caching (Qiang) 20 24 BUG: Ticket#417 - SelectedIndex in template incorrect caused by bug in TList (Qiang) … … 24 28 ENH: Ticket#378 - PRADO applications can now run in command line (Qiang) 25 29 ENH: Ticket#379 - TAuthorizationRule performance enhancement (Qiang) 30 ENH: Ticket#382 - Untranslated messages can be marked now (Wei) 26 31 ENH: Ticket#394 - Enhancing TDropDownListColumn to allow specifying both text and value (Qiang) 27 32 ENH: Easier to customize the TDatePicker using CssClass (Wei) -
trunk/UPGRADE
r1467 r1482 22 22 - Validator OnError event becomes OnValidationError. 23 23 24 Upgrading from v3.0.5 25 --------------------- 26 - constructUrl() now encodes & into & by default. 27 - TRepeater does not render <span> anymore for empty item template. 24 28 25 29 Upgrading from v3.0.4 -
trunk/demos/quickstart/protected/pages/GettingStarted/CommandLine.page
r1452 r1482 2 2 <h1 id="501">Command Line Tool</h1> 3 3 <p>The optional <tt>prado-cli.php</tt> PHP script file in the <tt>framework</tt> 4 directory provides command line tools to perform various te ndious taks in Prado.4 directory provides command line tools to perform various tedious takes in Prado. 5 5 The <tt>prado-cli.php</tt> can be used to create Prado project skeletons, create 6 6 initial test fixtures, and access to an interactive PHP shell. … … 45 45 <li>Change to the directory where you want to create the project skeleton.</li> 46 46 <li>Type, <tt>php ../prado/framework/prado-cli.php -c helloworld</tt>, where 47 <tt>hellow world</tt> is the directory name that you want to create the project skeleton files.</li>47 <tt>helloworld</tt> is the directory name that you want to create the project skeleton files.</li> 48 48 <li>Type, <tt>php ../prado/framework/prado-cli.php <b>-t</b> helloworld</tt> to create 49 49 the test fixtures for the <tt>helloworld</tt> project.</li> … … 52 52 <h2 id="505">Interactive Shell</h2> 53 53 <p> 54 The interactive shell allows you to evaluate PHP statements from t e command line.54 The interactive shell allows you to evaluate PHP statements from the command line. 55 55 The <tt>prado-cli.php</tt> script can be used to start the shell and load an existing 56 56 Prado project. For example, let us load the blog demo project. Assume that your … … 64 64 <com:TTextHighlighter Language="cli" CssClass="source"> 65 65 Command line tools for Prado 3.0.5. 66 ** Loaded Prado app plication in directory "demos\blog\protected".66 ** Loaded Prado application in directory "demos\blog\protected". 67 67 PHP-Shell - Version 0.3.1 68 68 (c) 2006, Jan Kneschke <jan@kneschke.de> … … 74 74 Then we will get an instance of the Prado blog application, and from 75 75 that instance we want an instance of the <tt>'data'</tt> module. Notice that 76 a <b>semicolon</b> at the end of the line <b>sup resses the output</b>.76 a <b>semicolon</b> at the end of the line <b>suppresses the output</b>. 77 77 78 78 <com:TTextHighlighter Language="cli" CssClass="source"> … … 98 98 [Content] => 'Congratulations! You have successfully installed Prado Blog -- 99 99 a PRADO-driven weblog system. A default administrator account has been created. 100 Please login with <b>admin/prado</b> and update your password as soon as possib 101 le.' 100 Please login with <b>admin/prado</b> and update your password as soon as possible.' 102 101 [Status] => 0 103 102 [CommentCount] => 0 -
trunk/framework/Web/Services/TPageService.php
r1464 r1482 463 463 * @param string page path 464 464 * @param array list of GET parameters, null if no GET parameters required 465 * @param boolean whether to encode the ampersand in URL, defaults to false.465 * @param boolean whether to encode the ampersand in URL, defaults to true. 466 466 * @param boolean whether to encode the GET parameters (their names and values), defaults to true. 467 467 * @return string URL for the page and GET parameters 468 468 */ 469 public function constructUrl($pagePath,$getParams=null,$encodeAmpersand= false,$encodeGetItems=true)469 public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=true,$encodeGetItems=true) 470 470 { 471 471 return $this->getRequest()->constructUrl($this->getID(),$pagePath,$getParams,$encodeAmpersand,$encodeGetItems); -
trunk/framework/Web/THttpRequest.php
r1452 r1482 483 483 * @param string service parameter 484 484 * @param array GET parameters, null if not needed 485 * @param boolean whether to encode the ampersand in URL, defaults to false.485 * @param boolean whether to encode the ampersand in URL, defaults to true. 486 486 * @param boolean whether to encode the GET parameters (their names and values), defaults to true. 487 487 * @return string URL 488 488 * @see parseUrl 489 489 */ 490 public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand= false,$encodeGetItems=true)490 public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand=true,$encodeGetItems=true) 491 491 { 492 492 $url=$serviceID.'='.$serviceParam; -
trunk/framework/Web/UI/WebControls/TRepeater.php
r1398 r1482 365 365 public function render($writer) 366 366 { 367 if($this->_items && $this->_items->getCount() )367 if($this->_items && $this->_items->getCount() || $this->_emptyTemplate!==null) 368 368 $this->renderContents($writer); 369 else if($this->_emptyTemplate!==null)370 parent::render($writer);371 369 } 372 370 -
trunk/index.html
r1448 r1482 8 8 <body> 9 9 <h1>PRADO Framework for PHP 5 </h1> 10 <p>Version 3.0.5, October 8, 2006<br>10 <p>Version 3.0.5, October 23, 2006<br> 11 11 Copyright© 2004-2006 by <a href="http://www.pradosoft.com/">PradoSoft</a><br> 12 12 All Rights Reserved. … … 70 70 <h2>Documentation</h2> 71 71 <ul> 72 <li><a href="docs/ manual/index.html">API documentation</a></li>72 <li><a href="docs/prado3_manual.chm">Integrated manual (CHM)</a>, including quickstart, API, class docs and wiki</li> 73 73 <li><a href="docs/quickstart.pdf">Quickstart tutorial (PDF)</a></li> 74 <li><a href="docs/manual/index.html">API documentation (HTML)</a></li> 74 75 </ul> 75 76
