Re: Calling view in element

2012-10-11 Thread Jeremy Burns | Class Outfit
Do it the other way round. Make contact.ctp an element, then in your 
contact.ctp view render the contact element - you can then also render the 
element wherever you need it.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 12 Oct 2012, at 05:36:50, Sanjeev Divekar  wrote:

> Hello,
> 
> You didn't get me. I want to call certain view in element.
> 
> e.g. I have contact.ctp file which have contact us form.
> 
> Now suppose i want to place that form in any section of website. I will 
> create element which will render contact.ctp
> 
> Can you suggest any how I can do this?
> 
> Regards,
> 
> On Thursday, 11 October 2012 21:50:13 UTC+5:30, Dr. Tarique Sani wrote:
> On Thu, Oct 11, 2012 at 6:55 PM, Sanjeev Divekar 
>  wrote: 
> > Hello, 
> > 
> > I want to call index.ctp in element so i can call element anywhere in 
> > application. e.g. contact_form element which uses ajax form submit. 
> 
> Start by going thru 
> http://book.cakephp.org/2.0/en/views.html#using-view-blocks 
> 
> HTH 
> 
> Tarique 
> 
> 
> -- 
> = 
> The Conference Schedule Creator : http://shdlr.com 
> 
> PHP for E-Biz : http://sanisoft.com 
> = 
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Calling view in element

2012-10-11 Thread Sanjeev Divekar
Hello,

You didn't get me. I want to call certain view in element.

e.g. I have contact.ctp file which have contact us form.

Now suppose i want to place that form in any section of website. I will 
create element which will render contact.ctp

Can you suggest any how I can do this?

Regards,

On Thursday, 11 October 2012 21:50:13 UTC+5:30, Dr. Tarique Sani wrote:
>
> On Thu, Oct 11, 2012 at 6:55 PM, Sanjeev Divekar 
> > wrote: 
> > Hello, 
> > 
> > I want to call index.ctp in element so i can call element anywhere in 
> > application. e.g. contact_form element which uses ajax form submit. 
>
> Start by going thru 
> http://book.cakephp.org/2.0/en/views.html#using-view-blocks 
>
> HTH 
>
> Tarique 
>
>
> -- 
> = 
> The Conference Schedule Creator : http://shdlr.com 
>
> PHP for E-Biz : http://sanisoft.com 
> = 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: HABTM Join Table Entries Disappearing

2012-10-11 Thread rchavik


On Thursday, October 11, 2012 10:53:07 PM UTC+7, keith...@classoutfit.com 
wrote:
>
> For 2.x sites you can also set 'unique' => 'keepExisting' to prevent the 
> save from deleting existing records:
>

Yes.

However, you will still need to ensure that those data exist on the form 
(which might not be required).

For example: User habtm Role.
When updating a User address, you still need to provide the Role data in 
the POSTed array.  To avoid the need
of providing the Role data, you could temporarily unbind the relationship 
using unbindModel() before the call to User->save().

 

>
>
> http://book.cakephp.org/2.0/en/models/saving-your-data.html#what-to-do-when-habtm-becomes-complicated
>
> http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#ref-habtm-arrays
>
> Keith Gorman
> *Class Outfit*
> **
> www.classoutfit.com
>  
> On 11 Oct 2012, at 08:15, Jeremy Burns | Class Outfit <
> jerem...@classoutfit.com > wrote:
>
> By default, Cake clears down the entire habtm table (for the current 
> association) and adds back in just those that are in the current saved 
> dataset. So if a cart has three orders and you try to add another in 
> isolation the first three are cleared and replaced with the new one. If you 
> are trying to add just a new cart_order and want to preserve the existing 
> ones you are best off creating a model for the habtm table and managing it 
> just as you would any other model.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com 
>
> On 10 Oct 2012, at 22:03:26, crush > wrote:
>
> Hey,
> I have an orders table, a carts table and a carts_orders table. Every once 
> and a while, I lose some of the rows from the carts_orders table. They are 
> being created properly but are being deleted at some point. I have been 
> trying to figure it out but everything in the applications works 99.9 
> percent of the time and it's very difficult to nail down exactly what's 
> happening. 
>
> My questions is: *What CakePHP methods would cause those rows to be 
> deleted, but not the associated entries in the carts and orders tables*?
>
> Any help would be appreciated!
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>
>
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: URL rewriting is not properly configured on your server

