Commit d70fef11 by sversteg

Fixes #2 - Updated Codeigniter adapter added

Includes the bugfix for the problem as mentioned in the forums (http://forum.dwoo.org/viewtopic.php?pid=517#p517) git-svn-id: svn://dwoo.org/dwoo/trunk@255 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 53a2ddf8
CodeIgniter/Dwoo adapater
-------------------------
Integration of Dwoo into Codeigniter (1.7.0 >)
Links:
Dwoo - http://dwoo.org
CodeIgniter - http://codeigniter.com
Installation:
1) Extract package into your application directory (i.e. $webroot/application or
$webroot/system/application)
2) Change the parameters in config/dwootemplate.php
3) Create the compile and cache directory you set in your config file in step 2
and give it the correct rights (chmod 777 when on *nix)
4) Extract/copy the Dwoo package into application/libraries/dwoo
5) Browse to : http://[yoururl]/dwoowelcome
Version info
1.0.2 [11-03-2009] Fixed a problem with $data attribute (which Dwoo also used)
1.0.1 [12-11-2008] Removed some & in the dwootemplate
Changed licencse
Changed 'output' in 'get' in the dwootemplate (line 122)
1.0.0 [11-11-2008] Initial release
Questions/Remarks?
mail to: stefan.verstege@newmedia.nl
IM me on GTALK: verstege@gmail.com
Contact me on the Dwoo forums: stefanv
---------[ copyright notice ]-----------------------------------------------------------------------
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
License http://dwoo.org/LICENSE Modified BSD License
\ No newline at end of file
<?php
// Call Dwoo_PluginTest::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Dwoo_PluginTest::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'Dwoo/Plugin.php';
/**
* Test class for Dwoo_Plugin.
* Generated by PHPUnit on 2009-03-11 at 11:28:30.
*/
class Dwoo_PluginTest extends PHPUnit_Framework_TestCase
{
/**
* @var Dwoo_Plugin
* @access protected
*/
protected $object;
/**
* Runs the test methods of this class.
*
* @access public
* @static
*/
public static function main()
{
require_once 'PHPUnit/TextUI/TestRunner.php';
$suite = new PHPUnit_Framework_TestSuite('Dwoo_PluginTest');
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @access protected
*/
protected function setUp()
{
$this->object = new Dwoo_Plugin;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
}
/**
* @todo Implement testParamsToAttributes().
*/
public function testParamsToAttributes() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
}
// Call Dwoo_PluginTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == 'Dwoo_PluginTest::main') {
Dwoo_PluginTest::main();
}
?>
<?php
ini_set("include_path", "../lib".PATH_SEPARATOR."../../../lib".PATH_SEPARATOR.ini_get("include_path"));
// Call DwooTest::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'DwooTest::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'Dwoo.php';
/**
* Test class for Dwoo.
* Generated by PHPUnit on 2009-03-11 at 11:28:20.
*/
class DwooTest extends PHPUnit_Framework_TestCase
{
/**
* @var Dwoo
* @access protected
*/
protected $object;
/**
* Runs the test methods of this class.
*
* @access public
* @static
*/
public static function main()
{
require_once 'PHPUnit/TextUI/TestRunner.php';
$suite = new PHPUnit_Framework_TestSuite('DwooTest');
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @access protected
*/
protected function setUp()
{
$this->object = new Dwoo;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
}
/**
* @todo Implement test__clone().
*/
public function test__clone() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testOutput().
*/
public function testOutput() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGet().
*/
public function testGet() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testAddPlugin().
*/
public function testAddPlugin() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testRemovePlugin().
*/
public function testRemovePlugin() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testAddFilter().
*/
public function testAddFilter() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testRemoveFilter().
*/
public function testRemoveFilter() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testAddResource().
*/
public function testAddResource() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testRemoveResource().
*/
public function testRemoveResource() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetLoader().
*/
public function testSetLoader() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetLoader().
*/
public function testGetLoader() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetCustomPlugins().
*/
public function testGetCustomPlugins() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetCacheDir().
*/
public function testGetCacheDir() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetCacheDir().
*/
public function testSetCacheDir() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetCompileDir().
*/
public function testGetCompileDir() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetCompileDir().
*/
public function testSetCompileDir() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetCacheTime().
*/
public function testGetCacheTime() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetCacheTime().
*/
public function testSetCacheTime() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetCharset().
*/
public function testGetCharset() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetCharset().
*/
public function testSetCharset() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetTemplate().
*/
public function testGetTemplate() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetDefaultCompilerFactory().
*/
public function testSetDefaultCompilerFactory() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetDefaultCompilerFactory().
*/
public function testGetDefaultCompilerFactory() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetSecurityPolicy().
*/
public function testSetSecurityPolicy() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetSecurityPolicy().
*/
public function testGetSecurityPolicy() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetPluginProxy().
*/
public function testSetPluginProxy() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetPluginProxy().
*/
public function testGetPluginProxy() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testIsCached().
*/
public function testIsCached() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testClearCache().
*/
public function testClearCache() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testTemplateFactory().
*/
public function testTemplateFactory() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testIsArray().
*/
public function testIsArray() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testTriggerError().
*/
public function testTriggerError() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testAddStack().
*/
public function testAddStack() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testDelStack().
*/
public function testDelStack() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetParentBlock().
*/
public function testGetParentBlock() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testFindBlock().
*/
public function testFindBlock() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testClassCall().
*/
public function testClassCall() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testArrayMap().
*/
public function testArrayMap() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testReadVarInto().
*/
public function testReadVarInto() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testReadParentVar().
*/
public function testReadParentVar() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testReadVar().
*/
public function testReadVar() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testAssignInScope().
*/
public function testAssignInScope() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testSetScope().
*/
public function testSetScope() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetData().
*/
public function testGetData() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement testGetScope().
*/
public function testGetScope() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @todo Implement test__call().
*/
public function test__call() {
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
}
// Call DwooTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == 'DwooTest::main') {
DwooTest::main();
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment