cakephp

How to obscure the numbers in the textarea field.

Hi, I have using cakephp and I want to obscure all numbers which is more than six digits. something like this $string = "My id number is 77765444 in Sales dept."; becomes $string = "My id number is XXXXXXXX in Sales dept." I appreciate any help. Thanks. ...

Cakephp ACL Component

I am using cakephp ACL component to make site secure but the problem is when i am trying to deny a particular action for eg.cake acl deny Group.3 Notes 'delete' , it denies all the action of the controller for that group.The aros_acos table is as follows---- id aro_id aco_id _create _read _update _delete 1 1 1 1 1 1 1 2 ...

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...

redirect on conditions after saving a record

hi, I have a users controller, where if I add a user I want to redirect based on the usertype a user selects on making his account the situation: users table id name usertype_id The user add form has a select box for user type, I have two types of users: teachers and students (each another table, model, controller) if the user cho...

cakephp : how to get an array of elements from a web form

Hello In my cakephp form I have following code <p> <?php echo $form->input('option[]',array('size'=>13)); ?> </p> <p> <?php echo $form->input('option[]',array('size'=>13)); ?> </p> <p> <?php echo $form->input('option[]',array('size'=>13)); ?> </p> <p> <?php echo $form->input('option[]',array('size'=>13)); ?> </p> I am trying to get v...

cakePHP no longer giving debug information

I just upgraded from cakePHP 1.2.8 to 1.3.5 and now the debug information (that from the level set in the Core) does not seem to be doing anything anymore. No matter what level I set 'debug' to, it doesn't print the queries at the bottom of the screen. Any idea what I may have done wrong? ...

How to make PHP / Cakephp database driven pages that are indexed as static pages by Google

If you have a database driven website based on PHP / Cakephp , how do you make the database driven pages to look like somesite.html or somesite/ - so that the pages can be indexed by Google or so that these pages can be directly linked to ...