Re: How combine CakePHP + ExtJS?

2013-03-10 Thread Roland
For people finding this tread from searching, check out 
http://banchaproject.org

It already does a lot of things for you, it just perfectly integrates ExtJS 
into CakePHP!

Cheers




Am Mittwoch, 9. Januar 2008 09:05:49 UTC+1 schrieb inma:

 Hi, 

 I'm newbie in CakePHP and ExtJS. I'm developing a new application with 
 CakePHP, and I want to integrate the ExtJS forms into this 
 application. I was looking some posts about it. 

  Nevertheless, I don't know how to match Cake model, controller and 
 view with ExtJS exactly. :-( 

  Can someone post an example (basic example) with this combination 
 (cake model, controller and view with ExtJS)? 

 Thanks a lot. 


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How combine CakePHP + ExtJS?

2008-01-15 Thread inma

Thanks hydra12 for the forms tutorial. It will help a lot of people.

Best regards.

On 12 ene, 14:47, foxmask [EMAIL PROTECTED] wrote:
 on my side i get the grid and the string :
 {total:2, users:[{username:foxmask, title:,
 realname:}, {username:Invité, title:, realname:}]}

 display just after the grid .

 On Jan 11, 11:15 pm, hydra12 [EMAIL PROTECTED] wrote:



  OK, the forms tutorial is up now.  You can find it 
  here:http://www.ntatd.org/mark/?p=31. Have a great weekend!

  On Jan 11, 8:38 am, hydra12 [EMAIL PROTECTED] wrote:

   That's what it's supposed to do.  getAllUsers just returns a json
   string with data from the database.  Now call myroot/users/index.  It
   should show a datagrid with all the json data in it.  The way it works
   is this: index is pretty much blank, but it loads myScript.js (or
   whatever you named it).  myScript.js calls getAllUsers on line 17:

        proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/
   getAllUsers'}),

   When you call index, it should call getAllUsers and load the data
   returned into your store.  When you render your datagrid, it pulls
   data from the store and puts it in the grid.  The fact that you are
   getting the json string when you call getAllUsers directly means
   you're on the right track.  Let me know if I can help.

   BTW, I'm about 1/2 way done on a forms tutorial . . .

   hydra12

   On Jan 11, 8:13 am, inma [EMAIL PROTECTED] wrote:

Thank you Hidra12!

I read your datagrid tutorial for ext-2.0.

I'm using ext-2.0 and CakePHP 1.2 Beta, too.

But when I call to myroot//users/getAllUsers, it shows that:

{total:8, users:[{id:6, username:archangel,
fullname:Worthington, Warren}, {id:2, username:cyclops,
fullname:Summers, Scott}, {id:8, username:gambit,
fullname:LeBeau, Remy}, {id:1, username:hydra12,
fullname:Buckner, Mark}, {id:5, username:iceman,
fullname:Drake, Bobby}, {id:3, username:nightcrawler,
fullname:Wagner, Kurt}, {id:7, username:storm,
fullname:Munroe, Ororo}, {id:4, username:wolverine,
fullname:Logan}]}

On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:

 OK, I did some searching and found this 
 thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...-
  Ocultar texto de la cita -

 - Mostrar texto de la cita -

--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-15 Thread hydra12

@foxmask - can you post your code someplace where I can look at it?

On Jan 12, 7:47 am, foxmask [EMAIL PROTECTED] wrote:
 on my side i get the grid and the string :
 {total:2, users:[{username:foxmask, title:,
 realname:}, {username:Invité, title:, realname:}]}

 display just after the grid .

 On Jan 11, 11:15 pm, hydra12 [EMAIL PROTECTED] wrote:

  OK, the forms tutorial is up now.  You can find it 
  here:http://www.ntatd.org/mark/?p=31. Have a great weekend!

  On Jan 11, 8:38 am, hydra12 [EMAIL PROTECTED] wrote:

   That's what it's supposed to do.  getAllUsers just returns a json
   string with data from the database.  Now call myroot/users/index.  It
   should show a datagrid with all the json data in it.  The way it works
   is this: index is pretty much blank, but it loads myScript.js (or
   whatever you named it).  myScript.js calls getAllUsers on line 17:

proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/
   getAllUsers'}),

   When you call index, it should call getAllUsers and load the data
   returned into your store.  When you render your datagrid, it pulls
   data from the store and puts it in the grid.  The fact that you are
   getting the json string when you call getAllUsers directly means
   you're on the right track.  Let me know if I can help.

   BTW, I'm about 1/2 way done on a forms tutorial . . .

   hydra12

   On Jan 11, 8:13 am, inma [EMAIL PROTECTED] wrote:

Thank you Hidra12!

I read your datagrid tutorial for ext-2.0.

I'm using ext-2.0 and CakePHP 1.2 Beta, too.

But when I call to myroot//users/getAllUsers, it shows that:

{total:8, users:[{id:6, username:archangel,
fullname:Worthington, Warren}, {id:2, username:cyclops,
fullname:Summers, Scott}, {id:8, username:gambit,
fullname:LeBeau, Remy}, {id:1, username:hydra12,
fullname:Buckner, Mark}, {id:5, username:iceman,
fullname:Drake, Bobby}, {id:3, username:nightcrawler,
fullname:Wagner, Kurt}, {id:7, username:storm,
fullname:Munroe, Ororo}, {id:4, username:wolverine,
fullname:Logan}]}

On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:

 OK, I did some searching and found this 
 thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-12 Thread foxmask

on my side i get the grid and the string :
{total:2, users:[{username:foxmask, title:,
realname:}, {username:Invité, title:, realname:}]}

display just after the grid .



On Jan 11, 11:15 pm, hydra12 [EMAIL PROTECTED] wrote:
 OK, the forms tutorial is up now.  You can find it 
 here:http://www.ntatd.org/mark/?p=31. Have a great weekend!

 On Jan 11, 8:38 am, hydra12 [EMAIL PROTECTED] wrote:

  That's what it's supposed to do.  getAllUsers just returns a json
  string with data from the database.  Now call myroot/users/index.  It
  should show a datagrid with all the json data in it.  The way it works
  is this: index is pretty much blank, but it loads myScript.js (or
  whatever you named it).  myScript.js calls getAllUsers on line 17:

   proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/
  getAllUsers'}),

  When you call index, it should call getAllUsers and load the data
  returned into your store.  When you render your datagrid, it pulls
  data from the store and puts it in the grid.  The fact that you are
  getting the json string when you call getAllUsers directly means
  you're on the right track.  Let me know if I can help.

  BTW, I'm about 1/2 way done on a forms tutorial . . .

  hydra12

  On Jan 11, 8:13 am, inma [EMAIL PROTECTED] wrote:

   Thank you Hidra12!

   I read your datagrid tutorial for ext-2.0.

   I'm using ext-2.0 and CakePHP 1.2 Beta, too.

   But when I call to myroot//users/getAllUsers, it shows that:

   {total:8, users:[{id:6, username:archangel,
   fullname:Worthington, Warren}, {id:2, username:cyclops,
   fullname:Summers, Scott}, {id:8, username:gambit,
   fullname:LeBeau, Remy}, {id:1, username:hydra12,
   fullname:Buckner, Mark}, {id:5, username:iceman,
   fullname:Drake, Bobby}, {id:3, username:nightcrawler,
   fullname:Wagner, Kurt}, {id:7, username:storm,
   fullname:Munroe, Ororo}, {id:4, username:wolverine,
   fullname:Logan}]}

   On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:

OK, I did some searching and found this 
thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-11 Thread hydra12

That's what it's supposed to do.  getAllUsers just returns a json
string with data from the database.  Now call myroot/users/index.  It
should show a datagrid with all the json data in it.  The way it works
is this: index is pretty much blank, but it loads myScript.js (or
whatever you named it).  myScript.js calls getAllUsers on line 17:

 proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/
getAllUsers'}),

When you call index, it should call getAllUsers and load the data
returned into your store.  When you render your datagrid, it pulls
data from the store and puts it in the grid.  The fact that you are
getting the json string when you call getAllUsers directly means
you're on the right track.  Let me know if I can help.

BTW, I'm about 1/2 way done on a forms tutorial . . .

hydra12

On Jan 11, 8:13 am, inma [EMAIL PROTECTED] wrote:
 Thank you Hidra12!

 I read your datagrid tutorial for ext-2.0.

 I'm using ext-2.0 and CakePHP 1.2 Beta, too.

 But when I call to myroot//users/getAllUsers, it shows that:

 {total:8, users:[{id:6, username:archangel,
 fullname:Worthington, Warren}, {id:2, username:cyclops,
 fullname:Summers, Scott}, {id:8, username:gambit,
 fullname:LeBeau, Remy}, {id:1, username:hydra12,
 fullname:Buckner, Mark}, {id:5, username:iceman,
 fullname:Drake, Bobby}, {id:3, username:nightcrawler,
 fullname:Wagner, Kurt}, {id:7, username:storm,
 fullname:Munroe, Ororo}, {id:4, username:wolverine,
 fullname:Logan}]}

 On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:

  OK, I did some searching and found this 
  thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-11 Thread inma

Thank you Hidra12!

I read your datagrid tutorial for ext-2.0.

I'm using ext-2.0 and CakePHP 1.2 Beta, too.

But when I call to myroot//users/getAllUsers, it shows that:

{total:8, users:[{id:6, username:archangel,
fullname:Worthington, Warren}, {id:2, username:cyclops,
fullname:Summers, Scott}, {id:8, username:gambit,
fullname:LeBeau, Remy}, {id:1, username:hydra12,
fullname:Buckner, Mark}, {id:5, username:iceman,
fullname:Drake, Bobby}, {id:3, username:nightcrawler,
fullname:Wagner, Kurt}, {id:7, username:storm,
fullname:Munroe, Ororo}, {id:4, username:wolverine,
fullname:Logan}]}



On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:
 OK, I did some searching and found this 
 thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...

--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-11 Thread hydra12

OK, the forms tutorial is up now.  You can find it here:
http://www.ntatd.org/mark/?p=31. Have a great weekend!

On Jan 11, 8:38 am, hydra12 [EMAIL PROTECTED] wrote:
 That's what it's supposed to do.  getAllUsers just returns a json
 string with data from the database.  Now call myroot/users/index.  It
 should show a datagrid with all the json data in it.  The way it works
 is this: index is pretty much blank, but it loads myScript.js (or
 whatever you named it).  myScript.js calls getAllUsers on line 17:

  proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/
 getAllUsers'}),

 When you call index, it should call getAllUsers and load the data
 returned into your store.  When you render your datagrid, it pulls
 data from the store and puts it in the grid.  The fact that you are
 getting the json string when you call getAllUsers directly means
 you're on the right track.  Let me know if I can help.

 BTW, I'm about 1/2 way done on a forms tutorial . . .

 hydra12

 On Jan 11, 8:13 am, inma [EMAIL PROTECTED] wrote:

  Thank you Hidra12!

  I read your datagrid tutorial for ext-2.0.

  I'm using ext-2.0 and CakePHP 1.2 Beta, too.

  But when I call to myroot//users/getAllUsers, it shows that:

  {total:8, users:[{id:6, username:archangel,
  fullname:Worthington, Warren}, {id:2, username:cyclops,
  fullname:Summers, Scott}, {id:8, username:gambit,
  fullname:LeBeau, Remy}, {id:1, username:hydra12,
  fullname:Buckner, Mark}, {id:5, username:iceman,
  fullname:Drake, Bobby}, {id:3, username:nightcrawler,
  fullname:Wagner, Kurt}, {id:7, username:storm,
  fullname:Munroe, Ororo}, {id:4, username:wolverine,
  fullname:Logan}]}

  On 10 ene, 21:37, hydra12 [EMAIL PROTECTED] wrote:

   OK, I did some searching and found this 
   thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-10 Thread inma

Thanks for your answers!

Although your examples show a datagrid, I will try to adapt it to show
and validate a form...

Kind regards.

On 9 ene, 20:02, hydra12 [EMAIL PROTECTED] wrote:
 I'm working on a new version of my tutorial that works with 2.0.  I'll
 try to get it done soon, depending on my work schedule.

 hydra12http://www.ntatd.org/mark

 On Jan 9, 12:23 pm, DjZoNe [EMAIL PROTECTED] wrote:



  Hi inma,

  I started to write here a little help, but it became bigger as I
  expected.
  So I rather posted into my blog:http://djz.hu/blog/posts/689

  --
  DjZoNe

   Hi,

   I'm newbie in CakePHP andExtJS. I'm developing a new application with
   CakePHP, and I want to integrate theExtJSforms into this
   application. I was looking some posts about it.

    Nevertheless, I don't know how to match Cake model, controller and
   view withExtJSexactly. :-(

    Can someone post an example (basic example) with this combination
   (cake model, controller and view withExtJS)?

   Thanks a lot.- Ocultar texto de la cita -

 - Mostrar texto de la cita -

--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-10 Thread foxmask

i tried to repeat the step of your example with ext 1.1.1 here is my
ajax.ctp


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php
__('lang_iso_code') ?
lang=?php __('lang_iso_code') ? dir=?php __('lang_direction') ?

head
title
?php echo pt_portal_title . ' - ' .$title_for_layout;?
/title

?php echo $html-charset(__('lang_encoding',true));?

link rel='StyleSheet' href='?php echo $this-base ?/js/ext-1.1/
resources/css/ext-all.css' /
?php echo $javascript-link('ext-1.1/adapter/ext/ext-base'); ?

?php echo $javascript-link('ext-1.1/ext-all-debug'); ?

?php echo $javascript-link('myScript'); ?
body/head
body
div id=grid-panel
div id=grid-paging style=border:1px solid
#99bbe8;overflow:hidden; width: 665px; height: 00px;/div
/div
?php echo $content_for_layout; ?
?php echo '{total:'.$total.', users:'.$javascript-
Object($users).'}'; ?
/body
/html


i think i made a mistake because that display the content of
{ ... } ...



On Jan 9, 8:02 pm, hydra12 [EMAIL PROTECTED] wrote:
 I'm working on a new version of my tutorial that works with 2.0.  I'll
 try to get it done soon, depending on my work schedule.

 hydra12http://www.ntatd.org/mark

 On Jan 9, 12:23 pm, DjZoNe [EMAIL PROTECTED] wrote:

  Hi inma,

  I started to write here a little help, but it became bigger as I
  expected.
  So I rather posted into my blog:http://djz.hu/blog/posts/689

  --
  DjZoNe

   Hi,

   I'm newbie in CakePHP and ExtJS. I'm developing a new application with
   CakePHP, and I want to integrate the ExtJS forms into this
   application. I was looking some posts about it.

Nevertheless, I don't know how to match Cake model, controller and
   view with ExtJS exactly. :-(

Can someone post an example (basic example) with this combination
   (cake model, controller and view with ExtJS)?

   Thanks a lot.
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12

OK, I've updated my datagrid tutorial for ext-2.0.  You can find it
here: http://www.ntatd.org/mark/?p=30.  I'll try to work on forms
next.  If I remember correctly, you build the form itself in ext just
like in the tutorials.  When you want to submit, do it as a post.  In
your controller, you have to take the post data ($_POST) and rewrite
it to fit cake's array preferences, then you can save to the database.

hydra12

On Jan 10, 5:13 am, foxmask [EMAIL PROTECTED] wrote:
 i tried to repeat the step of your example with ext 1.1.1 here is my
 ajax.ctp

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php
 __('lang_iso_code') ?
 lang=?php __('lang_iso_code') ? dir=?php __('lang_direction') ?

 head
 title
 ?php echo pt_portal_title . ' - ' .$title_for_layout;?
 /title

 ?php echo $html-charset(__('lang_encoding',true));?

 link rel='StyleSheet' href='?php echo $this-base ?/js/ext-1.1/
 resources/css/ext-all.css' /
 ?php echo $javascript-link('ext-1.1/adapter/ext/ext-base'); ?

 ?php echo $javascript-link('ext-1.1/ext-all-debug'); ?

 ?php echo $javascript-link('myScript'); ?
 body/head
 body
 div id=grid-panel
 div id=grid-paging style=border:1px solid
 #99bbe8;overflow:hidden; width: 665px; height: 00px;/div
 /div
 ?php echo $content_for_layout; ?
 ?php echo '{total:'.$total.', users:'.$javascript-Object($users).'}'; ?

 /body
 /html

 i think i made a mistake because that display the content of
 { ... } ...

 On Jan 9, 8:02 pm, hydra12 [EMAIL PROTECTED] wrote:

  I'm working on a new version of my tutorial that works with 2.0.  I'll
  try to get it done soon, depending on my work schedule.

  hydra12http://www.ntatd.org/mark

  On Jan 9, 12:23 pm, DjZoNe [EMAIL PROTECTED] wrote:

   Hi inma,

   I started to write here a little help, but it became bigger as I
   expected.
   So I rather posted into my blog:http://djz.hu/blog/posts/689

   --
   DjZoNe

Hi,

I'm newbie in CakePHP andExtJS. I'm developing a new application with
CakePHP, and I want to integrate theExtJSforms into this
application. I was looking some posts about it.

 Nevertheless, I don't know how to match Cake model, controller and
view withExtJSexactly. :-(

 Can someone post an example (basic example) with this combination
(cake model, controller and view withExtJS)?

Thanks a lot.
--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12

OK, I did some searching and found this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152746ddb38/48bde29ad0776d1f?lnk=gstq=extjs#48bde29ad0776d1f

--~--~-~--~~~---~--~~
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: How combine CakePHP + ExtJS?

2008-01-09 Thread foxmask


I'd like it too

As the example provided concerned extjs1.1 and does not work anymore
with extjs 2.0.

Kind regards

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---