![]() |
|
tdCorePlugin - 0.1.9Provides basic functionalities enabling TD CMF. |
|
![]() |
3
users
Sign-in
to change your status |
Provides basic functionalities enabling TD CMF, such as common configuration or random data generation. |
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.
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> nicud.zsamot |
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.
| 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 |
| 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 |
The tdCorePlugin 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.
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
One of the assets is nice CSS file cooperating with other TD CMF plugins.
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.
Enable the file in your apps/backend/config/view.yml file:
stylesheets: [ /tdCorePlugin/css/td_admin.css ]
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/
and finally you may use the icons in the app.yml file:
categories:
Administration:
items:
Newsletter:
url: newsletter
image: newsletter.pngThere 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; ?>
