Questions tagged with behaviours

1 answer

0 votes

Asked by aiyer, on 29/1/10 in Views

validation and the file upload

Ok, so i've got my validation for file uploading working - awesome-o.

The problem i'm having is that my form doesn't, for whatever reason, want to *show* these errors. Here is my ctp file for the form:


<fieldset>
	<legend><?php __('Upload an...

1 answer

0 votes

Asked by Ranilson, on 11/3/10 in Controllers

Add a record and update another table

Hi everyone,

I would like to know how to add a record to one specific table and, after doing that, update another table's field, but I need to do that using the same action.

Thanks

0 answers

0 votes

Asked by vickygoelk, on 24/5/10 in Behaviors

Rule Based Js Inclusion?

Hi,

I am start work on cakePHP two week back. In these two weeks i learned lot of things and found one js_inclusion.php which I understand what is the used of this file in a project. But i confused how i can activate this file in our project....

1 answer

0 votes

Asked by zaph, on 4/6/10 in Models

Callbacks not triggered for associated models when using saveAll() ?

I'm trying to use the AclBehavior to create ACOs when I create a record from a model. This seems to work fine if I create the record directly from the model and save. However, I have this situation where any record created as part of the...

1 answer

0 votes

Asked by krolow, on 18/8/10 in Models

Cakephp model inheritance

Hi.

I'm starting a new project and again I'll need use a model inheritance, the last time I did it by hard code, using bind and unbind, but that time I'd like ask if CakePHP has one behavior to help it or someone have another solution. I'll try...

1 answer

0 votes

Asked by double07, on 17/9/10 in Behaviors

Get data from parent on index page

Hi All,

I'm stuck on a fairly basic problem... I'm looking to access the data of a parent record for all the records on an index page.

I have a section of my site which basically is self-referential (using the tree behaviour) so any of the records...

0 answers

0 votes

Asked by erik, on 17/10/10 in Models

Problems populating data from translatable fields.

Hi,

I've got a model having the Translate-Behaviour. As I can see when I debug() the data of that entry, accosiated data has been fetched properly.

Now, I'm assigning that to $this-data, so this array contains data from multiple languages.

At least,...

1 answer

0 votes

Asked by deafpanda, on 17/11/10 in Models

Model not being queried when I want it to

Hello,

I have a model, Media, which hasMany Vote. Vote belongsTo Media.

I can access Vote through MediaController - ie $this-Model-Vote-find('list') works. However, I have a couple of functions defined in the media.php Model file which do not...

0 answers

0 votes

Asked by icc97, on 16/3/11 in Behaviors

Translate behaviour not working in Chrome

I've got Translate behaviour happily working for my cake application. But I now find that for some reason it doesn't work in Chrome. It works in Firefox and even Internet Explorer, but not Chrome (specifically I'm using Iron browser v9 which is...

2 answers

0 votes

Asked by , on 29/7/11 in Helpers

<?php echo $session->read('user') ?> is not working in .ctp file how to configure

i assigned this->Session->write('User.username',$userInfo['User']['username']); in controller part but when i retrive using echo $session->read(); it shows error

1 answer

0 votes

Asked by Rathika, on 8/8/11 in Behaviors

How to use cakephp in CMD

Am new to cakephp. I want to know how to use cakephp in cmd.

1 answer

0 votes

Asked by Jimi, on 11/9/11 in Controllers

cakePHP tutorial - Fatal error: Class 'Post' - HELP

Hello,

I am new to cakePHP and have been working through the 'Posts' example on http://book.cakephp.org/view/1535/Create-a-Posts-Controller.

I have followed this tutorial and repeated my steps and am still having issues accessing the posts at

1 answer

0 votes

Asked by WE5TY, on 20/12/11 in Controllers

Sharing a function with Model,Controller and Component.

CakePHP 1.3

I have a file stored on the server with port numbers and URL's depending on what server it is.

I need to read the contents from Models, Controllers and even a component.

I don't want to have to write this code out many times so I have...

1 answer

0 votes

Asked by andrew3719, on 19/2/12 in Controllers

html escape

Hi baker ,

While I building my blog , most code in cakephp default html escape is set the true , so when any user post a html tag , it will be filter , now I want to filter all html tag except IMG tag , Izzit possible ??

I want my user able to...

1 answer

0 votes

Asked by andrew3719, on 20/2/12 in Components

problem with auth

Dear baker :

I have a question , I set my page is now allow to be access by non login user except index , I try to access the non authorize page and it direct me to login page , is that normal did I do something wrong??

<< previous next >>