Re: Detect cookies

2008-07-04 Thread dandreta
c-i.com/gEwCart/HowToEnableJavascriptAndCookies.htm > > Of course, if you have also to check if javascript is enabled .. :-) > > On Jul 4, 2:24 am, dandreta <[EMAIL PROTECTED]> wrote: > > > any solution, please? > > > On 26 jun, 09:42, dandreta <[EMAIL PROTECTED]> wrote: > > &

Re: Detect cookies

2008-07-03 Thread dandreta
any solution, please? On 26 jun, 09:42, dandreta <[EMAIL PROTECTED]> wrote: > Hi! > > I have used the OthAuth component for the access to my application, > defining the groups and permissions. If in the browser thecookiesare > not activated, on login the user cannot en

Detect cookies

2008-06-26 Thread dandreta
Hi! I have used the OthAuth component for the access to my application, defining the groups and permissions. If in the browser the cookies are not activated, on login the user cannot enter to the restricted functions because the permissions are not loaded in the session. What I want is if a user

Delete hasOne

2008-06-18 Thread dandreta
Hi! I have two tables:Student and profile with hasone association Table Student: profile_id Table Profile:id And two models Profile hasOne Student (fk:profile_id) Student belongsTo Profile (fk:profile_id) If i delete a profile the associated Student is deleted, but how can I delete the associa

Select or text field depending on another select

2008-06-07 Thread dandreta
Hi, I am doing searchs in my cake application. I have a select with options and a text field. I want that if in this select is chosen option 1 or option 2, the text field is kept to introduce the text to search, but if the selected option is 3, I want that the text field is replaced by another ne

Re: Class diagram (MVC)

2008-05-17 Thread dandreta
Then, to seeing if I have understood it well. For my example, I have two classes: --- PersonsController {attributes} -model:Person {methods} +insertPerson(name,age,sex):void +obtListPersons():Person[] -

Relocate buttons after form validation

2008-05-16 Thread dandreta
Hi! I have a problem. I have a view with a form with the fields to refill and under of they a button to accept. The question is that after the information of the form validates, if anyone gives error, it shows the message correctly under the text fields that have failed but the button to accept re

Re: Class diagram (MVC)

2008-05-16 Thread dandreta
understood to me. Thanks and regards On 15 mayo, 22:41, "Juan Miguel Paredes" <[EMAIL PROTECTED]> wrote: > On Fri, May 16, 2008 at 3:28 PM, dandreta <[EMAIL PROTECTED]> wrote: > > > Hi! > > I am developing my web application with cake, but I need to d

Class diagram (MVC)

2008-05-15 Thread dandreta
Hi! I am developing my web application with cake, but I need to deliver the diagram of classes of the application with the Model-View- Controller that uses. I have been searching very much but I do not find anything of help. If someone can say me any link or something i will great. Thanks and rega

Re: Multilanguage web, database content

2008-04-07 Thread dandreta
Thanks for your response. Do you know other links where explains more about this translate behaviour? On 7 abr, 15:02, Sliv <[EMAIL PROTECTED]> wrote: > Have you looked at the translate behaviour? > > http://api.cakephp.org/1.2/class_translate_behavior.html --~--~-~--~~~--

Multilanguage web, database content

