Re: is there any way to connect two models in different schemas with HABTM?
Please, for now, desconsider this message. I forgot to put in the action 'add' the commands to add inside the join table. I was accustomed to using the bake, and in this time, i did it by hand. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
is there any way to connect two models in different schemas with HABTM?
Hi, i've tried to use only one connection for two schemas, two connection, one of each schema, but they don't work. I can match two models in different schemas with belongsTo, hasMany, hasOne, but i can't do it with HABTM. Is there any way? --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: I wanna catch an controller object
No one of these three ways could solve my problem. I can't put inside models. Inside AppControllers, i have three interfaces. Each subclass must say which concrete class that implements interface must be called. But i just know which concrete class in runtime. So, three setInterfaces was put inside AppControllers. and for each controller, in runtime, i have to indicate the concrete classes. I created an controller called SetupController, it will be this work, but i cant acess another controllers from it. I could not note how the answers above can help me, because a need the objects. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
I wanna catch an controller object
Hi, I have one controller called SetupController and, inside it, i need to call one function that is in another controller. but i can' t catch other controllers inside SetupController to do this call. I tried use Configure::listObjects, but it just returns the controller's name, and not the objects. Is there any way to do what i want to? --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: can't connect to database -- no reason given
if you are sure that database.php is correct, verify if your database is running, because this message just shows when the cakephp really can't connect with database. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Why we cann't use Auth component in AppController?
You can put Auth in App Controller and it will work fine, and you can override it in UsersController. In this controller, you can write beforeFilter() { parent::beforeFilter(); // this line will call the AppController's beforeFilter line 1 } and after line 1, you can put new allow/deny commands and they will replace the old allow/deny. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to work with different schemas?
up --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
how to work with different schemas?
Hy, I have something to work with schemas and PostgreSQL. I would like to make join between tables of different schemas, but from the same database. Someone can work this way? --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: trouble when i try to use OOP with Cake
If necessary, i can post my code. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
trouble when i try to use OOP with Cake
hello, my controllers have interfaces for all CRUD's action. When i wanna change the behavior of my actions, i change the implementations of interface. So, inside one controller, i have to create a instance of one class that implements the interface, and call the one method. But, i cant associate an class with a model without use controller. My question is: Can i have a class, that not extends AppController, and this class to be to associated with a model? --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to config my habtm?
Now, i just have this: [ relevant part of code ] model Usuario var $hasAndBelongsToMany = 'ObjetoAprendizagem'; model ObjetoAprendizagem var $hasAndBelongsToMany = 'Usuario'; just this. Thank you, I couldn't change the db because other people use it, and i have to make a system using cake. I'm gonna change my code looking at the link. Vlw, --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: ORM
I've not seen SQL errors, i asked because teached me wrong, without to put hasMany, but i never had troubles. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
how to config my habtm?
Hello, i'm using HABTM but, how i didn't know it, my db doesn't follow the cake's convention. I have two tables called 'objetos_aprendizagens' and 'usuarios', but my join table is 'objeto_aprendizagem_autores' . How can i use it without change my db? 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
ORM
Does anyone know if there is some trouble if, in an one-to-many relationship, i don't put $hasMany variable in one of the models, but to put $belongsTo in the other. Is this right? --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: xampp phpeclipse dbg
Eu não sei qual o seu problema, pois não utilizo o Eclipse com o Cake dessa forma, a única coisa que posso dizer, pois reparei na figura 2, é que você está chamando o endereço errado na URL. Todas as pastas dentro de htdocs são encaradas como páginas web, e account está dentro de faninter, logo vc deve chamar localhost/faninter. Reiterando, isso não resolverá o problema. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
what is the best way to restrict actions to different profiles from the same model User?
Hi, Im my DB, i have one table called 'user' with a field called profile, and only the profile 'admin' can add a new user. Is wrong i put one if in the add action that execute only if the profile is 'admin'? I am using AuthComponent. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---