Carrot CMS Comments RSS http://carrotplant.com/ en Copyright 2008 - 2010, CarrotPlant LLC http://carrotplant.com/public/resources/gfx/logo_75x75.gif Carrot CMS RSS http://carrotplant.com/ 75 75 CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released siddharth mandal Hi Frends, I used the cpamf v0.12 plugin. after installation i got the following msg. amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash. But, whenever i am using the "Load the service browser" link, i am getting the following error. (mx.rpc::Fault)#0 errorID = 0 faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404" faultString = "Send failed" message = "faultCode:Client.Error.MessageSend faultString:\'Send failed\' faultDetail:\'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404\'" name = "Error" rootCause = (Object)#1 code = "NetConnection.Call.Failed" description = "HTTP: Status 404" details = "http://localhost/cpamf_test/cpamf/gateway.php" level = "error" plz. help me out. http://carrotplant.com/en/blog/cpamf-v011-released siddharth mandal

Hi Frends, I used the cpamf v0.12 plugin. after installation i got the following msg. amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash. But, whenever i am using the "Load the service browser" link, i am getting the following error. (mx.rpc::Fault)#0 errorID = 0 faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404" faultString = "Send failed" message = "faultCode:Client.Error.MessageSend faultString:\'Send failed\' faultDetail:\'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404\'" name = "Error" rootCause = (Object)#1 code = "NetConnection.Call.Failed" description = "HTTP: Status 404" details = "http://localhost/cpamf_test/cpamf/gateway.php" level = "error" plz. help me out.

]]>
Wed, 10 Feb 2010 10:59:43 +0000
Flex remoting with CakePHP - CpAmf plugin http://carrotplant.com/en/blog/flex-remoting-with-cakephp-cpamf-plugin Benjamin Morrise When I view the service browser all my services have this message: Service does not contain any methods I have methods on all my services. Any ideas why they wouldn\'t be showing up? http://carrotplant.com/en/blog/flex-remoting-with-cakephp-cpamf-plugin Benjamin Morrise

When I view the service browser all my services have this message: Service does not contain any methods I have methods on all my services. Any ideas why they wouldn\'t be showing up?

]]>
Sat, 30 Jan 2010 17:04:05 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released Samuel Mburu All, so I built my backend, models and controllers with bake(very cool) and built the matching classes in flex.... the only thing now is that when I pass my objects from the backend to flex all of my ArrayCollections contain [object object]. even after I bind it to a drop down. Any body else have the same error. Thanks, Samuel M. http://carrotplant.com/en/blog/cpamf-v011-released Samuel Mburu

All, so I built my backend, models and controllers with bake(very cool) and built the matching classes in flex.... the only thing now is that when I pass my objects from the backend to flex all of my ArrayCollections contain [object object]. even after I bind it to a drop down. Any body else have the same error. Thanks, Samuel M.

]]>
Tue, 19 Jan 2010 21:20:02 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released tyson If fixed the problem. For those that have the same problem keeping logged in from Air: You need to set the Auth in the initCakeController in CakeActions.php when creating the requested controller. Sorry for being so vague. http://carrotplant.com/en/blog/cpamf-v011-released tyson

If fixed the problem. For those that have the same problem keeping logged in from Air: You need to set the Auth in the initCakeController in CakeActions.php when creating the requested controller. Sorry for being so vague.

]]>
Fri, 15 Jan 2010 22:28:52 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released Tyson I just upgraded from version v0.10. I am using Air to access the gateway. In the previous version I was able to send a token to authenticate the user and then carry out the requested method.In v0.12 i send the token, it authenticates the user succesfully, but I still get "You are not authorized to access that location." I\'m not sure why it does this in gateway. If i pass the token to the browser, it authenticates correctly and continues to successfully get the requested method. Any help? here is my BeforeFilter in /controllers/cpamf_controller.php function beforeFilter() { if( isset( $this->Auth ) ) { $this->Auth->allow( array( \'index\', \'gateway\', \'browser\' )); } if( !$this->Auth->user() && isset($this->params[\'url\'][\'token\']) ) { $this->User->authenticate($this->params[\'url\'][\'token\']); $this->Auth->login($this->User->data); } parent::beforeFilter(); } http://carrotplant.com/en/blog/cpamf-v011-released Tyson