2012-10-11 Thread lowpass
It's $this->Html->css() not $html->css() -- that your problem?

On Thu, Oct 11, 2012 at 4:09 PM, Advantage+  wrote:
> Yes everything appears to be working fine. I copied a fresh version of all
> htaccess files.
>
> I figured there was something wrong when trying to get Mark Story's asset
> plugin going but still something is wrong.
> Getting missing function css() and missing function js() so I don't know
> about to throw everything out the window.
>
> Dave
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
> Of lowpass
> Sent: Thursday, October 11, 2012 3:55 PM
> To: cake-php@googlegroups.com
> Subject: Re: URL rewriting is not properly configured on your server
>
> Do you know that .htaccess is being read? Are you certain they're all
> present?
>
> You said "all green" so I guess cake.generic.css is being loaded. Is that
> right? If you for some reason copied Cake's CSS rules for certain things
> into your own CSS you should also include the last CSS rule:
>
> #url-rewriting-warning {
> display:none;
> }
>
> On Wed, Oct 10, 2012 at 10:30 PM, Advantage+  wrote:
>> I am getting the " URL rewriting is not properly configured on your
> server"
>> message and cannot figure out how to fix this.
>>
>>
>>
>> I do not have access to httpd.conf, rather I have a php.ini file
>>
>>
>>
>> I have older Cake1.3 sites running on the same server and never had
>> any issues with this.
>>
>> I am setting up a 2.1.3 version right out of the box, direct download
>> from git then install and everything else is fine, all green just the URL
> issue.
>>
>>
>>
>> Any ideas why the older Cake works but new does not?
>>
>>
>>
>> Thanks Dave
>>
>> --
>> Like Us on FaceBook https://www.facebook.com/CakePHP Find us on
>> Twitter http://twitter.com/CakePHP
>>
>> ---
>> You received this message because you are subscribed to the Google
>> Groups "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>
>>
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter
> http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




RE: URL rewriting is not properly configured on your server

2012-10-11 Thread Advantage+
Yes everything appears to be working fine. I copied a fresh version of all
htaccess files.

I figured there was something wrong when trying to get Mark Story's asset
plugin going but still something is wrong. 
Getting missing function css() and missing function js() so I don't know
about to throw everything out the window.

Dave

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of lowpass
Sent: Thursday, October 11, 2012 3:55 PM
To: cake-php@googlegroups.com
Subject: Re: URL rewriting is not properly configured on your server

Do you know that .htaccess is being read? Are you certain they're all
present?

You said "all green" so I guess cake.generic.css is being loaded. Is that
right? If you for some reason copied Cake's CSS rules for certain things
into your own CSS you should also include the last CSS rule:

#url-rewriting-warning {
display:none;
}

On Wed, Oct 10, 2012 at 10:30 PM, Advantage+  wrote:
> I am getting the " URL rewriting is not properly configured on your
server"
> message and cannot figure out how to fix this.
>
>
>
> I do not have access to httpd.conf, rather I have a php.ini file
>
>
>
> I have older Cake1.3 sites running on the same server and never had 
> any issues with this.
>
> I am setting up a 2.1.3 version right out of the box, direct download 
> from git then install and everything else is fine, all green just the URL
issue.
>
>
>
> Any ideas why the older Cake works but new does not?
>
>
>
> Thanks Dave
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP Find us on 
> Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

--
Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter
http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread abhijit kakade
Yes, keep your javascriptMVC code in weroot folder and build cakePHP app
using REST webservice (cakephp inbuilt feature)  this way you build service
oriented architecture for your project, I have same structure in my project.



On Thu, Oct 11, 2012 at 6:06 PM, Dr. Tarique Sani wrote:

