Re: Having problems with javascript.
El mar, 05-02-2008 a las 11:12 -0800, Ithaka escribió: No... i don't have any anything on my site yet except a default layout, how would i make a controller for the layout? I suggest you start reading the manual (http://manual.cakephp.org/), and try to complete the tutorial (http://manual.cakephp.org/appendix/blog_tutorial) to get used with the framework. --~--~-~--~~~---~--~~ 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: Having problems with javascript.
El mar, 05-02-2008 a las 08:43 -0800, Ithaka escribió: Hi, Hello? I'm having a problem with javascript in cakephp 1.2. As if that wasn't obvious enough. The Problem: I wish to load javascript in the layout for my buttons and other little functions i will implement later on. I've been looking for the past 2 days and i always see the same thing. $javascript-link('script') and $_scripts_for_layout. So i try doing these in my layout yet the javascript does not load. I keep getting the error: undefined function: javascript and call to a member function link() on a non object in... Another small problem i found was that there are so many js folders in place, i don't know which one to put them in. I assumed it was in webroot/js/ but to make sure, i put them everywehre i could. Thank you in advance to everyone that leaves a positive response and/ or solution. Are you loading the JavaScript Helper on the controller? -- No a la matriculación obligatoria: http://noalamatricula.wordpress.com Se libre usando Software Libre: http://www.gnu.org/ Mi Blog: http://juanfgs.wordpress.com --~--~-~--~~~---~--~~ 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 to create sorting links ?
El lun, 04-02-2008 a las 01:22 -0800, ITBiNus escribió: Dear all, somebody can help me ? I want to make a link, when the link clicked then the contains of fields will be sorted (in 1 page). ascending or descending like ... title sorted by alphabet or sorted date. Regards, Angel echo $paginator-sort('id'); ? also you might want to take a look at the API documentation of the PaginatorHelper (http://api.cakephp.org/1.2/class_paginator_helper.html), to set pagination options. --~--~-~--~~~---~--~~ 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 to do just a view ?
El lun, 04-02-2008 a las 02:21 -0800, zeugme escribió: Hi, Hello (also, hello to all bakers!), I'm new in CakePHP, amazingly, I choose CakePHP for the power of MVC, SQL mapping ... It's nice to hear that, I'm pretty much a newbie too. but I need to deal with my home page witch have no model. This page however is not purely static, it contains PHP, SQL ... Where do I put such files ? /app/webroot ? or /app/view.pages ? I think the easiest way to do that would be to create a controller with a home() action that uses (see the $uses variables) the models where you need to get the data for the home page. That way you can create methods on the models involved to return the data, so, no need for SQL at all. What are the differences between those 2 folders ? This page also rely on some javascript framework (JQuery). Where do I put my jquery.js file ? If I put it inside app/webroot/js it doesn't appears to be taken into account ... It's like if I had to put that general js files at the physical root, the folder that contains /app. No, you have to put it in app/webroot/js, and load it using the JavaScript Helper, remember to load the helper on the appropiate controller. Maybe there is some doc I should read ? I read the manual, tuto, browse the bakery and did not found, but that do not mean it doesn't exists :-) Thanks for your help ! I hope that helps! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---