Thursday, October 11, 2012

Re: Calling view in element

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
<sanjeev...@gmail.com> 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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate