jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
[Read More]
Tuesday, December 2, 2008
Sunday, November 30, 2008
Extended beforeFilter() snippet
By Nate Constant (Natcon67)
This is a simple addition to app_controller.php to allow a more customized beforeFilter() callback.
Updated: 3/27/2007 - added isset call before calling callback with args
I set out to get a little more functionality out of the controller callback beforeFilter(). I had 2 requirements for this extended functionality:
1. Specify which actions to apply the callback to.
2. Ability to specify multiple methods beforeFilter would call.
Let me give a very simple example of how to use this snippet:
in your controller define $beforeFilter which is an array of methods to call and the parameters.
[Read More]
This is a simple addition to app_controller.php to allow a more customized beforeFilter() callback.
Updated: 3/27/2007 - added isset call before calling callback with args
I set out to get a little more functionality out of the controller callback beforeFilter(). I had 2 requirements for this extended functionality:
1. Specify which actions to apply the callback to.
2. Ability to specify multiple methods beforeFilter would call.
Let me give a very simple example of how to use this snippet:
in your controller define $beforeFilter which is an array of methods to call and the parameters.
[Read More]
Friday, November 28, 2008
Reading OpenDocuments with CakePHP
By Tobias Funke
On my quest to find a simple way to read the contents of an *.odt OpenDocument Text file, better known as OpenOffice Writer files, I stumbled over a simple class that, in combination with a xsl template, converts an *.odt file to XHTML.
[Read More]
On my quest to find a simple way to read the contents of an *.odt OpenDocument Text file, better known as OpenOffice Writer files, I stumbled over a simple class that, in combination with a xsl template, converts an *.odt file to XHTML.
[Read More]
Simply storing config values in the DB
By Cameron Perry
There are many situations in web apps where site-wide configurations need to be accessible to users through admin interfaces, rather than configuration files residing on the server. It is a practical method of storing configuration values that may need changing from time to time, but without access to the core configuration file.
[Read More]
There are many situations in web apps where site-wide configurations need to be accessible to users through admin interfaces, rather than configuration files residing on the server. It is a practical method of storing configuration values that may need changing from time to time, but without access to the core configuration file.
[Read More]
Parsing XML files with CakePHP
By Fahad Ibnay Heylaal
Simple tutorial for parsing xml files quickly using the core XML class of cakephp.
[Read More]
Simple tutorial for parsing xml files quickly using the core XML class of cakephp.
[Read More]
Reading OpenDocuments with CakePHP
By Tobias Funke
On my quest to find a simple way to read the contents of an *.odt OpenDocument Text file, better known as OpenOffice Writer files, I stumbled over a simple class that, in combination with a xsl template, converts an *.odt file to XHTML.
[Read More]
On my quest to find a simple way to read the contents of an *.odt OpenDocument Text file, better known as OpenOffice Writer files, I stumbled over a simple class that, in combination with a xsl template, converts an *.odt file to XHTML.
[Read More]
Simply storing config values in the DB
By Cameron Perry
There are many situations in web apps where site-wide configurations need to be accessible to users through admin interfaces, rather than configuration files residing on the server. It is a practical method of storing configuration values that may need changing from time to time, but without access to the core configuration file.
[Read More]
There are many situations in web apps where site-wide configurations need to be accessible to users through admin interfaces, rather than configuration files residing on the server. It is a practical method of storing configuration values that may need changing from time to time, but without access to the core configuration file.
[Read More]
Subscribe to:
Posts (Atom)