Newbie questions regarding views files and layout

2010-06-27 Thread jimbo
I have been looking through the documentation and tutorials regarding changing the default layout. When the home page is loaded it states To change its layout, edit: C:\CakePHP\uniform\UniServer\www \project1\views\layouts\default.ctp however, the other articles that I have read state that

Re: Properly Normalizing a Products Database to work harmoniously with Cake

2009-11-25 Thread jimbo
Hi, I have similar kind of experiences and this seems like a very sensible solution... one thing I would add to this is a thing called Attribute Groups or with properties, Property Groups. This would enable you to specify predefined sets of properties / property types for different types of

Re: Best way to setup my comments system

2009-06-23 Thread jimbo
I think you could also use behaviors - put all the common functions into the behavior and then set each of the model classes to behave. :) See more http://book.cakephp.org/view/88/Behaviors On Jun 21, 11:47 pm, Miles J mileswjohn...@gmail.com wrote: I thought of an idea if I use multiple

Re: Poll: what do you hate about CakePHP?

2009-05-13 Thread jimbo
I have to add one point to the lack of advanced documentation ... it is getting better but it's not quite there yet ... API docs are relatively good, but I think they lack some examples of for example how to use parameters in function calls. I have not found it feasible to go through core cake

Re: How to validate password length

2008-09-28 Thread jimbo
Hi, I think the cleanest way to handle this issue is to use model's beforeSave method to encrypt the plaintext password as this method is called AFTER validation is done. This way you can maintain your original validation code and it is more readable and understandable and you do not have to

Re: Implementing REST service with POST and PUT

2008-07-02 Thread jimbo
: http://c7y.phparch.com/c/entry/1/art,cakephp-rest jimbo wrote: I am trying to implement a RESTful web service in Cake 1.2 (RC2) that could receive XML content through HTTP POST and basically add that content as a new row to a db (through a basic simple model) or updating an existing one

Implementing REST service with POST and PUT

2008-07-01 Thread jimbo
Hi, I am trying to implement a RESTful web service in Cake 1.2 (RC2) that could receive XML content through HTTP POST and basically add that content as a new row to a db (through a basic simple model) or updating an existing one (HTTP PUT). I have managed to read data from db and pushing that

Html Helper link onclick option question

2008-05-22 Thread jimbo
Hi, can anybody help me with this problem, I am creating a simple link in one of my views and I am having a problem giving an onClick option/ attribute for the link, as it seems cake is escaping/encoding the javascript function special characters like this: echo $html-link(foo, '#',