Hi, I'm looking to get a single sign on set-up between a cakePHP (1.3) app and a vBulletin (4.0.2) forum.
I've managed to get so far with it, i.e I've been able to get Auth to use the vB user table to let people login, and that works pretty well - the issue now is getting the two different systems to share a session so that users can pa...
When using CakePhp would it be advisable to set recursive = -1 in the AppModel class and then use the Containable Behaviour whenever you need a deeper data relationship?
I believe this would give my applications the best chance of avoiding database related sluggish performance but is the methodology sound?
Thanks
Leo
...
i want to submit a form via ajax javascript to cakephp function.
cakephp function accepts $this->data, so i want to convert html form datas to cakephp function acceptable format i.e $this->data(array)...
how to do this in javascript(jquery)
...
After much Googling the only Mailchimp CakePHP stuff I can find are two different Components.
Whilst these are great (big thanks to the authors for sharing them), I'm looking for a datasource that I can use.
This will give me my automagic validation as usual.
I've heard rumours on the #CakePHP IRC channel that one exists, but can't t...
I am using CakePHP framework, it redirect everything to the app folder using .htaccess, and then I set up a WordPress blog in /news/ folder outside of CakePHP, so I don't want everything in /news/ to be redirect, so I modify the .htaccess, and here is the final version:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
...
i configured database in xampp. but i don't know no how to run php pages in cake php .
...
plz help me
i am creating multiple chechbox with same name and id how i get value of array when i submited form ? using cake php
create('Report', array('action'=>'add')));
for($i=0;$i
" id="Report" />
}
}
?>
...
What would be the best way to set up my routes so different types of posts have different URLs?
For example, regular posts are /posts/slug while featured posts are /featured/slug
Both link to the same controller and action /posts/view/slug.
I experimented with different ways of doing this but with little success. Currently my link par...
I have a model structure: Category hasMany Product hasMany Stockitem belongsTo Warehouse, Manufacturer.
I fetch data with this code, using containable to be able to filter deeper in the associated models:
$this->Category->find('all', array(
'conditions' => array('Category.id' => $category_id),
'contain' => array(
...
Hi im kinda new in cakephp and having a lot of trouble adjusting.. Here's my biggest problem ..
Im trying to pass a parameter to an action, it does load, but when my script goes from the controller to the view, and goes back to the controller again, its gone.
CONTROLLER CODE
function add($mac = 0)
{
if(isset($this->params['form'][...
Is there a way to extract the array for a specified id with the set::class utiliy? I can't figure out the XPath.
I.E. I would like to extract the array where the id = 1
[Document] => Array
(
[0] => Array
(
[id] => 1
[filename] => 1.txt
)
...
We're building a data tracking web app using CakePHP, and I'm having some issues getting the database structure right. We have Companies that haveMany Sites. Sites haveMany DataSamples. Tags haveAndBelongToMany Sites.
That is all set up fine. The problem is "ranking" the sites within tags. We need to store it in the database as an archi...
I'm using cake & have a web form for entering URLs to go into my db. There will be one input space (url1) and below that a link that says "add another URL" which, when clicked, generates a new form (url2) and reuses the "add another URL". So it would be like:
echo $form->input('name');
echo $form->input('id');
echo $form->input('url1'...
whats the use of calling a cakephp function
http://localhost/project/controller/method.hello
so whats hello?
but it requires views/method/hello/method.ctp...
...
I am new to cakephp and I'm trying to accomplish something that should be relatively easy.
I have 2 models projects & categories bind by HABTM relationship.
I am trying to perform the following query -> find all projects that belong to a category
$projects = $this->Project->find('all', array('conditions' => array('Category.slug' => $ca...
Im looking for somthing that can belong to many many models and, hopfully, has all the resizing functionality built in too.
Wondering if there's any good suggestions out there, I don't want to pick the wrong one.
Or is it just worth building my own?
...
First time cake user and I'm having real apache problems. For some reason the .htaccess is trying to find
File does not exist: /Library/WebServer/Documents/Users
but there is no such directory as Users. I have tried setting up the following also:
/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80 >
DocumentRoot "/Users/username/...
There are 2 Models: Project & Category that are bind with HABTM relationship.
I would like to perform a search from projects controller that can do the following:
FIND all DISTINCT Project.scedule WHERE Category.slug != 'uncategorised'
Apologies for the syntax, I'm no sequel expert.
What I have managed to do is to retrieve all projec...
I'm having a strange routing problem with a site I just uploaded, and I've made a number of changes to test what's happening. It doesn't make any sense.
My setup is:
I'm using one plugin, which I've included all the routing in the routes.php file.
I've also included the routes for two other controllers, 'events' and 'updates'
they ...
I'm using counterCache to track the number of chapters that have been posted to their related stories.
This all works fine, apart from the fact that when the chapter_count field in the database gets updated, the modified field for that record does not.
Is there any way that I can set Cake to automatically update the modified field when...