> On Thu, Oct 11, 2012 at 3:12 PM, Sathia S  wrote:
> >
> >> I would develop the javascript MVC application to be independent of
> >> the CakePHP application and not try to put the js MVC into the webroot
> >> of the cakePHP app
> >>
> >> So it would be easier if you think of your project as two separate
> >> projects.
> >>
> > Hi. Thank you for reply. Is that correct way to do like that?
>
> Yes that is the correct way to do it - if you do it this way you can
> have separate teams working on PHP and javascript. You can test your
> PHP and JS independent of each other. You can have the PHP api
> consumed by say a mobile app in future and so on...
>
> Tarique
>
> --
> =
> The Conference Schedule Creator : http://shdlr.com
>
> PHP for E-Biz : http://sanisoft.com
> =
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>


-- 
Abhijit Kakade
LAMP Developer,
MCP,CCNA
Mob : +91-9923729250

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Not being able to send data to my controller

2012-10-11 Thread lowpass
In the Form->create line, make sure you have 'type' => 'file' as an option.

On Wed, Oct 10, 2012 at 11:38 PM, Angelo Ortiz  wrote:
> I mean i using cakephp 2.1, my bad. But my problem is that i can't access
> the information coming from the file field call "Imagen", i tried to used
> "$this->request->data" or $this->params(), but still can't access the
> information. Any suggestions?
>
> On Tuesday, October 9, 2012 11:29:23 PM UTC-5, Angelo Ortiz wrote:
>>
>> Hi everyone;
>>
>> I am trying to add new information from my view and send it back to my
>> controller, but the new fields are not added to the $data array, here is my
>> code;
>>
>> On my controller
>>
>> $this->request->data = $this->VirtuemartProduct->read();
>>
>> on my view
>>
>> i tried to add new information echo $this->Form->input('Imagen',
>> array('type'=>'file')); but when i upload the file, i am not being able to
>> see the this new field.
>>
>> It is important to say that the "imagen" field is not on model and not on
>> database, i just want to add this field so i can upload the file into a
>> directory.
>>
>> Any suggestion on what may be happing?, by the way i am using cakephp 3.
>> Thank you
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: URL rewriting is not properly configured on your server

2012-10-11 Thread lowpass
Do you know that .htaccess is being read? Are you certain they're all present?

You said "all green" so I guess cake.generic.css is being loaded. Is
that right? If you for some reason copied Cake's CSS rules for certain
things into your own CSS you should also include the last CSS rule:

#url-rewriting-warning {
display:none;
}

On Wed, Oct 10, 2012 at 10:30 PM, Advantage+  wrote:
> I am getting the " URL rewriting is not properly configured on your server"
> message and cannot figure out how to fix this.
>
>
>
> I do not have access to httpd.conf, rather I have a php.ini file
>
>
>
> I have older Cake1.3 sites running on the same server and never had any
> issues with this.
>
> I am setting up a 2.1.3 version right out of the box, direct download from
> git then install and everything else is fine, all green just the URL issue.
>
>
>
> Any ideas why the older Cake works but new does not?
>
>
>
> Thanks Dave
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Calling view in element

2012-10-11 Thread Dr. Tarique Sani
On Thu, Oct 11, 2012 at 6:55 PM, Sanjeev Divekar
 wrote:
> Hello,
>
> I want to call index.ctp in element so i can call element anywhere in
> application. e.g. contact_form element which uses ajax form submit.

Start by going thru http://book.cakephp.org/2.0/en/views.html#using-view-blocks

HTH

Tarique


-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: HABTM Join Table Entries Disappearing

2012-10-11 Thread Keith Gorman | Class Outfit
For 2.x sites you can also set 'unique' => 'keepExisting' to prevent the save 
from deleting existing records:

http://book.cakephp.org/2.0/en/models/saving-your-data.html#what-to-do-when-habtm-becomes-complicated
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#ref-habtm-arrays

Keith Gorman
Class Outfit

www.classoutfit.com

On 11 Oct 2012, at 08:15, Jeremy Burns | Class Outfit 
 wrote:

