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 <[email protected]> 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 > <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
