I've used the following Nginx CakePHP Vhost template for a while now, with success.
http://codepaste.appspot.com/show?id=270121
But now it seems that the newer version of CakePHP (1.3.3) doesn't work at all.
It might be that it has nothing to do with the above Vhost template and that it is an error with FastCGI or Nginx.
The error i...
I am building a book review application.
In the Review model, I have book_id and several fields like author_rating and/or scary_rating.
In the Book model, I have a search() function that I'd like to use to search for books with certain characteristics, like an author_rating of above 5, for example.
What is the best way to accomplish t...
Hi,
I am using fckEditor as text editor. When i upload images thru it the images were uploaded to app/webroot/fckeditor/images.
And when they're embedded it looks like
/fckfiles/SalmonSashimi.jpg
Until now it looks right.
But the image doesn't appear.
So when I browse the image directly, at here
http://www.in-culture.info/fckfiles...
Hi,
in cakebook on page http://book.cakephp.org/view/1331/Defining-the-Fields there is a sentence what I am not able interpret:
When defining fields for TranslateBehavior to translate, be sure to omit those fields from the translated model's schema. If you leave the fields in, there can be issues when retrieving data with fallback l...
Hello guys
I am developing an application in cakephp, I have to provide a user page for each user in the site like www.example.com/username, username will changes for each user, when a visitor comes to this url he gets details of the user with that particular username, but in cake username tries to get the controller with that name, How...
Hi,
I have base 64 encoded string that looks something like this.
cuVrcYvlqYze3OZ8Y5tSqQY205mcquu0GsHkgXe4bPg=
I have tried base64_decode and output is.
råkq‹å©ŒÞÜæ|c›R©6Ó™œªë´Áäw¸lø
I think I may be doing something wrong. I appreciate any help to convert base64 string to binary array.
Thanks
...
How do i fix Session Fixation in PHP/cakephp. I am on a shared host.
EDIT
i am on a shared host how can i enable it if i dont have aces to php.ini
...
This error is show Session duplication in cakePHP < 1.33 ,in cakephp 1.34 it show diffence but same error
This is picture error
I must delete session in database order to enter website. ( this happen when i dont enter website in couple hours )
...
Hi,
I'm trying to join tables to get a count on a field but am having trouble figuring out how to do it. here are my tables:
tags
id INT
tag VARCHAR
project_tags
id INT
project_id INT
tag_id INT
projects
id INT
...
I want show in my view something like this:
[tags.tag] x 23
[tags.tag] x 12
...
Now I'm no S...
This is probably a dumb question, but I can't find a definitive answer anywhere. Is it possible to access model data in a Controller, and if so, how?
I tried the following:
$this->set('mydata', $this->Model->find('all', 'conditions' => array('id' => 'someID')));
And accessing it via this in the controller:
$mydata['Model']['field']
...
I have a fresh install of CakePHP 1.3.4 Stable. I created a very simple application and i am trying to get it to use the theme directory view and layout instead of the default.
\app\controllers\tests_controller.php
<?php
class TestsController extends AppController {
var $name = 'Tests';
var $uses = array();
var $theme = 'rg...
I recently downloaded cakephp-1.3.4. I set it up on my web server. I followed the advanced installation settings. My folder structure is as follows.
/common/
cakephp/
app/
etc...
/htdoc/
The /htdoc folder is the webroot; cakephp resides in the common folder.
I have configured the paths in index.php to point to this folder...
I have a fresh CakePHP 1.3 install and it currently has one layout. I am about to add a few more but I don't want to have to keep coping and pasting the Header and footer in to each layout.
At first I thought that I could do this with an Elements, but it does not seem to render the Configure::read('var_name'); chunks while in an elemen...
Recently I have started studying cakePHP and I love the way it's organized. But I don't seem many useful tutorials for it as codeIgniter. Am I missing anything? Shall I switch?
PS I'm a computer engineering student and have only little time to study web dev. so i need to save time.
...
Hi,
I have built a cakephp app that needs the user to login or register(for new users), when he tries to download the file. And I use to javascript to redirect users to login page, and once they login I want users directed back to the download page they were on.
I am using
$this->redirect($this->referer());
works fine in chrome and...
I need to convert a part of a commercial script to use a translation mechanism. As it was written with cakephp 1.2.6 I decided to use the Translate behavior.
I made the i18n table filled up with the old content for two languages hungarian/hun and english/eng (insert/select). So now I have the same old content for both langs. The owner w...
We are doing an import of Magento-products into a CakePHP environment over SOAP. We have like 3.000 products and of course we want to keep the database clean of duplicate entrys.
We use InnoDB as product-databse in CakePHP.
We had different approaches:
We set the validate var on the product model and want the product-id to be unique....
I have 2 tables subscribers and distribution list and the relationship between them is HABTM. Now here particular users are associated to distribution list, i wish to add more users, but when adding new users to distribution list, i would like to show users who are not associated with that distribution lists. what condition should i writ...
hey has anyone successfully done this, do you have a simple example of this? the goal is to build a frontend to create the form thus the form variables being saved in the database.
do i need to know what fields are being saved /mirror with another table or can one do this in the same table?
...
i am creating a form with a check box called "agreement", the user must click this to confirm that he has agreed to the agreements. But how do i add this to the validation? can i do this from the model? this is a field that is not in the database.
im stuck here.
...