Javascript Error

2007-11-04 Thread Raul
Javascript error.. I have included my js files that resides in webroot/js folder in the default layout (default.thtml) as link('projrct.basic'); ?> The name of my javascript file is project.basic.js Then I found the error message like- Notice: Undefined variable: javascript in H:\www\webr

SimplePie View

2007-11-04 Thread seacloud9
I am having issues with my simplepie view. I can get a feed but I can not display the feed. I am trying to follow this example: http://cakeforge.org/snippet/download.php?type=snippet&id=341 Please let me know what is wrong with this view... View Index.thtml Controller: Simplepie->feedu

Re: layout control with default pages controller.

2007-11-04 Thread Grant Cox
The easiest way is to have $this->layout = 'other_layout' in the actual view file, rather than messing with routes/ request params. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

layout control with default pages controller.

2007-11-04 Thread jmw
I have a very simple site and am new to cake, but not MVC frameworks. I currently use the default Pages controller to render the pages in the site, very few of them need their own customer controller / logic. I do however need some of them to switch to a different layout. I have defined a default

Re: Model with custom id fields

2007-11-04 Thread maxpo
thanx buddy will surely lookup for them :P Thanx once again :D On Nov 3, 3:27 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 3, 8:20 am, maxpo <[EMAIL PROTECTED]> wrote: > > > how easy isn't it??? But u forgot it can cause a duplicate entry of > > same student_id and assessment_id which is not a

Re: Google Checkout / Paypal integration?

2007-11-04 Thread [EMAIL PROTECTED]
http://xerophyte.net looks good. Thanks friend! you are a lifesaver. cakegchk did not provide any downloads, probably the code needs to be fetched from repository. I will try it somtime. On Nov 4, 7:41 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote: > Here's my start to a component. There will e

Re: Cannot set up referential relationship in MySQL

2007-11-04 Thread Steveston
Never mind. I found the problem. It is because I have some course_id in groups which do not exist in courses. On Nov 4, 3:50 pm, Steveston <[EMAIL PROTECTED]> wrote: > I have 6 tables > 1. course > 2. groups > 3. group_members > 4. group_events > 5. events > 6. users > > "Users" is the parent ta

Cannot set up referential relationship in MySQL

