While struggling with incorrect user validation rules I’ve decided to solve the issue from the opposite side - automatically format user input. Format includes: capitalize first letters of the words, capitalize first letters of the sentences, ad spaces after punctuation marks, etc. In fact there could be added other rules later. Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: November 26, 2009, 12:37 pm | No Comments »

I know it’s against the main design stream of CakePHP applications to use models in the components and I was restricting myself from doing that… but finally I decide to make a try and see will that simplify my CakePHP applications development. Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: July 31, 2009, 1:03 pm | No Comments »

CakeFest
Read the rest of this entry »

Posted by Rostislav Palivoda, filed under News. Date: April 2, 2009, 8:25 pm | No Comments »

While searching for ready exception handler I did not found any that could match following requirements:
1) Handle Exception and any other (AppException, MyAppException etc) exception that are Exception super class;
2) Send email notification about exception;
3) Dump exception to log;
4) Show nice page to the user:
a) A custom landing page can be defined for exception;
b) For all other exceptions a default landing page should be used;
5) Landing page text should be localizable; Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: March 30, 2009, 9:34 pm | 1 Comment »

It’s clear - to make null values on top can be used Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: November 22, 2008, 2:11 pm | No Comments »

After several try to make a graphical submit form button with localizable text in it i found it’s not so simple. Furthermore there are no cases I found in the Internet. This mean weather I hav to create an image button for each language or… here is the story how I made this. Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: October 7, 2008, 10:18 am | No Comments »

25  Apr
Bridgecamp Riga

Posted by Rostislav Palivoda, filed under News. Date: April 25, 2008, 11:10 pm | No Comments »

Here is peace of code that can allow you to link CSS per controller action, just place the code in to the layout head section /app/views/layouts/default.ctp Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: April 18, 2008, 10:21 am | No Comments »

In my own opinion database content translation with core CakePHP ‘translate’ behavior is a kind of pain when the matter comes to HABTM relations and any bulk records manipulations. It’s not a secret that it is also pain for java ORM engines, like Hibernate. Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: April 15, 2008, 6:49 pm | 50 Comments »

Use case: Show translation of database content.

Read the rest of this entry »

Posted by Rostislav Palivoda, filed under PHP. Date: April 10, 2008, 10:47 am | 1 Comment »

« Previous Entries