2008-04-07 Thread dandreta
Hi! I am developing a multilanguage site and I have followed the tutorial of the bakery (http: //bakery.cakephp.org/articles/view/p28n-the-top-to-bottom- persistent-internationalization-tutorial) to translate the static content and it works well. The problem is that I want to have also some record

Re: Different types of users

2008-03-25 Thread dandreta
Any ideas? How can I relate othauth component with managers, clients and suppliers tables that contains all users? On 24 mar, 14:18, dandreta <[EMAIL PROTECTED]> wrote: > I am searching and reading enough things on the users' access and > permissions (OthAuth, ACL ...) and final

Different types of users

2008-03-24 Thread dandreta
I am searching and reading enough things on the users' access and permissions (OthAuth, ACL ...) and finally I have applied the othauth component. The question is that I want to do the access to my application depending on the type of user. I have 3 types of users:manager, client, supplier and in

Re: Order HABTM by a field in an associated table

2008-03-24 Thread dandreta
any idea? On 19 mar, 13:39, dandreta <[EMAIL PROTECTED]> wrote: > If I add the relation in the model Person : > > var $belongsTo = array('Profile' => array('className' => 'Profile', >

Model related(hasMany) as condition of paginate

2008-03-06 Thread dandreta
Hi! I have two models:(Client,purchase) One client has many purchases. In clients_controller: If I want to paginate all clients with name John I do: $this->paginate(array('Client.name' => 'John')) But how can I paginate all clients who have bought a certain product (for example, condition: purc

Model related as condition of paginate

2008-02-21 Thread dandreta
Hi! I have two models:(Client,purchase) One client has many purchases. In clients_controller: If I want to paginate all clients with name John I do: $this->paginate(array('Client.name' => 'John')) But how can I paginate all clients who have bought a certain product (for example, condition: purc

Re: Send E-mail

2008-02-16 Thread dandreta
et/mail > > Then make a little test in a Cake controller that you can call > directly which does the same thing. Then you can worry about the > emailcomponent etc. > > Wayne > > On 2/15/08, dandreta <[EMAIL PROTECTED]> wrote: > > > > > Hi! > >

Send E-mail

2008-02-15 Thread dandreta
Hi! I am developing my application with Cake 1.2 and I want to have send e- mails functionality. Inside pages folder, I have the view to send e-mail with the basic fields: Destination, Subject and Message(body). I have been reading about EmailComponent in Bakery's article (http://bakery.cakephp.or

New record without form

2008-01-28 Thread dandreta
I have a function that receives an array of data($product). How can I create a new record in the database with the information received without using a form? Thanks and regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Change layout depending on the type of user in OthAuth

2008-01-28 Thread dandreta
On 27 ene, 14:57, dandreta <[EMAIL PROTECTED]> wrote: > Hi!! > I have applied Othauth component to define the user groups and their > permissions following Bakery's article. > I want that when a user logs in the aplication, it shows the principal > screen with a dif

Change layout depending on the type of user in OthAuth

2008-01-27 Thread dandreta
Hi!! I have applied Othauth component to define the user groups and their permissions following Bakery's article. I want that when a user logs in the aplication, it shows the principal screen with a different layout depending on the group of the user. Do you know how can I do it? any suggestion or

Re: Why appears this error (Undefined offset)?

2008-01-25 Thread dandreta
On 24 ene, 14:13, dandreta <[EMAIL PROTECTED]> wrote: > Hi! > I have been verifying it and I have a problem with the relations, > concretly with one: > 1 Project - N Persons > N Persons - N Projects > I have two different relations between the same models (Project and

Re: Why appears this error (Undefined offset)?

2008-01-24 Thread dandreta
<[EMAIL PROTECTED]> wrote: > There is a problem in one of your related model relations or relations > of the related models. Check about 'fields' options and maybe > className etc ... > > A way to search would be to remove the relation on this model one > after the ot

Why appears this error (Undefined offset)?

2008-01-23 Thread dandreta
Hi!! I have index function in my controller of the following form: function index() { $this->Proyecto->recursive = 2; $this->set('proyectos', $this->paginate()); } And all of the projects appear correctly in the index view with their fields and for each pr

Re: Error editing a record without foreign key

2008-01-21 Thread dandreta
On 21 ene, 18:04, dandreta <[EMAIL PROTECTED]> wrote: > ? --~--~-~--~~~---~--~~ 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 un

Re: Pass elements from one list to other one in HABTM

2008-01-21 Thread dandreta
On 21 ene, 18:05, dandreta <[EMAIL PROTECTED]> wrote: > Any suggestion please? > > On 19 ene, 14:03, dandreta <[EMAIL PROTECTED]> wrote: > > > Hi! > > I have an HABTM relation between ModelA and ModelB. > > In the add view of A, I have created two lis

Re: Pass elements from one list to other one in HABTM

2008-01-21 Thread dandreta
Any suggestion please? On 19 ene, 14:03, dandreta <[EMAIL PROTECTED]> wrote: > Hi! > I have an HABTM relation between ModelA and ModelB. > In the add view of A, I have created two lists(two multiple selects), > one with all B > elements of the database and other one empty

Re: Error editing a record without foreign key

2008-01-21 Thread dandreta
? --~--~-~--~~~---~--~~ 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, visi

Error editing a record without foreign key

2008-01-19 Thread dandreta
Hi! I have two tables: Projects and Directors related this way in the model: - Director hasMany Project - Project belongsTo Director Adding a new project I have the field Director who is a simple select where I can choose the director between all those that I have in the BD. Creating a new project

Pass elements from one list to other one in HABTM

2008-01-19 Thread dandreta
Hi! I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists(two multiple selects), one with all B elements of the database and other one empty . I pass elements of the first list to the second one with javascript and the second list will contain the B el

Paginate obtained array of another controller

2008-01-19 Thread dandreta
Hi! I have 2 tables: projects and persons. In my ProjectsController I have a function that shows in the view a list of all the persons of the database. For it I have this: $this -> set ('persons', $this -> requestAction ('/persons/getpersons ')); And in PersonsController: Function getpersons ()

Paginate obtained array of another controller

2008-01-08 Thread dandreta
Hi! I have 2 tables: projects and persons. In my ProjectsController I have a function that shows in the view a list of all the persons of the database. For it I have this: $this -> set ('persons', $this -> requestAction ('/persons/getpersons ')); And in PersonsController: Function getpersons ()

Login of different types of users

2007-12-20 Thread dandreta
Hi!! I am searching and reading enough things on the users' access and permissions (OthAuth, ACL ...). The question is that I want to do the access to my application depending on the type of user. I have 3 types of users:manager, client, supplier and in the database 3 tables with their different i

Re: Obtain all elements of multiple select

2007-12-10 Thread dandreta
Thanks for your response. I have proved it but it does not work. Anyone has made something similar what I want to do? On 10 dic, 10:21, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > On Dec 9, 4:45 pm, dandreta <[EMAIL PROTECTED]> wrote: > > > Thanks

Re: Obtain all elements of multiple select

2007-12-10 Thread dandreta
On 6 dic, 19:19, dandreta <[EMAIL PROTECTED]> wrote: > I have an HABTM relation between ModelA and ModelB. > In the add view of A, I have created two lists, one with all B > elements of the database and other one empty . I pass elements of the > first list to the second one w

Re: Obtain all elements of multiple select

2007-12-09 Thread dandreta
Thanks for your response. But I dont understand how I can do this. Can you explain me, please? Regards On 7 dic, 12:16, Serge Rodovnichenko <[EMAIL PROTECTED]> wrote: > Try to set/reset a 'selected' attribute of OPTION when moving options > between two lists. > >

Obtain all elements of multiple select

2007-12-06 Thread dandreta
I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists, one with all B elements of the database and other one empty . I pass elements of the first list to the second one with javascript and the second list will contain the B elements that will be relate

Re: Dynamic table

2007-12-04 Thread dandreta
Nobody knows any link or example how I can do it? --~--~-~--~~~---~--~~ 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

Problem adding new record with Id

2007-12-03 Thread dandreta
Hi! I have a problem and I cant solve it. I hope you can help me. I have a table called Records with fields Id and Name. I create model, controller and views with bake. In the model I validate that Id and name do not be empty and in the controller I have add function: function add() {

Search box

2007-11-27 Thread dandreta
Hi! I am trying to create a search box for my application, but I have many doubts. Being a common thing, do you know any link or site where it explains this topic and how to do it? Thanks and regards --~--~-~--~~~---~--~~ You received this message because you are su

Re: Dynamic table

2007-11-27 Thread dandreta
On 26 nov, 19:22, rtconner <[EMAIL PROTECTED]> wrote: > If it was me, I'd have a Model with no table attatched and then add a > function to create the tables in it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Dynamic table

2007-11-26 Thread dandreta
I have two models:ModelA and Model B. ModelA hasMany ModelB. In the add view of ModelA, I want to create a table dynamically with a button(AddB) and clicking it, adds a new row with the inputs of the fields of the ModelB. At the end of the view I have a submit button and I want that on clicking it

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-21 Thread dandreta
php-edge/browse_thread/thread/d127... > > cheers > > On Nov 20, 8:20 pm, dandreta <[EMAIL PROTECTED]> wrote: > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-20 Thread dandreta
> --~--~-~--~~~---~--~~ 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, vi

Show records with marked checkbox

2007-11-20 Thread dandreta
I have a view with a list of records, each one with a checkbox to the side. The name of the checkbox is the Id of the record. checkbox('Record]['.$record['Record']['id']);?> Then in my controller I want to do a function that writes the Ids of the records with marked checkboxes. I have this: forea

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-19 Thread dandreta
> Set debug to 2 and try fixing your sql error. which will be the source > of the first error message (this one: Notice (8): Undefined offset: 0 > [CORE/cake/libs/model/datasources/ dbo_source.php, line 882]). > > AD Thanks for your response. I have tried what you have said to me, but in the sql

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-19 Thread dandreta
¿? --~--~-~--~~~---~--~~ 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, visi

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-17 Thread dandreta
Any suggestion? I have been a lot of time trying to solve the problem but I don´t know because the warning happens and I do not find a solution.Please,help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-16 Thread dandreta
I have done it like in the link that I have written up, and the line of the error in the model director.php is: if ( array_key_exists('firstname',$val[$this->name]) && array_key_exists('lastname',$val[$this->name])) --~--~-~--~~~---~--~~ You received this message

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-15 Thread dandreta
Sorry, I work with cake is 1.2. --~--~-~--~~~---~--~~ 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 PR

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-15 Thread dandreta
Hello! I have one table called Projects and another table called Directors in my database: Project belongsTo Director Director hasMany Project Adding a new project, I have a select of directors and I want that they appear with their firstname and lastname and not with their Id. The fields of the t

How to move a record of a table to other one?

2007-11-10 Thread dandreta
Hi! I have one table called products and another table called soldproducts in my database. The table products has these fields:id, name. And the table soldproducts:id, name, date. I have a view in products where there is a product with its name and an input field where I introduce a date. And I wa

Additional field in a relation HABTM

2007-11-09 Thread dandreta
Hi! I have a HABTM relation between products and clients. I create the models and the table clients_products with the fields Id, client_id, product_id and one additional field called priority. I do the index view for products and for each product I write its clients. But I want to write the priori

How delete selected checkboxes?

2007-11-07 Thread dandreta
Hello! I have in my view a list of products, each one with a checkbox to the side and a link (Remove Selected Products) at the end of the page. The question is that I want that on click the link all the marked products will be removed. How I would do my function in the controller in order that it