Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread designvoid
Excellent! Many thanks, I will search for more info on this and hopefully solve this! I had searched the group many times, in fact I read thru the group daily at the moment as I'm trying to learn as much as poss, its just trick sometimes knowing exactly what to search for as I'm still not 100% wi

Re: afterFind() dillemna - eats memory for breakfast

2008-01-18 Thread Flipflops
Hi AD7six I like you answer - letting the database use CONCAT leaves your code nice and clean, how exactly are you suggesting to do it though? Can you append it to the model in some way when you use a built in method (e.g. findAll) or were you suggesting creating a custom query function in the

Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread AD7six
On Jan 18, 10:29 am, designvoid <[EMAIL PROTECTED]> wrote: > Noone able to add any insight to this? There is a lot of insight already listed on the frequent discussions page. The really really easy solution is to make a model of your join table and call $this->Project->ProjectsTeam->findAll($c

Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread designvoid
Noone able to add any insight to this? Sorry to bump, I know its annoying, but I'm loathed push forward with this app if I'm unsure about cases like this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: Is it possible to display two view templates on one function?

2008-01-18 Thread Frobozz
In my opinion it's more correctly to keep one view template that contains both view templates and switches between them (so you'll got one one view file for controller/action - that is how CakePHP wants you to do this). Louie Miranda: > Is it possible to display two view templates (*.ctp) on one

Re: Is it possible to display two view templates on one function?

2008-01-18 Thread AD7six
On Jan 18, 10:06 am, Frobozz <[EMAIL PROTECTED]> wrote: > In my opinion it's more correctly to keep one view template that > contains both view templates and switches between them (so you'll got > one one view file for controller/action - that is how CakePHP wants > you to do this). Since when?

Re: i don't know why

2008-01-18 Thread AD7six
On Jan 18, 10:03 am, MrTufty <[EMAIL PROTECTED]> wrote: > You're not telling us anything about your specific situation, so it's > unlikely anyone is going to be particularly helpful. I feel like being a bit particular :). My powers are telling me that allenxie should remove cake/ from the

Re: thoughts about elements

2008-01-18 Thread AD7six
On Jan 18, 9:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everyone, > I have been thinking a bit about how elements work and how to best > make use of them. My starting-point is that I really don't like having > to "set" a variable in the controller to get it to the view and then >

Re: i don't know why

2008-01-18 Thread MrTufty
You're not telling us anything about your specific situation, so it's unlikely anyone is going to be particularly helpful. Some things that would help: What version of Cake are you using? What environment are you running it in? Windows? Linux? Where do you have it installed? With that informati

Re: Is it possible to display two view templates on one function?

2008-01-18 Thread the_woodsman
Explicitly call the controller's render() function with the name of the view file. If no call to render() is made, the default view for this action will be used, unless turn off autoRender too. On Jan 18, 8:01 am, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > Is it possible to display two view te

Xml and CAKE_ADMIN

2008-01-18 Thread [EMAIL PROTECTED]
Hi I have configurated CakePHP with webservice and CAKE_ADMIN enable. If I use them separately they work perfectly. But If I would use then together which url have I to use? "http:www.mysite.com/xml/admin/controller/view" doesn't work "http:www.mysite.com/xml/controller/admin/view" doesn't work -

thoughts about elements

2008-01-18 Thread [EMAIL PROTECTED]
Hi everyone, I have been thinking a bit about how elements work and how to best make use of them. My starting-point is that I really don't like having to "set" a variable in the controller to get it to the view and then have to also pass it along to the element. This somehow feels redundant to me

Is it possible to display two view templates on one function?

2008-01-18 Thread Louie Miranda
Is it possible to display two view templates (*.ctp) on one function? example.. function view($id == null) { if ($id == 1) { // display page 1 } else { // id2 // display page 2 } } How could i do this? -- Louie Miranda ([EMAIL PROTECTED]) http://www.axishift.com Security

<    1   2