2007-11-04 Thread Steveston
I have 6 tables 1. course 2. groups 3. group_members 4. group_events 5. events 6. users "Users" is the parent table for group_members "Courses" is the parent table for groups "events" is the parent table for group_events "groups" is the parent table for group_members and group_events (Parent tab

Re: querying across models with multiple databases and useDbConfig

2007-11-04 Thread Grant Cox
1. It is just not possible to do this, unless the one mysql connection has permission to access both databases (ie same database server, same user/pass). 2. If the permissions are ok, then you can do a join across databases by prefixing the database name, eg SELECT User.* from database1.users a

Re: Model Associations Misbehave (very interesting)

2007-11-04 Thread Grant Cox
No no, the only issue is the recursive level. When you query a model, by default the queries generated also include that model's direct associations. So, when you request a Topic you also get the Posts (one level of association away). But it doesn't get the Users for those Posts, because that i

Re: Model Associations Misbehave (very interesting)

2007-11-04 Thread mbleonardo
Sorry, I just forgot to translate that part. Now I changed everything to English, it matches the model and table correctly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: Model Associations Misbehave (very interesting)

2007-11-04 Thread mbleonardo
Sorry, I translated the table name to English and I forgot to change that part. It was written "Usuario" everywhere, but now I changed everything to Users, and the problem continues the same way. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: How to update ARO with Cake 1.2?

2007-11-04 Thread lemp
I came up with this solution, based on code from ACL behavior. I'm a newbie so I may have missed something important. Any comments from a pro will be welcomed. I have added the following aftersave function to my user model: function afterSave() { if ($this->id) { $type = 'Aro'; $parent

Re: Unknown internal server error

2007-11-04 Thread francky06l
Ask your provider, maybe it's possible ..I had similar on share hosting and I did ask them proposing a "special CGI" and it works On Nov 4, 7:32 pm, Andreas <[EMAIL PROTECTED]> wrote: > Unfortunately I can't do that. Using a webhotel and I doubt they would > do that for me. > > On Nov 4, 4:45 pm,

Re: querying across models with multiple databases and useDbConfig

2007-11-04 Thread francky06l
Did you set debug to 2 ? belongsTo relation is generating a JOIN statement I believe.. I admit I have never tried having this kind of relation over 2 different DB, very interesting case. Did you try to set the Document with a "not default" config and the user with the default one ? On Nov 4, 10:1

Re: Model Associations Misbehave (very interesting)

2007-11-04 Thread Felix Geisendörfer
Hey, > var $belongsTo = array('Usuario' => >array('className' => 'Usuario', > 'conditions' => '', > 'order' => '', > 'foreignKey' => 'poster_id' >

Model Associations Misbehave (very interesting)

2007-11-04 Thread mbleonardo
I'm making a simple Forum plugin to train with CakePHP. It has 4 models: Forum, Topic, Post and User: (You can pass by this part, I put it to explain better the problem) array('className' => 'Post', 'conditions' => '',

querying across models with multiple databases and useDbConfig

2007-11-04 Thread Martin Wood-Mitrovski
I have a similar question to this one : http://groups.google.com/group/cake-php/browse_thread/thread/739fceb74b7ad621/f79ef013c80afccf?lnk=gst which is kind of lurking unanswered. :) Say I have 2 models, User and Document User hasMany Documents Document belongsTo User They each live in sepera

Re: intermittent error

2007-11-04 Thread francky06l
I have seen this error, mainly when I was updating the site while people were working ... Maybe it's related to file/directory permissions or lock during update ? On Nov 4, 7:30 pm, "lee carroll" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm receiving intermittent errors (perhap 1 in 10 page requests

Re: Strange "caching" in cakephp

2007-11-04 Thread Pablo Viojo
I think is a behavior related with your browser cache. Try deleting it before going back to the list -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 11/4/07, Jan Koprowski <[EMAIL PROTECTED]> wrote: > > > Hi ! > > I have strange "caching" in cake. I have list of some items. I delete > it

Re: Unknown internal server error

2007-11-04 Thread Andreas
Unfortunately I can't do that. Using a webhotel and I doubt they would do that for me. On Nov 4, 4:45 pm, francky06l <[EMAIL PROTECTED]> wrote: > I had this prior to remove the zend optimizer from php.ini > > On Nov 4, 4:11 pm, Andreas <[EMAIL PROTECTED]> wrote: > > > Hi > > > Just downloaded the

intermittent error

2007-11-04 Thread lee carroll
Hi, I'm receiving intermittent errors (perhap 1 in 10 page requests) which either return a blank page or the following errors Warning: main(config/core.php) [function.main]: failed to open stream: No such file or directory in /...server..path.../htdocs/sites/ampname/cake/bootstrap.php on line 34

Strange "caching" in cakephp

2007-11-04 Thread Jan Koprowski
Hi ! I have strange "caching" in cake. I have list of some items. I delete item, and back to the list - item is still present... I have same things with log (session) users, add and edit all things in cakephp... I must press F5 to refresh view to real - what i should to do ? --~--~-~--~

Re: 1.1 ACL without using console?

2007-11-04 Thread VolCh
Thanks :) On 1 окт, 17:23, esion <[EMAIL PROTECTED]> wrote: > May be you can execute db_acl.sql stored in yourcake/app/config/sql/ > on your sql server > > No local cake install?! urf > > On 20 sep, 17:51, SpyderDriver <[EMAIL PROTECTED]> wrote: > > > I am stepping through the IBM tutorials and n

How to update ARO with Cake 1.2?

2007-11-04 Thread lemp
I have implemented ACL (and auth) using lemoncake tutorials (thanks Geoff! - http://lemoncake.wordpress.com/2007/07/19/acl-with-groups/) and everything works fine, though it took me a fair numbers of hours to make it all work (btw, there is an excellent tutorial for ACL newbies here: http://realm

Re: Bakery Emails not working

2007-11-04 Thread davidpersson
Have the same problem see: https://trac.cakephp.org/ticket/3479 -david On 4 Nov., 15:54, Walker Hamilton <[EMAIL PROTECTED]> wrote: > The bakery is not sending Password Reset or New Account emails. > I can only assume that the comment notification emails are not working > either. --~--~---

Re: Unknown internal server error

2007-11-04 Thread francky06l
I had this prior to remove the zend optimizer from php.ini On Nov 4, 4:11 pm, Andreas <[EMAIL PROTECTED]> wrote: > Hi > > Just downloaded the pre beta to test out but I keep getting internal > server error 500 in the browser when I run it. I'm sorry that i can't > be more precise but I can't find

Unknown internal server error

2007-11-04 Thread Andreas
Hi Just downloaded the pre beta to test out but I keep getting internal server error 500 in the browser when I run it. I'm sorry that i can't be more precise but I can't find any logs anywhere. I had another cakephp installation running on the same machine just a few days ago (the current stable

Re: Google Checkout / Paypal integration?

2007-11-04 Thread Walker Hamilton
Here, better: http://code.google.com/p/cakegchk/ --~--~-~--~~~---~--~~ 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

Bakery Emails not working

2007-11-04 Thread Walker Hamilton
The bakery is not sending Password Reset or New Account emails. I can only assume that the comment notification emails are not working either. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: Google Checkout / Paypal integration?

2007-11-04 Thread Walker Hamilton
Here's my start to a component. There will eventually be an extended API section and a helper to go along with this, as I am actively working on 3 projects that will be useing and are using google checkout. Here's the first one: http://xerophyte.net http://code.google.com/apis/checkout/samplecod

Re: CakePHP-powered Forum best structure?

2007-11-04 Thread Freight
You can change the path to access your cakeapp on several ways. E.g. htaccess, index.php, cake-route. I would use a model also for forum. Greetings On 3 Nov., 17:29, mbleonardo <[EMAIL PROTECTED]> wrote: > Hi all, I wanna start making a forum application with CakePHP and I'm > asking for sugges

Re: Components array used opposed to extends?

2007-11-04 Thread Richard
Thank you. On Nov 2, 3:10 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 1, 2:46 pm, Richard <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have several component classes that need to extend a parent class. > > Which is the correct approach: > > > class Availability extends Object > > { > >

Google Checkout / Paypal integration?

2007-11-04 Thread [EMAIL PROTECTED]
Hi, Are there any components to integrate Google checkout or paypal with CakePHP 1.2? I can see one component for cake 1.1 but not clear about how much it supports. Anybody any suggestions? TIA, Rex --~--~-~--~~~---~--~~ You received this message because you ar

Re: book on cake?

2007-11-04 Thread Daniel
Is "the Rails" book titled Agile Web Development with Rails ? --~--~-~--~~~---~--~~ 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 thi

Re: cache vs Cache?

2007-11-04 Thread Joel Stein
Thanks, Gwoo! That does help. I'll start updating all my cache() calls. --~--~-~--~~~---~--~~ 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 unsubscri

Re: controller's main model's associated model instance variable

2007-11-04 Thread francky06l
You request the action in an action, one instance of the modelB is already loaded and used. I think that quite the way I expect it to work, creating new instances would make some tasks very difficult to achieve as well as performances poor (in my opinion). However, you can still create explicitly