Re: View Caching issues

2006-11-13 Thread AD7six
> Does cake perhaps check if it can create the folder once, and then never > again? > > Rory I wouldn't expect cake to try to create anything that is part of the download: https://trac.cakephp.org/browser/branches/1.1.x.x/app/tmp/cache HTH, AD7six Please note: The manual/bakery is a good place

[SOLVED]Re: View Caching issues

2006-11-13 Thread Rory
Hi All I appear to have solved the problem. I downloaded the new version of Cake this morning - but this also did not solve my problem. I trawled through the cake folder and everything there seemd to be telling that caching was working. Finally, I tried manually creating the folder app/tmp/cache/

Re: Changing theme

2006-11-13 Thread Dr. Tarique Sani
On 11/14/06, Eric <[EMAIL PROTECTED]> wrote: > Sry for the late reply. > I really wanna start. BUT, I am confuse also. > Where should I start? > The controller? or ? After you put theme.php in your views folder Start with your app_controller.php put var $view = 'Theme'; var $theme = "YourTh

problem with sortables

2006-11-13 Thread Claudio Poli 
hi, I've this code in my view: ID: - sortable('list', array('url' => '/dashboard/ordinapagine', 'update' => 'list-info', 'complete' => 'new Effect.Highlight("list",{})'))?> in my controller: function ordinapagine() { $ids = $this->params['form']['list'];

Re: generateList()

2006-11-13 Thread nate
The wonderful thing about open-source software is that you can pick apart the portion you're interested in, look at the parts that make it work, and use them to make your own. Cake isn't designed to do everything you could possibly want to do, just most things. And for the things it doesn't spec

Re: Re: Redirect to homepage after an AJAX form submission.

2006-11-13 Thread Samuel DeVore
Actually I believe the correct code is :) codeBlock(); ?> alert('Nate is a god.'); window.location.href = "url("/"); ?>"; // Show an error On 11/13/06, nate <[EMAIL PROTECTED]> wrote: > > Here's your response view: > > codeBlock(); ?> > >

Re: Redirect to homepage after an AJAX form submission.

2006-11-13 Thread nate
Here's your response view: codeBlock(); ?> window.location.href = "url("/"); ?>"; // Show an error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this g

Re: Changing theme

2006-11-13 Thread Eric
Sry for the late reply. I really wanna start. BUT, I am confuse also. Where should I start? The controller? or ? Can U write like a steps for this? I know there is lots of code to do. BUT, I really got no idea. There is lack of docs for theme. Maybe, you can post a artciles in the bakery. Cau

How to display a xml file for certain number?

2006-11-13 Thread Eric
Hi, Now, I am using SimpleXML and MySql to setup a rss-reader. It works fine. 1.. So, How can I control the numbers items of a rss displayed ? Defaultly, It will display all the items. How to control this? For example, a dropdown list for 1,2 3 items. 2.. How to do some cache for the

Re: Suggestions on a multi-app installation

2006-11-13 Thread mariano.iglesias
Look at this thread. This issue has been covered before: http://groups.google.com/group/cake-php/browse_thread/thread/b78b0abbb0d72136/ddc05cce0b688f52?lnk=gst&q=&rnum=20#ddc05cce0b688f52 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: generateList()

2006-11-13 Thread Mikee Freedom
or you could write on exceptionally cool one in your app_model.php and then use it throughout. depends on the requirements though. good luck. mikee On 14/11/06, Christoph <[EMAIL PROTECTED]> wrote: > > > but just think about all the functionality you didn't have to write. a > > simple advanced

Re: Retrieve URL - New thread.

2006-11-13 Thread mariano.iglesias
One thing I forgot on the above code. If there is an error on the login details the URL gets lost. So on the login() action right before you set the errorMessage add: if (isset($this->data['User']['url'])) { $this->set('url', $this->data['User']['url']); } --~--~-~--~~--

Re: generateList()

2006-11-13 Thread Christoph
> but just think about all the functionality you didn't have to write. a > simple advanced generateList method is nothing in the scheme of things :) More than a fair point. It's just that with the number of complex SELECT boxes I'm going to have on my site, I'm going to have to write at least 1

Re: Retrieve URL - New thread.

2006-11-13 Thread mariano.iglesias
Quite simple. Take advantage of the HTTP_REFERER index available at $_SERVER. You should take this into consideration and add it to your login form when the login was accessed without submitting any data. So on your controller where you handle the login (I assume you use a login() action) you cou

Not quite understanding associations

2006-11-13 Thread Christoph
I have the following tables: users collections, FK user_id, FK game_piece_id game_pieces, FK games_set_id games_sets, FK game_id, FK set_id games sets So, if I understand correctly: users $hasMany collections collections $belongsTo users, game_pieces game_pieces $belongsTo game_sets games_sets

