[limb-svn] r6072 - in 3.x/examples/crud: init lib/limb settings template template/main_page template/news template/rss www
svn at limb-project.com
svn at limb-project.com
Thu Jul 5 16:43:49 MSD 2007
Author: wiliam
Date: 2007-07-05 16:43:49 +0400 (Thu, 05 Jul 2007)
New Revision: 6072
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6072
Added:
3.x/examples/crud/init/db.sqlite
3.x/examples/crud/init/db_sql.sqlite
Modified:
3.x/examples/crud/lib/limb/
3.x/examples/crud/settings/
3.x/examples/crud/settings/db.conf.php
3.x/examples/crud/template/main_page/display.html
3.x/examples/crud/template/news/display.html
3.x/examples/crud/template/page.html
3.x/examples/crud/template/rss/last_news.rss
3.x/examples/crud/www/design.css
3.x/examples/crud/www/last-news-feed.php
Log:
-- sqlite DB added as default for crud example
-- limb 2007.3 pre-release used
Added: 3.x/examples/crud/init/db.sqlite
===================================================================
(Binary files differ)
Property changes on: 3.x/examples/crud/init/db.sqlite
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: 3.x/examples/crud/init/db_sql.sqlite
===================================================================
--- 3.x/examples/crud/init/db_sql.sqlite (rev 0)
+++ 3.x/examples/crud/init/db_sql.sqlite 2007-07-05 12:43:49 UTC (rev 6072)
@@ -0,0 +1,14 @@
+CREATE TABLE news (
+ id INTEGER PRIMARY KEY ,
+ title varchar NOT NULL default '',
+ annotation text NOT NULL,
+ content text NOT NULL,
+ date text NOT NULL default '0000-00-00'
+);
+
+INSERT INTO news VALUES (1, 'Happy New 2007 Year!!!', 'It''s 2007! Fill your heart with new hopes, reach out for new opportunities and celebrate the New Year! Cheers!', '<p>The previous 2006 year was really full of exciting events for the core dev.team:</p>\r\n<p>Firstly we finally <a href="http://limb-project.com/root/news/158">managed to launch</a> the <a href="http://pear.limb-project.com">Limb 3.x PEAR channel</a>. We have high hopes for Limb 3.x and all our future efforts will be mainly focused on further development and improvement of Limb 3.x packages. We''re pushing the PHP''s limits with Limb 3.x and prove that PHP still can be a powerfull RAD tool despite to much PHP criticizing lately.</p>\r\n<p>Secondly we released <a href="http://limb-project.com/root/news/159">Limb 2.4-rc1 stable release</a>(well, almost stable since it''s a release candidate) after more than one year of silence in this branch. We hope to release 2.4 final pretty soon and even though many devel
opers still find 2.x attractive we''d like to admit that there won''t be much development in this branch in the future. The code base of 2.x is pretty outdated and sometimes ugly, that''s why we want to convert 2.x into 3.x package as soon as possible.</p>', '2007-01-01');
+INSERT INTO news VALUES (2, 'LIMB 2.4-rc1 Release', 'Well, finally, here comes the first stable version of Limb 2.4.x with lots of bugfixes and some new cool features!', '<p>Here''s the list of the most noticeable changes:</p>\r\n\r\n<ul>\r\n<li>PHP-4.4.x compatibility(we really tried hard to spot all problematic places in the code)</li>\r\n<li>improved JavaScript bundling mechanism, which can be nicely combined with dynamic JavaScript loading of modules.</li>\r\n</ul>\r\n\r\n<p>See <a href="https://svn.limb-project.com/limb/2.x/tags/2.4-rc1/CHANGELOG">CHANGELOG</a> for more details. </p>\r\n\r\n<p>We hope 2.4 final release will follow soon after this one, once this release is a bit more tested with PHP-4.4.x on production servers. However we admit that we''re mainly focused on Limb 3.x development and after 2.4 final release most probably the 2.x branch will be closed.</p>', '2006-12-20');
+INSERT INTO news VALUES (3, 'LIMB 3.x PEAR channel was officially launched!', 'After almost a year of hard working we''re proud to announce the launch of PEAR channel for Limb 3.x packages!', '<p>These packages should greatly simplify the process of developing web applications with PHP. One of the most interesting packages among them is <b>web_app</b> which allows you to develop web applications in <a href="http://rubyonrails.com">Rails</a> alike way using similar controllers, pretty flexible ActiveRecord powered model and excellent <a href="http://phpwact.org">WACT</a> based views.</p>\r\n\r\n<p>The channel has a bit terse look right now however this is going to be fixed pretty soon. We`re also working on providing automatic nightly builds of packages right from the repository.</p>\r\n\r\n<p>The english documentation is mostly outdated but we`re working on this issue as well(we`re finishing the Russian documentation at the moment). However there are some simple examples in
<b>web_app</b> package which, hopefully, should help you get started quickly.</p>\r\n\r\n<p>We''d like to thank all core Limb developers for their great work and dedication to the project. It would never have happened without you guys!</p>\r\n\r\n<p>Let it be a new year present to all PHP agile geeks</p>', '2006-12-15');
+INSERT INTO news VALUES (4, 'Moving from Trac to JIRA', 'LIMB is gradually becoming a pretty large project and with the new conception of packages it has become pretty difficult to use Trac with many sub-projects.', '<p>Trac is a great tool for tracking issues for one project however it doesn''t allow to add new sub-projects easily and that''s become quite problematic. </p>\r\n\r\n<p><a href="http://www.atlassian.com/software/jira/">JIRA</a> is a another super flexible and configurable tool written in Java which allows you to have almost complete control over project issues. We decided to <a href="http://www.atlassian.com/software/views/opensource-license-request.jsp">apply</a> for JIRA Open Source free license and...<a href="http://www.atlassian.com/">atlassian</a> folks were very generous to provide us with the free copy of JIRA. Thank you so much!</p>\r\n\r\n<p>We installed JIRA at <a href="http://jira.limb-project.com">http://jira.limb-project.com</a>, made some minor lo
ok-and-feel changes and moved all unresolved issues from Trac there.</p>\r\n\r\n<p>We also made some projects in JIRA: a separate project for LIMB 2.x, a bunch of projects for LIMB 3.x packages(each package gets its own project) and one for all project related issues(site redesing, new mailing lists, etc)</p>\r\n\r\n<p>Trac link is not available anymore and it simply redirects to JIRA. Good buy, old pal.</p>', '2006-10-16');
+INSERT INTO news VALUES (5, 'Two years of happy hacking.', 'This very day two years ago limb-project.com was launched and two days later the first release of LIMB was available for public download at SourceForge.net.', '<p>The core LIMB dev. team has had a lot of hard work and fun in the course of these two years and we''d like to thank our small(but constantly growing) community for helping us spotting bugs, sending patches and requesting insane features :)</p>', '2006-06-04');
+
Property changes on: 3.x/examples/crud/lib/limb
___________________________________________________________________
Name: svn:externals
- active_record -r 5929 https://svn.limb-project.com/3.x/trunk/limb/active_record
config -r 5929 https://svn.limb-project.com/3.x/trunk/limb/config
core -r 5929 https://svn.limb-project.com/3.x/trunk/limb/core
dbal -r 5929 https://svn.limb-project.com/3.x/trunk/limb/dbal
i18n -r 5929 https://svn.limb-project.com/3.x/trunk/limb/i18n
log -r 5929 https://svn.limb-project.com/3.x/trunk/limb/log
filter_chain -r 5929 https://svn.limb-project.com/3.x/trunk/limb/filter_chain
net -r 5929 https://svn.limb-project.com/3.x/trunk/limb/net
fs -r 5929 https://svn.limb-project.com/3.x/trunk/limb/fs
session -r 5929 https://svn.limb-project.com/3.x/trunk/limb/session
toolkit -r 5929 https://svn.limb-project.com/3.x/trunk/limb/toolkit
validation -r 5929 https://svn.limb-project.com/3.x/trunk/limb/validation
view -r 5929 https://svn.limb-project.com/3.x/trunk/limb/view
wact -r 5929 https://svn.limb-project.com/3.x/trunk/limb/wact
web_app -r 5929 https://svn.limb-project.com/3.x/trunk/limb/web_app
+ active_record https://svn.limb-project.com/3.x/branches/2007.3/limb/active_record
config https://svn.limb-project.com/3.x/branches/2007.3/limb/config
core https://svn.limb-project.com/3.x/branches/2007.3/limb/core
dbal https://svn.limb-project.com/3.x/branches/2007.3/limb/dbal
i18n https://svn.limb-project.com/3.x/branches/2007.3/limb/i18n
log https://svn.limb-project.com/3.x/branches/2007.3/limb/log
filter_chain https://svn.limb-project.com/3.x/branches/2007.3/limb/filter_chain
net https://svn.limb-project.com/3.x/branches/2007.3/limb/net
fs https://svn.limb-project.com/3.x/branches/2007.3/limb/fs
session https://svn.limb-project.com/3.x/branches/2007.3/limb/session
toolkit https://svn.limb-project.com/3.x/branches/2007.3/limb/toolkit
validation https://svn.limb-project.com/3.x/branches/2007.3/limb/validation
view https://svn.limb-project.com/3.x/branches/2007.3/limb/view
wact https://svn.limb-project.com/3.x/branches/2007.3/limb/wact
web_app https://svn.limb-project.com/3.x/branches/2007.3/limb/web_app
Property changes on: 3.x/examples/crud/settings
___________________________________________________________________
Name: svn:ignore
- db.conf.override.php
+ db.conf.override.php
wact.conf.override.php
Modified: 3.x/examples/crud/settings/db.conf.php
===================================================================
--- 3.x/examples/crud/settings/db.conf.php 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/settings/db.conf.php 2007-07-05 12:43:49 UTC (rev 6072)
@@ -1,5 +1,3 @@
<?php
-
-$conf = array('dsn' => 'mysql://root:secret@localhost/limb_application?charset=utf8');
-
+$conf = array('dsn' => 'sqlite://localhost/'.dirname(__FILE__).'/../init/db.sqlite?charset=utf8');
?>
\ No newline at end of file
Modified: 3.x/examples/crud/template/main_page/display.html
===================================================================
--- 3.x/examples/crud/template/main_page/display.html 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/template/main_page/display.html 2007-07-05 12:43:49 UTC (rev 6072)
@@ -5,9 +5,8 @@
<active_record:fetch class_path='src/model/News' target="last_news" order='date=DESC' limit='3'/>
-<center>
<list:LIST id="last_news">
- <table>
+ <table width="100%">
<caption>Last News</caption>
<list:ITEM>
<tr>
@@ -25,6 +24,4 @@
</list:LIST>
<route_url params='controller:news'>All news...</route_url>
-</center>
-
</core:wrap>
Modified: 3.x/examples/crud/template/news/display.html
===================================================================
--- 3.x/examples/crud/template/news/display.html 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/template/news/display.html 2007-07-05 12:43:49 UTC (rev 6072)
@@ -6,7 +6,7 @@
<a href='last-news-feed.php'>RSS</a> <route_url params="action:create">Create news</route_url>
<p/>
-<active_record:fetch class_path='src/model/News' target="news" navigator='pager'/>
+<active_record:fetch class_path='src/model/News' target="news" navigator='pager' order="date=DESC"/>
<core:include file='pager.html'/>
Modified: 3.x/examples/crud/template/page.html
===================================================================
--- 3.x/examples/crud/template/page.html 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/template/page.html 2007-07-05 12:43:49 UTC (rev 6072)
@@ -4,10 +4,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="{$'LIMB_HTTP_BASE_PATH'|const}" />
<link href="design.css" type="text/css" rel="stylesheet" />
+ <link rel="alternate" type="application/rss+xml" title="Recent News" href="/last-news-feed.php" />
</head>
-<body bgcolor="#FFFFFF" text="#000000" >
- <center>
+<body>
<core:placeholder id="page_placeholder"/>
- </center>
</body>
</html>
Modified: 3.x/examples/crud/template/rss/last_news.rss
===================================================================
--- 3.x/examples/crud/template/rss/last_news.rss 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/template/rss/last_news.rss 2007-07-05 12:43:49 UTC (rev 6072)
@@ -1,6 +1,6 @@
<!--l version="1.0" encoding="utf-8"-->
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
-<rss version="0.92" xml:base="http://tutorial.dbrain.bit">
+<? echo "<rss version='0.92' xml:base='http://". $_SERVER['HTTP_HOST']."'>"; ?>
<channel>
<title>YourDomain.com last news</title>
@@ -10,7 +10,7 @@
<list:item>
<item>
<title>{$title}</title>
- <link>{$path}</link>
+ <linka>{$path}</linka>
<description>
{$annotation}
</description>
@@ -21,4 +21,5 @@
</list:item>
</list:list>
</channel>
-</rss>
\ No newline at end of file
+
+<? echo "</rss>"; ?>
\ No newline at end of file
Modified: 3.x/examples/crud/www/design.css
===================================================================
--- 3.x/examples/crud/www/design.css 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/www/design.css 2007-07-05 12:43:49 UTC (rev 6072)
@@ -1,3 +1,4 @@
+body{background-color:#FFFFFF; color:#000000; text-align: center;}
h1{
font-size: 122%;
color: #aa024c;
@@ -68,11 +69,11 @@
}
a{
- font-size: 100%;
- color: #0000ff;
- font-weight: bold;
- text-decoration: none;
- margin: 0; padding: 1px;
+ font-size: 100%;
+ color: #0000ff;
+ font-weight: bold;
+ text-decoration: none;
+ margin: 0; padding: 1px;
}
a:active { color: #0000ae; text-decoration: underline; }
@@ -112,77 +113,77 @@
}
table {
- width: auto;
- margin: 0px; padding: 0px;
- border: solid 1px #11067e;
- border-collapse: collapse;
- table-align: center;
- color: #000;
+ width: auto;
+ margin: 0px; padding: 0px;
+ border: solid 1px #11067e;
+ border-collapse: collapse;
+ table-align: center;
+ color: #000;
}
table caption{
- font-size: 20px;
- color: #000;
- margin: 0;
- padding: 0px 0px 5px 0px;
+ font-size: 20px;
+ color: #000;
+ margin: 0;
+ padding: 0px 0px 5px 0px;
}
td {
- margin: 0; padding: 5px;
- text-align: left;
- vertical-align: top;
- border: solid 1px #11067e;
+ margin: 0; padding: 5px;
+ text-align: left;
+ vertical-align: top;
+ border: solid 1px #11067e;
}
th {
- margin: 0; padding: 5px;
- text-align: left;
- vertical-align: middle;
- border: solid 1px #11067e;
- background: #96Bcff;
- color: #000;
+ margin: 0; padding: 5px;
+ text-align: left;
+ vertical-align: middle;
+ border: solid 1px #11067e;
+ background: #96Bcff;
+ color: #000;
}
form {
- background: #c6ecff;
- margin: 5px; padding: 5px;
- border: dashed 1px red;
- width: 500px;
+ background: #c6ecff;
+ margin: 5px; padding: 5px;
+ border: dashed 1px red;
+ width: 500px;
}
form fieldset {
- margin: 5px; padding: 5px;
+ margin: 5px; padding: 5px;
}
form fieldset legend{
- font-size: 14px;
- color: #000;
- margin: 0px 0px 5px 0px; /* top right bottom left */
- padding: 0;
+ font-size: 14px;
+ color: #000;
+ margin: 0px 0px 5px 0px; /* top right bottom left */
+ padding: 0;
}
form label {
- font-size: 14px;
- color: #0000ff;
- font-weight: bold;
- text-decoration: none;
- background: none;
- margin: 0; padding: 0;
+ font-size: 14px;
+ color: #0000ff;
+ font-weight: bold;
+ text-decoration: none;
+ background: none;
+ margin: 0; padding: 0;
}
form input {
- margin: 5px 0px 5px 0px;
- padding: 0px;
- width: 450px;
+ margin: 5px 0px 5px 0px;
+ padding: 0px;
+ width: 450px;
}
form textarea {
- margin: 5px 0px 5px 0px;
- padding: 0px;
- width: 450px;
+ margin: 5px 0px 5px 0px;
+ padding: 0px;
+ width: 450px;
}
form select {
- margin: 5px 0px 5px 0px;
- padding: 0px;
+ margin: 5px 0px 5px 0px;
+ padding: 0px;
}
Modified: 3.x/examples/crud/www/last-news-feed.php
===================================================================
--- 3.x/examples/crud/www/last-news-feed.php 2007-07-05 07:29:39 UTC (rev 6071)
+++ 3.x/examples/crud/www/last-news-feed.php 2007-07-05 12:43:49 UTC (rev 6072)
@@ -1,7 +1,7 @@
<?php
require_once('../setup.php');
-require_once('limb/web_app/src/template/lmbWactTemplate.class.php');
-require_once('limb/datasource/src/lmbArrayDataset.class.php');
+require_once('limb/core/src/lmbCollection.class.php');
+require_once('limb/view/src/wact/lmbWactTemplate.class.php');
require_once('src/model/News.class.php');
$template = new lmbWactTemplate('rss/last_news.rss');
@@ -26,7 +26,7 @@
$result[$news_id]['path'] = 'http://' . $_SERVER['HTTP_HOST'] . '/news/detail/' . $news_id;
}
- return new lmbArrayDataset($result);
+ return new lmbCollection($result);
}
?>
\ No newline at end of file
More information about the limb-svn
mailing list