Render views from other controllers

2006-06-10 Thread Gonçalo Marrafa
Hi. Is there a way of automatically render a view from another controller? If i use requestAction('/somecontroller/someaction', array('return')) i still nedd to have a view on the current controller with a placeholder for the rendered view. What i would like to do is to show only the rendered

Set table prefix from session?

2006-06-10 Thread David Pärsson
Hi, is it possible to set the table prefix to use in a model from a session variable? I tried to set the tablePrefix variable from the controller in the beforeFilter() function like this $this-Model-tablePrefix = $this-Session-read('User.database_table_prefix'); but it didn't seem to work.

Re: creating a selectTag from an enum in the model

2006-06-10 Thread nate
I don't really see it as a bug, since Cake makes the data available, as in the solution above, but I could see doing some sort of enhancement. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

How optimize application?

2006-06-10 Thread [EMAIL PROTECTED]
Hi, My application has ~30 model. Each time I request some action it takes 0.5 - 1s to generate view. Each time Cake loads all models but I don't need each time all of them. My question is: Is there in Cake any possibility to construct only these models which I actually need. Some variable in

Re: How optimize application?

2006-06-10 Thread nate
All model files are loaded, but only the required model classes are constructed. Besides that, this is typically the one of the lower-overhead operations in the request. The best thing to focus on are your views and view caching. --~--~-~--~~~---~--~~ You

Re: How optimize application?

2006-06-10 Thread nate
The one thing you can do, although this may make it harder to debug your app, is set var $persistModel = true; in your controller. This will cache your constructed model files. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How optimize application?

2006-06-10 Thread kiniu
Thank you nate for your help. I think that I have to work on Cake. Regards, Krzysiek --~--~-~--~~~---~--~~ 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

Cameleon preview

2006-06-10 Thread Olivier Percebois-Garve
For those who are bored, I've released a alpha preview package of Cameleon - the tiny tree-based CMS. http://cakeforge.org/projects/cameleon/ The application seems to have reached some stability, even if a lot of things are missing or need to be completed. It is not-at-all-production-ready.

Re: Cameleon preview

2006-06-10 Thread RosSoft
Cool, you're using HeadHelper :) --~--~-~--~~~---~--~~ 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 email to [EMAIL

Re: prevent expiration of session info?

2006-06-10 Thread Carlos Mauricio Samour
Could you please explain what you did to store the session info in the database? I am trying to set up something just like that. Thanks On 5/29/06, Dave [EMAIL PROTECTED] wrote: What I ended up doing was creating my own database-driven solution. Turns out to be pretty simple. You don't need

Re: default index.php rewrite rule works for app/ and app/webroot, but not for /

2006-06-10 Thread [EMAIL PROTECTED]
Of course, that solution does work, as one would expect. In fact, I am going to make this my standard install method, since it is more secure. However, after searching the apache error_log, I saw this: [Sat Jun 10 13:35:23 2006] [error] [client x.x.x.x] Negotiation: discovered file(s) matching

Re: Cameleon preview

2006-06-10 Thread Olivier Percebois-Garve
Yep I really like it. I spotted a few glitches in Cameleon I'll put up some bug fixes this night or tomorrow morning. If you've some comment on general design of the code, feel free... RosSoft wrote: Cool, you're using HeadHelper :)

Re: Arrays in sessions.

2006-06-10 Thread Carlos Mauricio Samour
Well I just answered my own question by doing this: $this-set('data', $this-Session-read('Transaccion')); Once againg: CAKE RULES! On 6/10/06, Carlos Mauricio Samour [EMAIL PROTECTED] wrote: On the wiki I read that if you wanted to save an array with the session component you do this:

Shopping Cart in CakePHP

2006-06-10 Thread brandags
I'm trying to make a simple shopping cart - just basically a way to store product id's in the session, and maybe a function that calls a view to display the cart. Should I be doing this as a regular controller, or should I make a component for it? Either way, how can I make the cart (as well as