Re: generateList()

2006-11-13 Thread Mikee Freedom
but just think about all the functionality you didn't have to write. a simple advanced generateList method is nothing in the scheme of things :) then you can save other people from writing the same thing by posting the function in the pastes or the bakery. isn't open source wonderful! On 14/11/0

Re: generateList()

2006-11-13 Thread Christoph
I took a look at many of those threads and none seemed to address this specific issue. When I turn debugging on to level 3, it is showing me all the SQL executed and the query used to fill my SELECT box for my game pieces doesn't look anything like it should. It's not using any joins whatsoever,

Re: Bind parameters in DB layer

2006-11-13 Thread nate
Because (a) an abstraction layer on top of an abstraction layer would be too slow, as neither of those packages are optimized for how Cake works, (b) it would make Cake dependent on an external library, over which we have no control, and finally (c) it would disallow us from distributing Cake unde

Suggestions on a multi-app installation

2006-11-13 Thread F. Robin Knight Jr
Hey everyone, I've been lurking on the list for some time now, and thought I'd send of my first message. I have two extra files (one component and one helper) that I've put into my /cake/libs. At first I told myself I shouldn't do this, as it's not really convention to mess around with the core,

Redirect to homepage after an AJAX form submission.

2006-11-13 Thread avy
Hi everyone! I have the following problem: I have a login form contained in a div called 'popup' which gets shown via AJAX when a user clicks an ajax->link on the homepage. I'm submitting the login form through ajax->submit(). In my Users controller, login() method, I set the following logic: -

Webservices

2006-11-13 Thread Christoph
I'm fooling around w/cake to try to see what it's capable of. All of my MVC parts have all been created by bake.php and I've done very little modification from there. I'm still learning. So I have a users controller with the default index action (as provided by bake). The manual (http://manual

Re: 2 noobie questions

2006-11-13 Thread the_woodsman
Hi, Just to try and help with point 1 "Is it possible to tell a controller to use multiple views? It's own and also any other? " The auto-rendering of views matching the controller action is handy, but not enforced - I believe you're looking for the Controller's render() method. As per the

Security and performance of Cake PHP

2006-11-13 Thread Ger_Val
Hi! I'm new to CakePHP, seems it's a really great framework. I didn't find any bad comments about it in the Internet. Probably, I was looking badly. :) What about using CakePHP for large projects? My concerns are about performance and security. I've read some posts and people say performance is no

Retrieve URL - New thread.

2006-11-13 Thread Bernard Grosperrin
I would like to improve my rather crude login system. For now, after login, I redirect the user to '/', or the "Home" page. I would like to "trap" or retrieve the URL the user intended to go to, pass it as parameter to my login function, to redirect to this URL instead of Home. Is there a way t

Re: [professionel] RE: Retrieve URL?

2006-11-13 Thread Bernard Grosperrin
Mariano Iglesias wrote: > Please post this message on its own thread. I have a possible solution but > it wouldn't be polite to the other readers of this thread to completely > change the subject this thread was about. Sorry, did not realize I did that!~~- Bernard --~--~-~--~~---

RE: Retrieve URL?

2006-11-13 Thread Mariano Iglesias
Please post this message on its own thread. I have a possible solution but it wouldn't be polite to the other readers of this thread to completely change the subject this thread was about. -MI -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Bernard

Re: Cake PHP Vs Prado Vs Symfony

2006-11-13 Thread Bert Van den Brande
On 11/13/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > I actually feel the opposite :) IMHO CakePHP is better suited for bigger > projects, but it always comes down as to what developers like really. Just > two days ago I did a stress testing of an application I built with Cake on > two smal

Retrieve URL?

2006-11-13 Thread Bernard Grosperrin
I would like to improve my rather crude login system. For now, after login, I redirect the user to '/', or the "Home" page. I would like to "trap" or retrieve the URL the user intended to go to, pass it as parameter to my login function, to redirect to this URL instead of Home. is there a way

Re: Multi-page form validation

2006-11-13 Thread Ismael S. Kafeltz
I made a javascript to dynamically create *hasmany* relatioships. For example, i have N e-mails in one view called "Users", in the same view i add/remove/alter all emails in the same time, not one by one as i saw somewhere using cake because it doesn't have support for multiple data, and you must

Re: table associations belongsTo- i don't understand ...

2006-11-13 Thread dme69
SORRY !!! I was so stupid ! My model wasn't good. Thanks for your help. Dominique. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com

Re: Multi-page form validation

2006-11-13 Thread devarz
Ismael S. Kafeltz skrev: > I made a website with 11 steps with some 30 tables > A little complex, if you need some help email me. > Could you share with us the skeleton of your form/validation framework? It'd be interesting to see how you implement it with cakephp. Thanks! --~--~-~--~

Re: table associations belongsTo- i don't understand ...

2006-11-13 Thread dme69
I'm going to tell it more simply i think ... I hope ! :) Table A - id - name - country_id Table Country - id - name I want, in the add.thtml of Table A, to have a list with all the name of table Country My english is like my knowledge of cake : poor :) Thanks. Dominique. --~--~-~--~

Re: table associations belongsTo- i don't understand ...

2006-11-13 Thread Ismael S. Kafeltz
I am not sure, but if you put this: $uses = array('Vins', 'bla', 'bla'); Or: $this->Vin->Region->generateList()) should be: $this->Region->generateList()); // assure to put: $uses = array('Region','..','..'); Or it will give "undefined property" --~--~-~--~~~--

table associations belongsTo- i don't understand ...

2006-11-13 Thread dme69
I'm sure my question is very simple but i understand nothing ! :( I want to have the possibility to select a value in a list from a table when adding an element : class VinsController extends AppController { var $name = 'Vins'; var $belongsTo = 'Region'; function beforeFilter() { $th

Re: Getting data from "hasMany" relationship.

2006-11-13 Thread Mikee Freedom
so your associations are as follows Blog { hasMany = array(Image); } Image { belongsTo = array(Blog); } and your tables represent these associations with the correct foreignKeys? Can you paste your code in to the pastes bin: http://www.cakephp.org/pastes/add and then provide the

Re: Cake PHP Vs Prado Vs Symfony

2006-11-13 Thread mariano.iglesias
I will. Don't have the report with me as I left it on the office. But will do when I regenerate it after adding more modules to the app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: Need freelance help with cakephp project

2006-11-13 Thread mariano.iglesias
Guys shoudn't "I'm interested" kind of messages be private replies to the sender? This messages don't provide any information to the rest of the group. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Getting data from "hasMany" relationship.

2006-11-13 Thread TWIOF
Cheers Mikee, doesn't seem to work though, if i change the relationship top hasOne it finds it. But I'd like to do it with hasMany --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: 2 noobie questions

2006-11-13 Thread TWIOF
Woops, replied to wrong post, thick ot what! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send ema

Re: 2 noobie questions

2006-11-13 Thread TWIOF
Cheers Christoph, doesn't seem to work though, if i change the relationship top hasOne it finds it. But I'd like to do it with hasMany --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: View Caching issues

2006-11-13 Thread Rory
Hi Nate I tried setting up the actions in $cacheAction as well as just setting $cacheAction to a scalar value like 1 minute or 1 hour - whihc if memeory serves, would have made caching apply across the board to all actions? I will try pasting the code first thing tomorrow. Also, I came across a

Re: Bind parameters in DB layer

2006-11-13 Thread kickdaddy
Bummer. Prepared statements are a huge factor in increasing performance of your application (in terms of database performance). I guess this could open up a larger can of worms, but couldn't standardizing on PEAR or ADODB, both of which support prepared statements lead to this being support fra

Re: Bind parameters in DB layer

2006-11-13 Thread nate
Things like bind parameters and prepared statements are driver-level optimizations, which aren't super high priorities; but if you can implement them consistently across all drivers, or transparently in one, we're all for it. If you'd like to submit an optimization patch for a particular driver,

Re: View Caching issues

2006-11-13 Thread nate
It could be how you have your URLs set up in $cacheAction. Paste your controller and view code to http://bin.cakephp.org/ and post the link back here so we can see what it is that you're doing. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: generateList()

2006-11-13 Thread Mikee Freedom
Hey Christoph, I'm pretty sure this topic was covered not long ago. Do a quick search on the google groups for generateList and you'll find some interesting conversations. http://groups.google.com/group/cake-php/search?group=cake-php&q=generateList&qt_g=1&searchnow=Search+this+group cheers, mik

Re: Getting data from "hasMany" relationship.

2006-11-13 Thread Mikee Freedom
Morning TWIOF, You might want to look at your level of recursion for your blog model. If the associations are in place correctly you should be able to retrieve all of the related images when you do a findAll on your blog model. try $this->Blog->recursive = 2; in your controller or $recursive

2 noobie questions

2006-11-13 Thread Christoph
I'm still trying to figure cake out and I've a few questions, both about varying degrees of code re-use. Let me say first that I created the MVC for all of my database tables using bake.php. I must say, it is a *very* handy utility for those just learning. 1) Let's say I have 2 sections of my s

Re: generateList()

2006-11-13 Thread Christoph
So no one knows how/if something like this can be done? I was hoping someone would... thnx, Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Getting data from "hasMany" relationship.

