cakephp-1.2

(CakePHP) Form field missing content

I'm using Cake1.2 and have a CMS page which was working fine. Now it seems that someone has pasted in content from Word, which has obviously got lots of random ' and " characters in. The classic word ones. Now my form will not display the content. I have pr()'d my $this->data and all the content is there, hell I can even echo it out. I...

How to add new child of many to many relation in cakephp parent add form?

I'm learning cakephp for some time and it's very nice, I'm using the cake bake to create my classses. Suppose I have a animal entity and a food entity and they have a many to many relation, and I'm on the add animal view, how can I add the option to add 3 new foods to this animal on this view? and what should the controller code look li...

How to pass data in url using cakephp?

I wanted to now if there is a way to pass a simple string inside url and cakephp some how put it inside one of the inputs of my form without any code writing on view side? I tried calling this->set("bla","bla"); the field name is bla but nothing changed in view ...

Having actions/pages without requiring a login

Hello, I am building an application using cakePHP. Do we have a method where we can allow public users access to certain pages without logging in. There would be a few pages such as about us regarding the whole organisation or a contact us page. Is there a method to avoid login access, something similar to how we have ways to add compone...

Filtering data using ajax observefield

Hi all, I ve tried to implemented filtering data (list base on selected category) using dropdown with observefield and ajax pagination. I use session to remember selected category in order to keep pagination. Here is my code (Cakephp 1.2) In view : echo $form->select('Category.id', $categories, null, array('id' => 'categories'),'Fi...