I just upgraded from version v0.10. I am using Air to access the gateway. In the previous version I was able to send a token to authenticate the user and then carry out the requested method.In v0.12 i send the token, it authenticates the user succesfully, but I still get "You are not authorized to access that location." I\'m not sure why it does this in gateway. If i pass the token to the browser, it authenticates correctly and continues to successfully get the requested method. Any help? here is my BeforeFilter in /controllers/cpamf_controller.php function beforeFilter() { if( isset( $this->Auth ) ) { $this->Auth->allow( array( \'index\', \'gateway\', \'browser\' )); } if( !$this->Auth->user() && isset($this->params[\'url\'][\'token\']) ) { $this->User->authenticate($this->params[\'url\'][\'token\']); $this->Auth->login($this->User->data); } parent::beforeFilter(); }

]]>
Fri, 15 Jan 2010 17:42:52 +0000
CpAmf flex example http://carrotplant.com/en/blog/cpamf-flex-example Samuel Mburu Wow, thank you Daniel V. I\'ve been wrestling this for a while. I rebuilt the project and everything works, now I can move on to the next step. See my thought was that the services-config.xml was used during runtime, but now I know that build time is where the magic happes. Thanks again, Samuel M. http://carrotplant.com/en/blog/cpamf-flex-example Samuel Mburu

Wow, thank you Daniel V. I\'ve been wrestling this for a while. I rebuilt the project and everything works, now I can move on to the next step. See my thought was that the services-config.xml was used during runtime, but now I know that build time is where the magic happes. Thanks again, Samuel M.

]]>
Thu, 14 Jan 2010 16:05:59 +0000
CpAmf flex example http://carrotplant.com/en/blog/cpamf-flex-example Daniel Verner Check your services-config.xml. Maybe your gateway is not set up correctly. If you make changes in the services-config.xml, you may need to clean and rebuild the project. http://carrotplant.com/en/blog/cpamf-flex-example Daniel Verner

Check your services-config.xml. Maybe your gateway is not set up correctly. If you make changes in the services-config.xml, you may need to clean and rebuild the project.

]]>
Thu, 14 Jan 2010 15:29:22 +0000
CpAmf flex example http://carrotplant.com/en/blog/cpamf-flex-example Samuel Mburu Daniel, thank you for the great tutorial. I just had a question for you as well as anyone else(hopefully I\'m not the only one with this issue). So it runs fine locally, but when I push it to my webserver and try to hit the \'Get All Users\' button, I get a 500 error when the flex tries to look for crossdomain.xml. What\'s really wierd is using firebug I was able to see that it looks for http://localhost/crossdomain.xml, which is not right at all. Did I forget to configure something? Here is the site url so you can see this for yourself: http://cake.blue-eel.com/cake1.2.x.x/flex/cpamf_test_non_mate.html Thanks Samuel M. http://carrotplant.com/en/blog/cpamf-flex-example Samuel Mburu

