Sunday, August 30, 2009

Re: javascript helper link of js and php file

the only problem is that you have to put the code javascript into a
variable...
but not so big problem...

For now I am rendering small ctp file with the code js, in the middle
of page...
not so big elegant but functional ;)

On 29 Ago, 02:26, brian <bally.z...@gmail.com> wrote:
> echo $javascript->codeBlock('...', array('inline' => false));
>
>
>
> On Fri, Aug 28, 2009 at 12:18 PM,Alessio<unideat...@gmail.com> wrote:
>
> > the problem is that it put the code in the middle of page...
> > This can be a suggestion for next release?
> > 1-> to allow to helper JS to insert not only js page... (for example
> > with ctp it can trasformed in to code coming from php)
>
> > The scope is to put code js mixed with php , and put them into the
> > head...
>
> > Aniway Now i am using yes element method...
>
> > Anyone suggests better?
>
> > On 28 Ago, 17:18, brian <bally.z...@gmail.com> wrote:
> >> $this->element(...)?
>
> >>http://api.cakephp.org/class/view#method-Viewelement
>
> >> On Fri, Aug 28, 2009 at 4:44 AM,Alessio<unideat...@gmail.com> wrote:
>
> >> > I need link a file ctp with javascript and php inside...
> >> > What can I do?
> >> > If i link a ctp, the helper adds the extension js...
> >> > I want to render a ctp file, if I render It put in the same point
> >> > where I link.
> >> > I want to put inside the head section.
> >> > How Can I do this ?
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: