Raisen - this looks ideal! Will try it out some time soon. Thanks for sharing.
On 15 October 2010 04:28, Raisen <[email protected]> wrote: > I created the report plugin using the cake command line: > > cake bake plugin report > > The folder structure for the plugin looks just like the main > application's one - views, controllers, models, etc. > > So I created a view/controller for each report I want. > > It's very simple. Be sure to read > http://book.cakephp.org/view/119/Plugin-Tips > > "Once a plugin has been installed in /app/plugins, you can access it > at the URL /pluginname/controllername/action. In our pizza ordering > plugin example, we'd access our PizzaOrdersController at /pizza/ > pizzaOrders." > > That's what triggered me to use plugins - the url format. > > > On Oct 13, 1:49 pm, Michael Tokar <[email protected]> wrote: > > Interesting. Do you think you could post some sample code of your report > > plugin? > > > > On 14 October 2010 09:41, Raisen <[email protected]> wrote: > > > > > > > > > > > > > > > > > I did find a way to make a reports section the way I want - plugins! > > > Just create a reports plugin and then you can add the sales, > > > customers, etc... controllers/views. The url will look like: > > > > >http://url.com/reports/sales/ > > > > > On Oct 13, 1:15 pm, Michael Tokar <[email protected]> wrote: > > > > On 14 October 2010 07:17, cricket <[email protected]> wrote: > > > > > > > But let's back up a bit--do you have Sale & Customer models? What I > > > > > was getting at in my earlier suggestion was that you could declare > > > > > options in each model for how its reporting would be conducted. > > > > > > For my situation at least, that doesn't seem like a great solution, > as I > > > > don't have a one-to-one relationship with Models and Reports. Several > of > > > my > > > > reports use multiple models, and several models have different > reports > > > > associated to them. > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > others > > > with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > Groups > > > "CakePHP" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<cake-php%[email protected]> > <cake-php%[email protected] om>For more options, visit this > group at > > >http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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