Daniel, thank you for the great tutorial. I just had a question for you as well as anyone else(hopefully I\'m not the only one with this issue). So it runs fine locally, but when I push it to my webserver and try to hit the \'Get All Users\' button, I get a 500 error when the flex tries to look for crossdomain.xml. What\'s really wierd is using firebug I was able to see that it looks for http://localhost/crossdomain.xml, which is not right at all. Did I forget to configure something? Here is the site url so you can see this for yourself: http://cake.blue-eel.com/cake1.2.x.x/flex/cpamf_test_non_mate.html Thanks Samuel M.

]]>
Thu, 14 Jan 2010 14:58:26 +0000
Flex remoting with CakePHP - CpAmf plugin http://carrotplant.com/en/blog/flex-remoting-with-cakephp-cpamf-plugin Shingo Mori Thanks for great work CpAmf!! I think it\'s really good solution to use CakePHP from Flex, so I wrote introduce blogs about how to use CpAmf, for Japanese user. I hope you like it and it helps someone using CpAmf. Part1-> http://d.hatena.ne.jp/sngmr/20100107/1262884993 Part2-> http://d.hatena.ne.jp/sngmr/20100109/1263052676 Part3-> http://d.hatena.ne.jp/sngmr/20100110/1263145276 http://carrotplant.com/en/blog/flex-remoting-with-cakephp-cpamf-plugin Shingo Mori

Thanks for great work CpAmf!! I think it\'s really good solution to use CakePHP from Flex, so I wrote introduce blogs about how to use CpAmf, for Japanese user. I hope you like it and it helps someone using CpAmf. Part1-> http://d.hatena.ne.jp/sngmr/20100107/1262884993 Part2-> http://d.hatena.ne.jp/sngmr/20100109/1263052676 Part3-> http://d.hatena.ne.jp/sngmr/20100110/1263145276

]]>
Sun, 10 Jan 2010 18:59:57 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released Julius How do I setup the auth component to work with flex? I get the "You are not authorized to access.." error even if I am calling the login method. I followed the tutorial on auth, but I can\'t get past this one. I manually allowed the login method and the error was gone. But the auth user still wasn\'t set http://carrotplant.com/en/blog/cpamf-v011-released Julius

How do I setup the auth component to work with flex? I get the "You are not authorized to access.." error even if I am calling the login method. I followed the tutorial on auth, but I can\'t get past this one. I manually allowed the login method and the error was gone. But the auth user still wasn\'t set

]]>
Tue, 5 Jan 2010 09:32:13 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released Ramiro Araujo Hi Daniel I\'ve been using your plugin and it rocks! A few things I do to tune it up a little: 1. I add a 3rd parameter to _listServices, which is a regexp to filter controllers. All my remoting controllers are prefixed with "remoting_". That\'s just my choice of course, but right now you have a method filtering and not a controller filtering. 2. I\'m not very experienced in class reflection, but the ReflectionClass of php5 seems to get all the inherited methods, and you don\'t usually need those in the service explorer. I basically use the php4 option :) That\'s it :) Thanks a lot for the plugin! Ramiro http://carrotplant.com/en/blog/cpamf-v011-released Ramiro Araujo

Hi Daniel I\'ve been using your plugin and it rocks! A few things I do to tune it up a little: 1. I add a 3rd parameter to _listServices, which is a regexp to filter controllers. All my remoting controllers are prefixed with "remoting_". That\'s just my choice of course, but right now you have a method filtering and not a controller filtering. 2. I\'m not very experienced in class reflection, but the ReflectionClass of php5 seems to get all the inherited methods, and you don\'t usually need those in the service explorer. I basically use the php4 option :) That\'s it :) Thanks a lot for the plugin! Ramiro

]]>
Sat, 26 Dec 2009 18:28:08 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released kbalcerek Hi All, Nobody answered and I didn\'t found any solution in google, so after a few evenings I did my own... I didn\'t test it very well, but for now it is working fine for me. My base version was v0.12 After changes adviced by Roel found under http://carrotplant.com/en/blog/cpamf-php-example I changed 2 more files, you can download them here: http://uploading.com/files/b4652ce9/cpamf.zip/ It is important to set $pluginPaths variable in bootstrap.php file. Hope it will help somebody... :) http://carrotplant.com/en/blog/cpamf-v011-released kbalcerek

