Programming
cakephp page title in view cake1.3
In order to change page title in cakephp inside a view just use the code bellow
$this->set('title_for_layout', 'my cakephp page title');
remove comparison links from magento
Copy app/code/core/Mage/Catalog/Helper/Product/Compare.php
to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories)
Edit
app/code/local/Mage/Catalog/Helper/Product/Compare.php
after:
public function getAddUrl($product)
{
add:
return false;
SVN set up for multiple projects
just a quick tutorial how to set up subversion, aka SVN to be used with multiple projects.
Setting up only one repository has the downside of incrementing revision number for all the projects no matter what project is modified. The logs tend to be messy too which I don’t like.
so let’s begin: › Continue reading
Install SVN on CentOS problem
I run into a problem when installing subversion so if you have the same problem here it is:
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion
In order to solve it type this as root:
wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm
rpm -i perl-URI-1.35-3.noarch.rpm
yum install subversion
That’s it! if you have questions please ask.
Oracle Recommends Achievo ATK PHP Framework
OTN (Oracle Technology Network) writes about how to develop a complete PHP application with no more than 30 lines of code using ATK PHP Framework.
I must admit they have a great and simple to follow tutorial. I am a fan of CakePHP framework unfortunately
However it caught my interest and plan to give it a go today and see how I can flex it’s muscles.
The 30 lines application tutorial can be found here
http://www.oracle.com/technology/pub/articles/jansch_atk.html
PHP Local Date
Using date and time functions in PHP is as easy as it gets. However there are times when the website you build is addressed to a non-English audience, let’s say Greek.
We know that date(“F”) will echo “January” if we are in January and so on. So what if we wanted to echo the current month in Greek (January = Ιανουάριος)?
The following code snipped will say everything it needs to:
setlocale(LC_TIME, ‘greek’);
echo strftime(“%B”); //Ιανουάριος
Note: On some windows systems the above code won’t work so you may want to try:
setlocale(LC_CTYPE, ‘greek’);
setlocale(LC_TIME, ‘greek’);
echo strftime(“%B”); //Ιανουάριος
CakeFest Argentina
The only official gathering organized by the Cake Software Foundation, cakeFest will offer talks and workshops given by developers from the cakePHP community:
* Garret Woodworth: Keynote
* Nate Abele: Keynote
* Larry E. Masters: Keynote
* Felix Geisendörfer: Using jQuery with CakePHP
* Felix Geisendörfer: GIT for CakePHP projects
* Tim Koschützki: Unit Testing in CakePHP
* Mariano Iglesias: Internationalization made easy with CakePHP
* Mariano Iglesias: Behaviors en CakePHP
* Mariano Iglesias: Desarrollando shells
* Fabián Ramirez: CakePHP en las grandes empresas con casos reales
* Alejandro López Hernández: CakePHP en el Hospital General de México
* Martín Radosta: Seguridad a nivel de registro basada en SQL
* Guillermo Nuñez: Microformatos, su aplicación y helpers en CakePHP
* Ryan Peterson: Collective Inteligence algorithms with CakePHP
CakeFest will begin 2 dec this year in Argentina.
PHP & Oracle – Singapore Meeting
I recently invested some of my time to watch the PHP & Oracle presentation video from the meeting which took place this month in Singapore:
If you are in the PHP business it really worth considering porting your database to Oracle 10gR2 or 11g and using oci8 as oracle datasource for your application.
Just some of the performance features you will get:
-prefetching rows (reducing round trips from web to database servers)
guidelines to follow when prefetching rows:
* don’t prefetch more data than necessary
* use SQL to process data especially analytics functions
-binding scalars
(avoiding double parsing SQL statements like SELECT * FROM USERS WHERE user_id=2 and SELECT * FROM USERS WHERE user_id=3)
A great advantage is that avoids SQL injections too!
-transactions
-PL/SQL
-array binds
-statement cache