Re: How to download multiples files with cake?

2011-11-20 Thread Miles J
Correct, downloading multiple files at once isn't possible without multiple HTTP requests. Best bet is to zip it up. On Nov 19, 4:04 pm, euromark dereurom...@googlemail.com wrote: yes, zipping/packing them is one of the only changes you got. you could open tons of popups/new windows which then

Re: subclass AppModel? (WIP for Amazon SDB)

2011-11-20 Thread dtemes
Thanks Graham, I have already forked the repository under dtemes/ datasources. On 20 nov, 03:38, Graham Weldon predomin...@gmail.com wrote: Hey, If its something that you want to contribute to cake, there is an official Datasources repository: http://github.com/cakephp/datasources

Re: Associations in CakePHP with non-conventional database

2011-11-20 Thread euromark
usually you use two keys to create flexible relations key model and key foreign_id (some call it foreign_key) you just have to save array('model'='Pet', 'foreign_id'='1') or array('model'='User', 'foreign_id'='3') etc with the rest of the save data. then you can easily query based on the model

Permission problems with baking and running the app

2011-11-20 Thread func0der
Hey guys, i reinstalled my Ubuntu couple of weeks ago. Before that i had my cake running on an ntfs partition so i had no permission problems at all. Not that i formatted that partition to ext3 or ext4 or so i have a lot of them. I baked an app or a project - for me it's basicly the same. That

Re: How to download multiples files with cake?

2011-11-20 Thread func0der
and on top of zipping your files you should also comment your code in english ;) trains a lot and also you do not have to translate it if you post it in boards or usergroups like this. On Nov 18, 12:23 pm, Lucas Simon Rodrigues Magalhaes lucass...@gmail.com wrote: Hii, I have a doubt, how to

How to write unit test for getPopularItems()?

2011-11-20 Thread Todong
Hi,all The Item can be viewed by visitor, the viewed counter will be saved in database table(e.g. Items table). So getPopularItems() is to get the most viewed items, according to the viewed counter of items. The problem is: What should I check in test case for getPopularItems()? Since

First try does not seem to find the CSS file

2011-11-20 Thread johng
I have followed a tutorial for my first try using the scaffold, and I can connect to db and produce the output. But the data is barely readable as it shows a dark green on heavy green background. Obviously it is not finding the needed css file, but I cannot determine where to fix this. Here is

How to validate hasAndBelongsToMany multiple-select?

2011-11-20 Thread Mattia Manzati
I all, I'm trying to use the multiple validation method, but it seems that it doesn't works... This is my model: https://gist.github.com/1380696 Thanks in advance for any help! ^^ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Permission problems with baking and running the app

2011-11-20 Thread 0x20h
What version of cake are you using? There was an issue in 1.3.12, see http://cakephp.lighthouseapp.com/projects/42648/tickets/2080-core-cache-files-can-not-be-written-by-cron-and-web-user#ticket-2080-6 Am 20.11.2011 15:53, schrieb func0der: Hey guys, i reinstalled my Ubuntu couple of weeks

Re: Permission problems with baking and running the app

2011-11-20 Thread ADmad
Presuming you are using cakephp 2.0 you can specify 'mask' = 0777 in your cache config in app/Config/core.php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their

Re: how to include javascript in cakephp ?

2011-11-20 Thread simo ahalshaba
you can integrate javascript so script src='/js/nameFile.js' / script in your pageswithout any problem 2011/11/19 phpMagpie p...@webbedit.co.uk wait moment this question not duplicated Hmmm, me thinks it is duplicated. Thanks for the heads up. -- Our newest site for the community:

Re: cakephp: $this-redirect is not passing $student_info parameter from one controller to another controller action

2011-11-20 Thread varai
Yes, you are right, when I just pass Student.id to the view, it is working fine. However, I couldn't pass Student.id through redirect as in $this-redirect('controller'='MotorDevelopments','action'='view', $student_id) because it is giving the undefined variable error. So, i did that through

Re: Joining tables after belongsTo Associations

2011-11-20 Thread gabrielr
By the way, thanks. I solved it unbiding the model and adding that model in the $options['joins']- On 18 nov, 10:08, phpMagpie p...@webbedit.co.uk wrote: Never used the joins option so not sure in what order it processes model defined associations and joins or of your can influence them?  

Re: cakephp: $this-redirect is not passing $student_info parameter from one controller to another controller action

2011-11-20 Thread Jeremy Burns | Class Outfit
Then you are doing something wrong. Your redirect array should be: $this-redirect( 'controller' = 'motor_developments', 'action'='view', $student_id ); Notice that you have MotorDevelopments - which ought not to work at all. So long as $student_id has a value in the

Re: First try does not seem to find the CSS file

2011-11-20 Thread #2Will
this is normally because the .htaccess file is missing from the site root. because it is a hidden file or whatever... w On Nov 20, 7:43 pm, johng globalj...@gmail.com wrote: I have followed a tutorial for my first try using the scaffold, and I can connect to db and produce the output. But the

mongodb cakephp driver installation

2011-11-20 Thread varai
i'm trying to get mongodb to work with cakephp. I'm not sure on where to place ichikaway's mongodb driver for cakephp. The following is my directory structure: under c:/websites/ I have cakephp folder and my project merry_flowers folder. am i supposed to place the mongodb driver in

Help - Multiple Apps, Shared Core, Dispatch Errors - CakePHP 2.0.3

2011-11-20 Thread sotin
Hello, I'm hoping someone can help me out with this. I've got two apps using a shared CakePHP core (2.0.3). In Apache, I've configured each app on it's own subdomain. In my views, I have absolute HTML links that link between subdomains. I'm getting random issues where a request starts in one app

Re: Help - Multiple Apps, Shared Core, Dispatch Errors - CakePHP 2.0.3

2011-11-20 Thread Andras Kende
I had similar issue before, that was tracked down to APC mixing up things Resolved by changing each site cache prefix in core.php : Cache::config('_cake_core_', array( 'prefix' = 'domain1.com_cake_core_', Cache::config('_cake_model_', array( 'prefix' = 'domain1.com_cake_core_',

Re: Help - Multiple Apps, Shared Core, Dispatch Errors - CakePHP 2.0.3

2011-11-20 Thread sotin
Some progress: Disabling caching in both CakePHP apps (via Cache.disable in Config/ core.php) didn't seem to make any difference, but disabling APC all together (removed PHP extension) seemed to solve the problem. Any APC/CakePHP experts out there that can offer some insight? Thank you! --

Re: Help - Multiple Apps, Shared Core, Dispatch Errors - CakePHP 2.0.3

2011-11-20 Thread sotin
Thank you Andras, that did the trick! APC back up and running and requests are being dispatched to the proper controllers in each app. You can ignore my other reply, I hadn't read your suggestion yet. On Nov 21, 1:55 am, Andras Kende and...@kende.com wrote: I had similar issue before, that was