Using an ajax helper created for use with Jquery I've created a form that posts comments to "/comments/add", and this works as expected on my local wamp server but not on my production server. On my production server I get a '404 error, cannot find /comments/add'.
I've spent quite a bit of time searching for a resolution with no luck so...
I have an one to many association in which a Thing can have many Statuses defined as below:
Status Model:
class Status extends AppModel
{
var $name = 'Status';
var $belongsTo = array(
'Thing' => array(
'className' => 'Thing',
'foreignKey' => 'thing_id',
);
}
Thing Model:
class Thing exten...
I have previously baked a controller for a model that I have created.
When attempting to bake the view using cakephp I get the following errors:
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V...
on googling i found this code facebook.fbml.refreshImgSrc('imgURL')
how to use this code with cakephp..
...
Hello Everyone,
I have been busy integrating Wordpress to one of a CakePHP application.Last Monday I cracked the way to integrate it.Now another problem I faced was that Client wanted to auto login the users who are login in CakePHP side,I did that too and it works fine in local.I am using the Session Variable of CakePHP which is set in ...
Hello,
I've got model that use ExtendAssociations, but for some reason deleteHABTM doesn't seem to work on some models (no idea :/). Is there an easy way to just delete a single row from the join table?
Regards,
Paul
...
Hi,
Im doing a simple save, and its not entering all the data. I have two models, message and emailmessage. The message table is getting populated ok, but the emailmessage table, is only getting the foreign key message_id. Below is the code. Anyone notice anything unsual?
EmailMessageModel
class EmailMessage extends AppModel {
var $n...
Hi,
I have a legacy script that I would like to integrate in a cakephp app. The script makes use of $_POST and such and since I'm quite a noob I would need some help for the integration.
Here is how the script looks like:
THE JAVASCRIPT:
prototype.js
builder.js (these two are from the prototype fw)
lib.js (makes a ajax requests to r...
Hi,
I have CakePHP app in which I'd like to attach gallery to multiple resources. Let's say I've got artists, each one has own gallery. I've got articles, every article has some images attached to it and so on. Now I set up tables like this:
Artists hasMany Artistimages, fields in artistimages table are: id, artist_id, filename, filet...
I have the output array from a $Model->find() query which also pulls data from a hasMany relationship:
Array(
[Parent] => Array
(
[id] => 1
)
[Child] => Array
(
[0] => Array
(
[id] => aaa
[score] => 3
...
Hey! Total CakePHP noob here.
Updated at bottom \/
This is sort of a two fold question. In a view that is used for adding user objects I would like to use a drop down (selection) field in the form.
Each user belongs to a group so when I add a user I want a drop down that contains all of the groups that the user could possibly join. ...
When I use the form helper to make a time input,usaually I write code as follows
<?php
$options = array(
'label' => '',
'type' => 'datetime',
'timeFormat'=>'24',
'separator'=>'-'
);
echo $form->input('Service.endtime',$options);
?>
But now I get a problem that I want to make a time input style such as
month-day-hour
...
I'm extremely new to CakePHP. From what I've gathered, it seems like I can have multiple applications that all share the same app and cake directories.
So, let's say I have two applications. CakeFacebookApp and GenericCakeBlog. These applications are completely separate from each other and will have completely separate URLs, but they...
Developing with cakephp 1.3 (latest from github).
There are 2 models bind with hasAndBelongsToMany: documents and tags. Document can have many tags in other words. I've add a new document submitting form there user can enter a list of tags separated with commas (new tag will be added, if not exist already). I looked at cakephp bakery 2....
HI I am new to cakephp so any help would be grateful.
I have created a form and with one of the fields when the user has filled in checks to see it it already exists and offers other suggestions. I have used the Ajax observerField method to do this. I want the user to be able to click on the suggested names(radioboxes) and then it update...
Any ideas please?
Thanks.
...
I've got a bunch of Ajax links in a menu that reload a div called #ajaxupdatediv. I want to display another div while that's loading the new content, so how would I fire off both effects?
<div id="#ajaxupdatediv">
Content will go here
</div>
<div id="ajaxloadingdiv">
...Loading...
</div>
Here's a bit of the PHP
array(
'...
For those of you who may have read this earlier, I've done a little research and completely revamped my question. I've been having a problem where my form requests get blackholed by the Security component, although everything works fine when the Security component is disabled. I've traced it down to a single line in a form:
<?php echo $...
I just started using CakePHP for a small project. I have rails experience, and I can see Cake and Rails are really similar, but I can't seem to find where to change the environment in which you are working. How can I do so? I'm currently working with test because I want to see all those debugging messages, but I want to see how the final...
Following the intro cakephp tutorial to create a blog, I created a database to view, add/edit/delete businesses. Each business has a state or province associated with it, and I'm wondering how I would go about to generate a page that lists all the States, like /states and a page would be like /states/california and lists all the business...