Hi All, Nobody answered and I didn\'t found any solution in google, so after a few evenings I did my own... I didn\'t test it very well, but for now it is working fine for me. My base version was v0.12 After changes adviced by Roel found under http://carrotplant.com/en/blog/cpamf-php-example I changed 2 more files, you can download them here: http://uploading.com/files/b4652ce9/cpamf.zip/ It is important to set $pluginPaths variable in bootstrap.php file. Hope it will help somebody... :)

]]>
Tue, 15 Dec 2009 02:43:03 +0000
CpAmf php example http://carrotplant.com/en/blog/cpamf-php-example Itziar Hi, Thanks for the information. But I have an error with the service browser. When I access to the following url http://localhost/cpamf_test/cpamf/browser I get this error. (mx.rpc::Fault)#0 errorID = 0 faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: " faultString = "Send failed" message = "faultCode:Client.Error.MessageSend faultString:\'Send failed\' faultDetail:\'Channel.Connect.Failed error NetConnection.Call.BadVersion: \'" name = "Error" rootCause = (Object)#1 code = "NetConnection.Call.BadVersion" description = "" details = "" level = "error" what the problem might be? Thank Itziar http://carrotplant.com/en/blog/cpamf-php-example Itziar

Hi, Thanks for the information. But I have an error with the service browser. When I access to the following url http://localhost/cpamf_test/cpamf/browser I get this error. (mx.rpc::Fault)#0 errorID = 0 faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: " faultString = "Send failed" message = "faultCode:Client.Error.MessageSend faultString:\'Send failed\' faultDetail:\'Channel.Connect.Failed error NetConnection.Call.BadVersion: \'" name = "Error" rootCause = (Object)#1 code = "NetConnection.Call.BadVersion" description = "" details = "" level = "error" what the problem might be? Thank Itziar

]]>
Fri, 4 Dec 2009 14:42:30 +0000
CpAmf v0.11 released http://carrotplant.com/en/blog/cpamf-v011-released kbalcerek How to get access to controller in plugin. In the example attached UsersController is in app/controllers/ folder. I need to call method on controller that is in plugin, so it would be app/plugins/plugin_name/users_controller.php I have tried PluginName.UsersController in source attribute of RemoteObject, but it doesn\'t work. Anybody have any idea how to resolve it? http://carrotplant.com/en/blog/cpamf-v011-released kbalcerek

How to get access to controller in plugin. In the example attached UsersController is in app/controllers/ folder. I need to call method on controller that is in plugin, so it would be app/plugins/plugin_name/users_controller.php I have tried PluginName.UsersController in source attribute of RemoteObject, but it doesn\'t work. Anybody have any idea how to resolve it?

]]>
Thu, 3 Dec 2009 11:39:51 +0000
CpAmf php example http://carrotplant.com/en/blog/cpamf-php-example Roel Uhm.. ignore that last edit. Adding the suffix was a mistake. http://carrotplant.com/en/blog/cpamf-php-example Roel

Uhm.. ignore that last edit. Adding the suffix was a mistake.

]]>
Fri, 27 Nov 2009 19:09:02 +0000
CpAmf php example http://carrotplant.com/en/blog/cpamf-php-example Roel Hi, Thanks for the great plugin. I had the same problem as Benjamin. After some research I managed to fix it (as far I can see). It came down to this: In \'discovery_service_controller.php\' (line 89) use Inflector::underscore on $classname. Then in \'CakeMethodTable.php\' (line 42, 46) remove Inflector::underscore. This way it won\'t be applied on the whole path. At last I added the suffix \'Controller\' on line 50. This way the right class will be found in with MethodTable::getClassMethodsReflection() () http://carrotplant.com/en/blog/cpamf-php-example Roel

