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
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.
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
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
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
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
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
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.
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
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
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
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 :)
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:
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
14 matches
Mail list logo