2006-11-13 Thread TWIOF
Hi everyone, I've got a custom model function that gets titles to blog posts (and their "belongs to" data e.g. author). I have related images as "hasMany" but can't call them in a simple fashion... I'm using this in the model: $fields = array('blog.title', 'blog.date', 'author.name'); return $t

Re: View Caching issues

2006-11-13 Thread Rory
Hi Todd Yes - I did forget to mention that - but I have done it - to no effect :(. I have also set the permissions to 777 on app/tmp - but I have not seen any results one way or the other. Rory --~--~-~--~~~---~--~~ You received this message because you are sub

Bind parameters in DB layer

2006-11-13 Thread kickdaddy
Looking through the cake code and the SQL it generates, I noticed bind parameters missing. What is the plan for utilizing bind parameters in both the scaffold/auto-discover code and in our own SQL calls (like findBySQL and Model::query)? Is that coming in 1.2 or 2.0? Thanks. --~--~-~-

Re: Need freelance help with cakephp project

2006-11-13 Thread [EMAIL PROTECTED]
Hello, i am very interested in this but can you provide me more info. about your project? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Cake PHP Vs Prado Vs Symfony

2006-11-13 Thread Jon Bennett
> I actually feel the opposite :) IMHO CakePHP is better suited for bigger > projects, but it always comes down as to what developers like really. Just > two days ago I did a stress testing of an application I built with Cake on > two small servers: a LAMP on a Pentium 3 GHz, 2 GB RAM and on a Win

RE: Cake PHP Vs Prado Vs Symfony

2006-11-13 Thread Mariano Iglesias
I actually feel the opposite :) IMHO CakePHP is better suited for bigger projects, but it always comes down as to what developers like really. Just two days ago I did a stress testing of an application I built with Cake on two small servers: a LAMP on a Pentium 3 GHz, 2 GB RAM and on a WinXP, Apac

Delete and HABTM associations

2006-11-13 Thread Gonçalo Marrafa
Hi, bakers. I've posted this question on the group before but had no conclusive response. When i try to delete a record from a model that has a HABTM association with other model(s), the records in the join table are deleted _after_ the record in the model. As the records in the join table have

Re: View Caching issues

2006-11-13 Thread ToddG
You did enable it in app/config/core.php too right? You didn't specifically say so... define('CACHE_CHECK', true); Also your cached views should be next to your models -- app/tmp/cache/views/* Make sure that directory is read/writable by your webserver process... --~--~-~--~~-

View Caching issues

2006-11-13 Thread Rory
Hi All I have a question with regard to view caching. RTFM, STFW, STFA have not helped me so far, so I was wodnering if there would be someone who could put me out f my misery. I am using Cake 1.1.8 with MySql in a *nix environment. I have enabled view caching as per the manual (using the helper

Italian CakePHP Developers?

2006-11-13 Thread Samuele Coppede
There are here italian CakePHP Developers? if yes contact me at [EMAIL PROTECTED] bye bye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegrou

Re: Need freelance help with cakephp project

2006-11-13 Thread Gayathiri
Hi, I am interested in the project on cakephp. I am currently working on cakephp. my mail id is [EMAIL PROTECTED] you can mail me anytime for any details. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Avoiding binary data overwrite when updating model...

2006-11-13 Thread Daniel Jewett
Thank-you Mr. Van den Brande! On Nov 13, 2006, at 2:39 AM, Bert Van den Brande wrote: > > In the fieldlist you can put a list of fields the query is allowed > to update. > So in your case, remove the 'image' field from the whitelist when the > image data is empty > > On 11/13/06, Daniel Jewett

Re: Default controller?

2006-11-13 Thread kumas
i.e: $Route->connect ('/', array('controller'=>'Mycontroller', 'action'=>'myaction')); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Default controller?

2006-11-13 Thread kumas
Pagescontroller is the default controller. If you want to use your own controller/action for the default route (/) you should change it in the app/config/routes.php file. More info in the Section 3 of configuration chapter of cakephp manual.. http://manual.cakephp.org/chapter/configuration Chr

Re: Need some suggestions for medium sized application

2006-11-13 Thread francky06l
Hi, I did something similar in concept but completly different purposes. In your case you need to define what is the central element there, is it the tank or the microstation ? All the other entities are actors around the base element. Now I my application I have 4 differents "roles" for the user

Re: A strange but very critical bug in my app using cake ajax

2006-11-13 Thread AD7six
I didn´t say anything about your problem only occuring when you call the add function in your controller, moreover I have no idea what your code is doing. I would advise taking a look at the table before and afterwards, and based on that if there is a strange delete or update statement in the SQL