Re: Plugin and missing controller
I changed them to bools and they still work. You are right that that is the convention - I hadn't really observed that the were strings here. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 7 May 2011, at 06:50, Sam Sherlock wrote: cool no problem. I see you went back to strings for route prefixes - I thought these would be better as bools thats the code in the book at least - or am I missing something? - S On 7 May 2011 05:28, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Thanks Sam - you encouraged me to go and play with the routes and here is what I ended up with, and it works: /* Paypal IPN plugin */ Router::connect('/paypal_ipn/process', array('plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'process')); /* Optional Route, but nice for administration */ Router::connect('/paypal_ipn', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); // = NEW Router::connect('/paypal_ipn/:action/*', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); /* End Paypal IPN plugin */ Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 6 May 2011, at 19:41, Sam Sherlock wrote: Are you still perplexed? I just got the admin to work 1a) add line that is uncommented 1b) first I changed this (removing the red) ?php // die ('we got here still no cigar'); class PaypalIpnAppController extends AppController { } ? 2) I did not like the routes - true was a string and this does not find index for me I always have an index catch before the other action catch all (aplogies if my terminology is crappy) Router::connect('/admin/paypal_ipn/', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); Router::connect('/admin/paypal_ipn/:action/*', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); 3) next I found that the database had not been made (I had not pressed enter in my console duh) 4) next I had to undo the first step (and that suggests that just changing the routes should work for you since step 3 was my own stoopidness and 4 negated 1) the admin loads. I am now amused by my own wry smile in the reflection of my screen. - S On 5 May 2011 09:58, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Any clues? I'm stumped as this should all just work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 13:11, Jeremy Burns | Class Outfit wrote: Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new
Re: Plugin and missing controller
Are you still perplexed? I just got the admin to work 1a) add line that is uncommented 1b) first I changed this (removing the red) ?php // die ('we got here still no cigar'); class PaypalIpn*App*Controller extends AppController { } ? 2) I did not like the routes - true was a string and this does not find index for me I always have an index catch before the other action catch all (aplogies if my terminology is crappy) Router::connect('/admin/paypal_ipn/', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); Router::connect('/admin/paypal_ipn/:action/*', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); 3) next I found that the database had not been made (I had not pressed enter in my console duh) 4) next I had to undo the first step (and that suggests that just changing the routes should work for you since step 3 was my own stoopidness and 4 negated 1) the admin loads. I am now amused by my own wry smile in the reflection of my screen. - S On 5 May 2011 09:58, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Any clues? I'm stumped as this should all just work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 13:11, Jeremy Burns | Class Outfit wrote: Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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 -- 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 -- 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: Plugin and missing controller
Thanks Sam - you encouraged me to go and play with the routes and here is what I ended up with, and it works: /* Paypal IPN plugin */ Router::connect('/paypal_ipn/process', array('plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'process')); /* Optional Route, but nice for administration */ Router::connect('/paypal_ipn', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); // = NEW Router::connect('/paypal_ipn/:action/*', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); /* End Paypal IPN plugin */ Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 6 May 2011, at 19:41, Sam Sherlock wrote: Are you still perplexed? I just got the admin to work 1a) add line that is uncommented 1b) first I changed this (removing the red) ?php // die ('we got here still no cigar'); class PaypalIpnAppController extends AppController { } ? 2) I did not like the routes - true was a string and this does not find index for me I always have an index catch before the other action catch all (aplogies if my terminology is crappy) Router::connect('/admin/paypal_ipn/', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); Router::connect('/admin/paypal_ipn/:action/*', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); 3) next I found that the database had not been made (I had not pressed enter in my console duh) 4) next I had to undo the first step (and that suggests that just changing the routes should work for you since step 3 was my own stoopidness and 4 negated 1) the admin loads. I am now amused by my own wry smile in the reflection of my screen. - S On 5 May 2011 09:58, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Any clues? I'm stumped as this should all just work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 13:11, Jeremy Burns | Class Outfit wrote: Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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 -- 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 -- 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
Re: Plugin and missing controller
cool no problem. I see you went back to strings for route prefixes - I thought these would be better as bools thats the code in the book at least - or am I missing something? - S On 7 May 2011 05:28, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Thanks Sam - you encouraged me to go and play with the routes and here is what I ended up with, and it works: /* Paypal IPN plugin */ Router::connect('/paypal_ipn/process', array('plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'process')); /* Optional Route, but nice for administration */ Router::connect('/paypal_ipn', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); // = NEW Router::connect('/paypal_ipn/:action/*', array('admin' = 'true', 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); /* End Paypal IPN plugin */ Jeremy Burns *Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com http://www.classoutfit.com On 6 May 2011, at 19:41, Sam Sherlock wrote: Are you still perplexed? I just got the admin to work 1a) add line that is uncommented 1b) first I changed this (removing the red) ?php // die ('we got here still no cigar'); class PaypalIpn*App*Controller extends AppController { } ? 2) I did not like the routes - true was a string and this does not find index for me I always have an index catch before the other action catch all (aplogies if my terminology is crappy) Router::connect('/admin/paypal_ipn/', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); Router::connect('/admin/paypal_ipn/:action/*', array('admin' = true, 'plugin' = 'paypal_ipn', 'controller' = 'instant_payment_notifications', 'action' = 'index')); 3) next I found that the database had not been made (I had not pressed enter in my console duh) 4) next I had to undo the first step (and that suggests that just changing the routes should work for you since step 3 was my own stoopidness and 4 negated 1) the admin loads. I am now amused by my own wry smile in the reflection of my screen. - S On 5 May 2011 09:58, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Any clues? I'm stumped as this should all just work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 13:11, Jeremy Burns | Class Outfit wrote: Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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 -- 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 -- Our newest site for the community: CakePHP
Re: Plugin and missing controller
Any clues? I'm stumped as this should all just work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 13:11, Jeremy Burns | Class Outfit wrote: Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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 -- 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
Plugin and missing controller
I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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: Plugin and missing controller
Just to make sure that nothing else in my application was causing problems, I have installed the plugin in a bare copy of Cake 1.3.8, and it still comes up with the missing controller error. Any clues/guidance/advice? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 4 May 2011, at 07:19, Jeremy Burns wrote: I have downloaded WebTechNick's PayPal plugin and copied the files into /app/plugins/paypal_ipn (exactly as per the instructions). I have amended /app/config/routes.php to include the routes for the plugin (these are copied straight from the installation instructions). As part of debugging this problem I have placed the routes at the top of the file. When I access http//:[mysite]/paypal_ipn I am getting a missing controller error: Error: PaypalIpnController could not be found. Error: Create the class PaypalIpnController below in file: app/ controllers/paypal_ipn_controller.php I'm baffled as I have followed conventions yet this isn't working. I have other plugins working as expected. What am I doing wrong? -- 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 -- 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