lillem4n.blogspot.com
Lillem4n thoughts: How to use the XML helper with XSLT
http://lillem4n.blogspot.com/2010/01/how-to-use-xml-helper-with-xslt.html
How to use the XML helper with XSLT. All Kohana-related posts are now at http:/ kohana.lillem4n.se. A friend of mine needed to use the Kohana XML-module. To create XML with a XSLT-stylesheet attatched to it. This is a quick example of how you could do that. There are several other ways, but this is pretty straight forward. The following code should be placed inside a controller method:. First we need a DOM document do begin with. Dom = new DomDocument('1.0', 'UTF-8');. Dom- formatOutput = true;.
lillem4n.blogspot.com
Lillem4n thoughts: Kohana extended form rules
http://lillem4n.blogspot.com/2009/11/kohana-extended-form-rules.html
Kohana extended form rules. All Kohana-related posts are now at http:/ kohana.lillem4n.se. New version available here. A post about this issue is located here. This is a module. With rules you'd like when validating forms in kohana. It is the same concept as the valid: -rules. Post- add rules('some field', 'required', 'digit', 'formrules: positive');. This will require "some field" to be a digit (whole number) above zero. Hashes: #kohana form rules module #kohana module #kohana #form validation #php.
lillem4n.blogspot.com
Lillem4n thoughts: Kohana XML helper module
http://lillem4n.blogspot.com/2009/10/kohana-xml-helper-module.html
Kohana XML helper module. All Kohana-related posts are now at http:/ kohana.lillem4n.se. Is actually just a helper (for now, at least). But it is very handy when working with converting various data to XML in PHP. A few examples:. Simple example of the two different return values. Php $doc = xml: toXML(array('root'= array('fnupp'= 'dah') ); $doc- formatOutput = true; echo $doc- saveXML();? How the $container works:. Xml: toXML(array('fnupp' = 'dah'). Root fnupp dah /fnupp /root. Hope this helps you out.
lillem4n.blogspot.com
Lillem4n thoughts: 2009-11
http://lillem4n.blogspot.com/2009_11_01_archive.html
This is so important, its found a place even in this blog:. Links to this post. When adding modules to kohana. Most oftenly you need to add that module to the config file to have it loaded. Now I find this mostly an unnecessary hassle. (Its useful when sharing module path between applications, though). However, just comment out the module settings, replacing it with this code snippet:. Config['modules'] = array();. Foreach (scandir(MODPATH) as $folder) {. Config['modules'][] = MODPATH . $folder;. Post- a...
lillem4n.blogspot.com
Lillem4n thoughts: 2009-10
http://lillem4n.blogspot.com/2009_10_01_archive.html
Kohana XML helper module. All Kohana-related posts are now at http:/ kohana.lillem4n.se. Is actually just a helper (for now, at least). But it is very handy when working with converting various data to XML in PHP. A few examples:. Simple example of the two different return values. Php $doc = xml: toXML(array('root'= array('fnupp'= 'dah') ); $doc- formatOutput = true; echo $doc- saveXML();? How the $container works:. Xml: toXML(array('fnupp' = 'dah'). Root fnupp dah /fnupp /root. Links to this post. Iptab...
lillem4n.blogspot.com
Lillem4n thoughts: Excel export module
http://lillem4n.blogspot.com/2009/11/excel-export-module.html
All Kohana-related posts are now at http:/ kohana.lillem4n.se. This is a excel export module. Simpel use like this:. ExcelExport = new Excel export(); $excelExport- addRow(array('first row, first column','first row, second column') ; $excelExport- addRow(array('second row, first column','second row, second column') ; $excelExport- download('myExcelFile.xls');. Full documentation of all available methods and parameters are in the module library source. Kohana excel export module. You can help me please.
lillem4n.blogspot.com
Lillem4n thoughts: 2010-01
http://lillem4n.blogspot.com/2010_01_01_archive.html
How to use the XML helper with XSLT. All Kohana-related posts are now at http:/ kohana.lillem4n.se. A friend of mine needed to use the Kohana XML-module. To create XML with a XSLT-stylesheet attatched to it. This is a quick example of how you could do that. There are several other ways, but this is pretty straight forward. The following code should be placed inside a controller method:. First we need a DOM document do begin with. Dom = new DomDocument('1.0', 'UTF-8');. Dom- formatOutput = true;. This can...
lillem4n.blogspot.com
Lillem4n thoughts: New form rules
http://lillem4n.blogspot.com/2010/01/new-form-rules.html
All Kohana-related posts are now at http:/ kohana.lillem4n.se. Is updated with two new methods: futureTimeStamp() and pastTimeStamp(). This can simply be passed in a form validation to check a string for both validation to strtotime() and so it is either in the future or in the past. Example:. Post- add rules('someFormField', 'formrules: futureTimeStamp'). This is an update to this post. Hashes: #kohana form rules module #kohana module #kohana #form validation #php. Kohana form rules module.