Re: call store procedure in cakephp
You want to call a view from a mysql stored procedure? You could probably make a request to a controller. Without a controller you wouldn't have much in your view!! On Oct 17, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i want to convert my whole system in store procedure, so that place > guide me how can i call store procedure, & how can i call view from > mysql. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: Naming Conventions
Should be able to do this in the model. Class Service extends AppModel { var $useTable = 'service'; } On Oct 16, 4:48 pm, MDB <[EMAIL PROTECTED]> wrote: > Hello all, I have a cake application that I need to add an existing > table to that doesn't follow the cake naming convention and I am > unable to change the table name so my question is, how do I work > around this. For example, the table name is service (rather than > services) so do to this, I can not figure out how to name the > controller, controller class or if this is even possible? Is there a > way to do this where the naming conventions are not used on all tables? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: Check out this CakePHP Job Board - Small Problem
look at previous posts on routing. You need to either use some rule in .htaccess or add some custome routes. cakephp is expecting to see a controller called uploads.. On Sep 1, 8:36 pm, kujina <[EMAIL PROTECTED]> wrote: > Please check out my simple job board here: > > http://82.34.51.7/jobboard > > My problem is with the "Application Pack" documents, the url path to > the file is not complete! > > When you click to open a file, this error displays "Error: The > requested address '/uploads/App-Form_010908-202743.doc' was not found > on this server." > > In the "application_config.php" file I have this: > > // URL path where the uploaded docs can be accessed > define('UPLOADS_URL', 'http://82.34.51.7/jobboard/uploads'); > > In the "view.ctp" file I have this: > > Application Pack > image('pdf-icon.gif', array('alt'=>'', > 'style'=>'vertical-align: bottom; margin-right: 5px')) ?> $html->link('Application Form', UPLOADS_URL . "/{$job['Job'] > ['application_form_doc']}", array('style'=>'color: #000; text- > decoration: none')); ?> > image('pdf-icon.gif', array('alt'=>'', > 'style'=>'vertical-align: bottom; margin-right: 5px')) ?> $html->link('Job Description', UPLOADS_URL . "/{$job['Job'] > ['job_description_doc']}", array('style'=>'color: #000; text- > decoration: none')); ?> > image('pdf-icon.gif', array('alt'=>'', > 'style'=>'vertical-align: bottom; margin-right: 5px')) ?> $html->link('Information', UPLOADS_URL . "/{$job['Job'] > ['information_doc']}", array('style'=>'color: #000; text-decoration: > none')); ?> > > > Can anyone please help? > > ...Thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: General purpose page / design issues
In terms of adding small pieces of functionality I tend to use a mixture of requestActions and renderElement. For example in an ecommerce site I may use $categories = $this- >requestAction('/categories/index'); to retrieve the categories and display them on the index page. Same would apply for forum entries. I could use echo $this->renderElement('show_menu') to render the menu in the index page or into the layout itself. On May 20, 10:19 pm, Matt Huggins <[EMAIL PROTECTED]> wrote: > I've been using CakePHP for almost 2 years now, and I still don't know > what the best way to do this is. The way I do it is I end up creating > an added action in one of my controllers, and I change the routing for > the homepage to point there. I'd really like to know of a better > approach to this, as I haven't found any good real-world example. > > On May 20, 2:17 pm, W Marsh <[EMAIL PROTECTED]> wrote: > > > Hi. > > > If you look at most web sites you will see that their index pages are > > generally a mish-mash of different functionality. For example, they > > might give a summary of recent blog posts coupled with other > > statistics, all relating from various models in the system. > > > How does this fit into the model-view-controller mentality? > > Controllers and models tend to be focused on one specific piece of > > functionality in the examples I've seen. There are no good examples of > > real world usage. > > > I should point out this is a design/best practices question. I know > > HOW to make an index/general purpose page work, but I would like to > > hear some wisdom on how to do it in the CakePHP spirit. > > > Thanks. > > > - Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---