Hi, Thanks for the great plugin. I had the same problem as Benjamin. After some research I managed to fix it (as far I can see). It came down to this: In \'discovery_service_controller.php\' (line 89) use Inflector::underscore on $classname. Then in \'CakeMethodTable.php\' (line 42, 46) remove Inflector::underscore. This way it won\'t be applied on the whole path. At last I added the suffix \'Controller\' on line 50. This way the right class will be found in with MethodTable::getClassMethodsReflection() ()

]]>
Fri, 27 Nov 2009 18:06:54 +0000
CpAmf flex example http://carrotplant.com/en/blog/cpamf-flex-example Ricardo Hello again Daniel, thank you to answer my question! Sorry about that but, could you make an more simple and step-by-step tutorial to use your plugin? I\'m really want to use that but I don\'t understand where to put my files and how CakePHP map an view to Flex project. http://carrotplant.com/en/blog/cpamf-flex-example Ricardo

Hello again Daniel, thank you to answer my question! Sorry about that but, could you make an more simple and step-by-step tutorial to use your plugin? I\'m really want to use that but I don\'t understand where to put my files and how CakePHP map an view to Flex project.

]]>
Mon, 23 Nov 2009 12:57:08 +0000
CpAmf NON MATE flex example http://carrotplant.com/en/blog/cpamf-non-mate-flex-example Daniel Verner @Ced I cannot confirm, that cpamf is working with php 5.1.6, because I only test it with php 5.2+, but I suggest you the following: 1. check your gateway (it should look like: domain.com/cpamf/gateway - without .php extension at the end) 2. check the service browser is working ( domain.com/cpamf/browser) 3. usually the "channel disconnected" error happens when php code echo something (or when some error occurs) 4. check apache log for errors If you can find out the problem, please let me know, so I can fix it in the next release. http://carrotplant.com/en/blog/cpamf-non-mate-flex-example Daniel Verner

@Ced I cannot confirm, that cpamf is working with php 5.1.6, because I only test it with php 5.2+, but I suggest you the following: 1. check your gateway (it should look like: domain.com/cpamf/gateway - without .php extension at the end) 2. check the service browser is working ( domain.com/cpamf/browser) 3. usually the "channel disconnected" error happens when php code echo something (or when some error occurs) 4. check apache log for errors If you can find out the problem, please let me know, so I can fix it in the next release.

]]>
Mon, 23 Nov 2009 12:33:39 +0000
CpAmf NON MATE flex example http://carrotplant.com/en/blog/cpamf-non-mate-flex-example Ced Hello, First thanks for all your efforts. It\'s great. I am trying your plugin because I am stuck with PHP 5.1.6 at work so no datetime and therefor no zendamf possible and also I am a Cake user. that\'s what brought me here. I couldn\'t find any thing about PHP version. Can you confirm this plugin works with PHP 5.1.6 I am using the non MATE example because I am more of a Cairngorm guy. I think the cake part is correctly working but I get a "Channel disconnected" on Flex side. Any idea where that could come from? http://carrotplant.com/en/blog/cpamf-non-mate-flex-example Ced

Hello, First thanks for all your efforts. It\'s great. I am trying your plugin because I am stuck with PHP 5.1.6 at work so no datetime and therefor no zendamf possible and also I am a Cake user. that\'s what brought me here. I couldn\'t find any thing about PHP version. Can you confirm this plugin works with PHP 5.1.6 I am using the non MATE example because I am more of a Cairngorm guy. I think the cake part is correctly working but I get a "Channel disconnected" on Flex side. Any idea where that could come from?

]]>
Mon, 23 Nov 2009 11:12:40 +0000
CpAmf flex example http://carrotplant.com/en/blog/cpamf-flex-example Daniel Verner @Ricardo You can put the flex project anywhere you want. You should put the bin-debug folder somewhere in your webroot, to prevent security sandbox violation. http://carrotplant.com/en/blog/cpamf-flex-example Daniel Verner

@Ricardo You can put the flex project anywhere you want. You should put the bin-debug folder somewhere in your webroot, to prevent security sandbox violation.

]]>
Mon, 23 Nov 2009 10:38:36 +0000