How to set jqueryObject var in default.ctp and make it works in home.ctp

2012-04-27 Thread Emiliano
Hi everybody,

I'm trying to use cakephp and jquery and I have a problem.
I've define the following in my default.ctp

(...)
$this->Js->JqueryEngine->jQueryObject = '$j';
echo  $this->Html->scriptBlock('var $j =
jQuery.noConflict();',array('inline' => false));
echo $this->Js->JqueryEngine->jQueryObject;//This is for testing!
echo $scripts_for_layout;
(...)

and in my home.ctp I'm including again the testing sentence
(...)
echo $this->Js->JqueryEngine->jQueryObject;//This is for testing!
(...)

When I open the page in the browser It shows
$j
$

For any reason I can set jQueryObject to $j in default.ctp scope but
not in the (default.ctp+home.ctp) scope. The variable setting is not
keeping between my views. Something is bad but I have spent a lot of
time changing args of scriptBlock method in default.ctp as a lot of
posts mentioned but nothing was happened.
I would appreciate your help.

Thanks,
Emiliano.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Replication load balancing support?

2006-12-12 Thread emiliano

Wow... I just was wondering about this...

nate: cake it's incredible!!

emiliano

On 12 dic, 19:29, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> If that's not scalability, I don't know what is.
>
> -MI
>
> ---
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
> 
> BAKE ON!


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Share with CakePHP´s community

2006-12-12 Thread emiliano

Mariano, that's the article!

On 12 dic, 20:31, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> Hey Emiliano, what newspaper was it? Since it was Monday I'm assuming La
> Nacion, am I right? Was this the article?
>
> http://buscador.lanacion.com.ar/Nota.asp?nota_id=866485&high=htmli
> (non-spanish bakers: link in Spanish)
>
> Felix & JQuery, what a work of evangelism ;)
>
> -MI
>
> ---
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> -Mensaje original-
> De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
> de emiliano
> Enviado el: Lunes, 11 de Diciembre de 2006 06:04 p.m.
> Para: Cake PHP
> Asunto: Re: Share with CakePHP´s community
>
> Felix, thanks for the reply. As I`m not a AJAX guy (almost neither a
> PHP coder), I thought it could be a good thing to share what an
> argentinian newspaper show today in their pages (not many bakers read
> argentinian newspapers).
> 
> I will follow your advice and learn JQuery.
> 
> Emiliano


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Share with CakePHP´s community

2006-12-11 Thread emiliano

Felix, thanks for the reply. As I`m not a AJAX guy (almost neither a
PHP coder), I thought it could be a good thing to share what an
argentinian newspaper show today in their pages (not many bakers read
argentinian newspapers).

I will follow your advice and learn JQuery.

Emiliano

On 11 dic, 17:50, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
> Hi emiliano,
>
> I looked at it and besides the fact that I got some JS errors while
> browsing (with FF 1.5) I think this is not really an 'Ajax Framework'.
> It seems to be more like a XLS parser that tries to extend HTML via
> Javascript (using ajax of course). To me this ignores the nature of the
> web. All code resulting from using this will be broken when the user has
> JS disabled (their homepage sure is), most likely be unsemantic /
> inaccessible, and worst of all highly CPU hungry. Besides that the
> entire thing seems to be pretty verbose, and I dislike things that
> require me to type a lot (if it doesn't improve readability or has other
> benefits).
>
> Ok, I really don't want to bash your local fellows, they've probably
> spent a lot of their time on this. But as a true jQuery evangelist (it's
> my second religion after CakePHP), I have to post this little link for
> you so you can make up your mind for yourself:
>
> http://www.jquery.com
>
> It's all about writing less and doing more. Or as Paul Graham would say:
> succinctness = power <http://www.paulgraham.com/power.html> (= jQuery)
>
> -- Felix Geisendörfer aka the_undefined
> --http://www.thinkingphp.orghttp://www.fg-webdesign.de
>
> emiliano wrote:
> > I would like to share a "AJAX Framework" that I discovered today while
> > reading a national newspaper. It´s open source and it was created by
> > some guys from my university (but I don`t know them!).
>
> >http://www.htmli.com/
>
> > I didn´t use it yet, but it seems nice!
> 
> > cheers
> > emiliano


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Share with CakePHP´s community

2006-12-11 Thread emiliano

I would like to share a "AJAX Framework" that I discovered today while
reading a national newspaper. It´s open source and it was created by
some guys from my university (but I don`t know them!).

http://www.htmli.com/

I didn´t use it yet, but it seems nice!

cheers
emiliano


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sites Powered by CakePHP

2006-11-09 Thread emiliano

Search in google "Powered by CakePHP"

On 9 nov, 15:25, "Mikee Freedom" <[EMAIL PROTECTED]> wrote:
> There is a list of sites in the wiki somewhere as well.
> mikee
>
> On 10/11/06, nate <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here are a couple that I know of:
> >http://www.pewterreport.com/
> >http://villagevoice.com/bestof/2006/


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ACM Project To Reach 1.0

2006-09-28 Thread emiliano

rpeterson, ACM is one of the greatest project in CakeForge.

I think that letting users to be in more than one group is a must.
Also it would be great not to have to reset the permissions everytime a
user changes which group he or she belongs.

I was using version 0.10.0.7.

I hope I can help you!

emiliano


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Restrictive Bakery Terms of Service

2006-09-28 Thread emiliano


John Zimmerman wrote:
> On 9/28/06, emiliano <[EMAIL PROTECTED]> wrote:
> >
> >
> > > As was stated above, this is to restrict people with commercial interest
> > > from taking articles from the site, and using them on their own site
> > without
> > > permission. It in no way restricts the original creator.
> >
> > My opinion is this is against CakePHP growth. The Foundation should let
> > everyone take advantage of the submited code and articles, even if they
> > want to use it in a commercial application.
> >
>
> Before posting re-read PHPNut's WHOLE post very carefully before replying.
>
> The commercial restriction deals with re-publication of content.  Use of the
> code depends on the license used by the author.  PHPNut is encouraging (as
> stated in his post) that you license the code under the MIT license so that
> it can be used in the same way the core CakePHP code can.
>
> I know sometimes a non-legal description and possibly examples are helpful
> when determining what a Terms of Service agreement is actually trying to
> define, but having those won't even help users who choose to just skim it
> and remember what they want.


I'm sorry, english is not my first language. I understood something
diferent from PHPNut statement.

I hope i didn't bother anyone in the Foundation, and as I said I want
the best for the Foundation and the dev team.

cheers
emiliano


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Restrictive Bakery Terms of Service

2006-09-28 Thread emiliano

> As was stated above, this is to restrict people with commercial interest
> from taking articles from the site, and using them on their own site without
> permission. It in no way restricts the original creator.

My opinion is this is against CakePHP growth. The Foundation should let
everyone take advantage of the submited code and articles, even if they
want to use it in a commercial application.

I think (maybe I`m wrong) that only after using CakePHP in commercial
projects, people would contribute to the Fundation and not the other
way around. If someone is making money using CakePHP, he or she should
contribute if they want. As more one gets from the Bakery, the more
quantity of money the Foundation will receive.

If its not clear, I want the Foundation to get as resources as posible
because I want to use CakePHP!!

cheers


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Associations between models

2006-07-07 Thread emiliano

I think that in your situation you have to set up your association as
follow:

waypoint_types hasMany waypoints
waypoint belongsTo waypoints_types

With this any waypoint will have just one type and every time could
have many waypoints.

Is this what you are looking?

hope that helps!
cheers
eemi


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---