tdCorePlugin
0.1.4beta
for sf 1.4sf 1.3 and Doctrine
MIT
The tdVisitorCounterPlugin is a symfony plugin that provides basic functionalities enabling TD CMF, such as common configuration or random data generation.
This plugin is a part of TD CMF and is based on Doctrine ORM.
Developers
| Name |
Status |
Email |
Tomasz Ducin |
lead |
moc.liamg <<ta>> nicud.zsamot
|
License
Copyright (c) 2009 Tomasz Ducin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
0.2.4beta
|
MIT |
0.2.4beta
|
27/07/2011 |
|
0.2.3beta
|
MIT |
0.2.3beta
|
05/10/2010 |
|
0.2.2beta
|
MIT |
0.2.2beta
|
03/10/2010 |
|
0.2.1beta
|
MIT |
0.2.1beta
|
12/09/2010 |
|
0.2.0beta
|
MIT |
0.2.0beta
|
06/09/2010 |
|
0.1.10beta
|
MIT |
0.1.0beta
|
04/09/2010 |
|
0.1.9beta
|
MIT |
0.1.0beta
|
24/02/2010 |
|
0.1.8beta
|
MIT |
0.1.0beta
|
24/01/2010 |
|
0.1.7beta
|
MIT |
0.1.0beta
|
18/01/2010 |
|
0.1.6beta
|
MIT |
0.1.0beta
|
17/01/2010 |
|
0.1.5beta
|
MIT |
0.1.0beta
|
16/01/2010 |
|
0.1.4beta
|
MIT |
0.1.0beta
|
03/01/2010 |
|
0.1.3beta
|
MIT |
0.1.0beta
|
02/01/2010 |
|
0.1.2beta
|
MIT |
0.1.0beta
|
02/01/2010 |
|
0.1.1beta
|
MIT |
0.1.0beta
|
31/12/2009 |
|
0.1.0beta
|
MIT |
0.1.0beta
|
28/12/2009 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
0.2.4beta
|
MIT |
0.2.4beta
|
27/07/2011 |
|
0.2.3beta
|
MIT |
0.2.3beta
|
05/10/2010 |
|
0.2.2beta
|
MIT |
0.2.2beta
|
03/10/2010 |
|
0.2.1beta
|
MIT |
0.2.1beta
|
12/09/2010 |
|
0.2.0beta
|
MIT |
0.2.0beta
|
06/09/2010 |
|
0.1.10beta
|
MIT |
0.1.0beta
|
04/09/2010 |
|
0.1.9beta
|
MIT |
0.1.0beta
|
24/02/2010 |
|
0.1.8beta
|
MIT |
0.1.0beta
|
24/01/2010 |
|
0.1.7beta
|
MIT |
0.1.0beta
|
18/01/2010 |
|
0.1.6beta
|
MIT |
0.1.0beta
|
17/01/2010 |
|
0.1.5beta
|
MIT |
0.1.0beta
|
16/01/2010 |
|
0.1.4beta
|
MIT |
0.1.0beta
|
03/01/2010 |
|
0.1.3beta
|
MIT |
0.1.0beta
|
02/01/2010 |
|
0.1.2beta
|
MIT |
0.1.0beta
|
02/01/2010 |
|
0.1.1beta
|
MIT |
0.1.0beta
|
31/12/2009 |
|
0.1.0beta
|
MIT |
0.1.0beta
|
28/12/2009 |
Changelog for release 0.1.4 - 03/01/2010
- fixed random timestamp data generation bug
- more icons added
Other releases
Release 0.2.4 - 27/07/2011
- added tdConfigTable::getConfigValue($value) for easier config options retrieving
- improved docs
Release 0.2.3 - 05/10/2010
- introduced Sluggable Doctrine behavior to tdSubpage
- improved tdSubpage routing with sfDoctrineRoute
- updated tdSubpage admin module and table class
Release 0.2.2 - 03/10/2010
- improving tdSubpage SEO
- added mode and module for link management
- added tdWidgetFormTextareaTinyMCECustom class representing rich edit widget
- added slugify/replacePolishWithLatin methods in tdTools
- fixed bug in tdSubpage/show - active/nonactive subpage display constraint
Release 0.2.1 - 12/09/2010
- added model and modules for subpages and configuration
- improved readme for breadcrumbs
Release 0.2.0 - 06/09/2010
- added breadcrumb managing module
Release 0.1.10 - 04/09/2010
- added graphics module to enable AJAX interface in child TD CMF plugins
Release 0.1.9 - 24/02/2010
- added short description sign count config option for all child plugins
- icons added
Release 0.1.8 - 24/01/2010
- tools class added
- css improved
- icons added
Release 0.1.7 - 18/01/2010
Release 0.1.6 - 17/01/2010
Release 0.1.5 - 16/01/2010
- sfAdminDashPlugin icons support reorganized
- more icons added
Release 0.1.4 - 03/01/2010
- fixed random timestamp data generation bug
- more icons added
Release 0.1.3 - 02/01/2010
- compatibility with sfAdminDashPlugin
Release 0.1.2 - 02/01/2010
- support for admin generators: assets
Release 0.1.1 - 31/12/2009
- fixed random numbers generating
- upgraded text generation
- updated documentation
Release 0.1.0 - 28/12/2009
tdCorePlugin
The tdVisitorCounterPlugin is a symfony plugin that provides basic
functionalities enabling TD CMF, such as common configuration or random data
generation.
This plugin is a part of TD CMF and is based on Doctrine ORM.
Installation
Install the plugin via the subversion repository by executing the following
command from the project root directory:
$ svn co http://svn.symfony-project.com/plugins/tdCorePlugin/trunk plugins/tdCorePlugin
or by using the default symfony plugin install command:
$ ./symfony plugin:install -s beta tdCorePlugin
as the actual release is in its beta stage. Run the following command to enable
the assets of tdCorePlugin:
$ ./symfony plugin:publish-assets
Usage
This plugin is the main part of the TD CMF and therefore it should be
installed as the first one. Other td components will use functionalities
provided with tdCorePlugin.
Add /tdCorePlugin/css/td_core_icons.css to your backend/config/view.yml
in the css section array to enable admin generator icons.
sfAdminDashPlugin compatibility
The icons provided with the plugin may be used for sfAdminDashPlugin. To do so,
you need to do the following:
modify the sfAdminDashPlugin/config/app.yml file, set:
image_dir: /tdCorePlugin/images/icons/48x48/
create a symlink from the tdCorePlugin/images/icons/48x48/ to 16x16
directory. Execute the following command from project root directory:
$ ln -s ../16x16/ plugins/tdCorePlugin/web/images/icons/48x48/small
and finally you may use the icons in the app.yml file:
categories:
Administration:
items:
Newsletter:
url: newsletter
image: newsletter.png
Random Data Generator
There is a class in the plugin responsible for generating some random data used
for the symfony fixtures. During development phase its essential to see how some
mechanisms work when real data is available in the database. Writing the same
methods many times is useless - that's where random data generator comes in. an
example to generate some data in data/fixtures/sample.yml file is shown below:
<?php $generator = new tdRandomDataGenerator(); ?>
Guestbook:
<?php for($i = 0; $i < 150; $i++): ?>
guestbook_<?php echo $i ?>:
author: <?php echo $generator->getRandomName()."\n" ?>
email: <?php echo $generator->getRandomEmail()."\n" ?>
http: <?php echo $generator->getRandomHttp()."\n" ?>
text: <?php echo $generator->getRandomText(mt_rand(20,100)*mt_rand(1,5))."\n" ?>
<?php endfor; ?>