By default, Cake clears down the entire habtm table (for the current 
association) and adds back in just those that are in the current saved dataset. 
So if a cart has three orders and you try to add another in isolation the first 
three are cleared and replaced with the new one. If you are trying to add just 
a new cart_order and want to preserve the existing ones you are best off 
creating a model for the habtm table and managing it just as you would any 
other model.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 10 Oct 2012, at 22:03:26, crush  wrote:

> Hey,
> I have an orders table, a carts table and a carts_orders table. Every once 
> and a while, I lose some of the rows from the carts_orders table. They are 
> being created properly but are being deleted at some point. I have been 
> trying to figure it out but everything in the applications works 99.9 percent 
> of the time and it's very difficult to nail down exactly what's happening. 
> 
> My questions is: What CakePHP methods would cause those rows to be deleted, 
> but not the associated entries in the carts and orders tables?
> 
> Any help would be appreciated!
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Calling view in element

2012-10-11 Thread Sanjeev Divekar
Hello,

I want to call index.ctp in element so i can call element anywhere in 
application. e.g. contact_form element which uses ajax form submit.

I have no idea how i am going to do this. Please help me.

Regards,
Sanjeev Divekar

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread Dr. Tarique Sani
On Thu, Oct 11, 2012 at 3:12 PM, Sathia S  wrote:
>
>> I would develop the javascript MVC application to be independent of
>> the CakePHP application and not try to put the js MVC into the webroot
>> of the cakePHP app
>>
>> So it would be easier if you think of your project as two separate
>> projects.
>>
> Hi. Thank you for reply. Is that correct way to do like that?

Yes that is the correct way to do it - if you do it this way you can
have separate teams working on PHP and javascript. You can test your
PHP and JS independent of each other. You can have the PHP api
consumed by say a mobile app in future and so on...

Tarique

-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Themed bootstrap

2012-10-11 Thread Paulo Henrique
bootstrap.php 
=> 
https://github.com/hugodias/cakeStrap/blob/master/app/Config/bootstrap.php#L173

default.ctp 
=> 
https://github.com/hugodias/cakeStrap/blob/master/app/View/Layouts/default.ctp#L21

Em quarta-feira, 10 de outubro de 2012 03h14min42s UTC-3, Lucky1968 
escreveu:
>
> Does anyone know how to integrate a bootstrap.php in a theme and how to 
> open it dynamically?
>
> In my bootstrap.php I have certain settings which should change according 
> to the selected theme so I would like to put a bootstrap.php file into the 
> theme folder which should be called dynamically according to the selected 
> theme.
>
> But how to do this?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread Sathia S
> I would develop the javascript MVC application to be independent of
> the CakePHP application and not try to put the js MVC into the webroot
> of the cakePHP app
>
> So it would be easier if you think of your project as two separate
> projects.
>
> Hi. Thank you for reply. Is that correct way to do like that?


>
> --
--
Regards
sathia

Here I share my experiments with open source.
http://www.sathia27.wordpress.com
http://www.lquery.com

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: HABTM Join Table Entries Disappearing

2012-10-11 Thread Marcus James
If you are using $this->CartsOrder->delete(); then it must be deleting the
cartsorder record . You should check for that.




Enjoy,
Marcus

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: HABTM Join Table Entries Disappearing

2012-10-11 Thread Jeremy Burns | Class Outfit
By default, Cake clears down the entire habtm table (for the current 
association) and adds back in just those that are in the current saved dataset. 
So if a cart has three orders and you try to add another in isolation the first 
three are cleared and replaced with the new one. If you are trying to add just 
a new cart_order and want to preserve the existing ones you are best off 
creating a model for the habtm table and managing it just as you would any 
other model.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 10 Oct 2012, at 22:03:26, crush  wrote:

> Hey,
> I have an orders table, a carts table and a carts_orders table. Every once 
> and a while, I lose some of the rows from the carts_orders table. They are 
> being created properly but are being deleted at some point. I have been 
> trying to figure it out but everything in the applications works 99.9 percent 
> of the time and it's very difficult to nail down exactly what's happening. 
> 
> My questions is: What CakePHP methods would cause those rows to be deleted, 
> but not the associated entries in the carts and orders tables?
> 
> Any help would be appreciated!
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.