Re: Problems with components in php4

2006-08-19 Thread RosSoft
The paste is deleted. Repaste it and be sure to check 'save paste' Rodrigo Perez ha escrito: I'm using cake trunk 3363 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: can you restrict the table fields cake recursively retrieves?

2006-08-19 Thread CraZyLeGs
https://trac.cakephp.org/ticket/633 --~--~-~--~~~---~--~~ 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

Re: User Bar Logic

2006-08-19 Thread Simplerules
Nobody? --~--~-~--~~~---~--~~ 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

NEW JOBS POSTED TODAY AS FOLLOWS :

2006-08-19 Thread HOT - JOBS
Hi Dear Members, FOLLOWING R THE NEW JOBSPOSTED THIS WEEK: Job Title Job Posted By IT Recruiter keriosolutions.inc Req-0304 -Microsoft / Citrix System Engineer keriosolutions.inc Req-0285 - SQL / Oracle DBA keriosolutions.inc

Re: Field is apparently a reserved word.

2006-08-19 Thread nate
I created a model called 'Field' with a table called 'fields', and a controller called 'FieldsController' and got no errors querying data. What kind of errors were you getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Cross Application Sesssion

2006-08-19 Thread nate
Mandy, that's because I wasn't on IRC ;-) in app/config/core.php, there is a setting called CAKE_SESSION_SAVE, set that to 'database', and load the SQL from app/config/sql/sessions.sql into your database. Then, if you include the same database in both applications, you should be able to share

Re: Intercepting dispatcher's routes

2006-08-19 Thread nate
If they're static, keep them in webroot/files. Then you can link to them as site.com/files/pdf.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Problem with $hasOne...can somebody tell me what's wrong

2006-08-19 Thread milicic.marko
Here are my tables: DROP TABLE IF EXISTS `countries`; CREATE TABLE `countries` ( `id` int(11) unsigned NOT NULL auto_increment, `name` varchar(255) collate utf8_bin NOT NULL, `iso2` varchar(2) collate utf8_bin NOT NULL, `iso3` varchar(3) collate utf8_bin NOT NULL, PRIMARY KEY (`id`) )

Re: Validation: Futureproof / Accepted Technique?

2006-08-19 Thread Evan
I just posted a new tutorial for an improved advance validation with parameters on the CakePHP wiki. Check it out on this page: http://wiki.cakephp.org/tutorials:advanced_validation:advance_validation_with_parameters:improved_advance_validation_with_parameters

Alternating Row Colors

2006-08-19 Thread c_doug
Can anyone tell me how to alternate row colors in CakePHP? Is it similar to doing it in regular PHP? Ex: $row_color = ($row_count % 2) ? $color1 : $color2; $row_count++; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: output DISTINCT records

2006-08-19 Thread c_doug
Thanks. I wasn't aware of the search link you posted. --~--~-~--~~~---~--~~ 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,

Re: output DISTINCT records

2006-08-19 Thread c_doug
I did search the group previously and found the topic linked from the page you posted. I just haven't been able to get it to translate to what I am doing yet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Advice needed (about forms)

2006-08-19 Thread milicic.marko
First, I must say thank you for developing cakePHP. I used mojavi, zoop and others but cake is the best. Now, I'm new baker. I want to implement simple signup form. I have 2-3 tables upppsss models :) with established relations. For example, Signup form should take and validate all required

Re: Help with form helper

2006-08-19 Thread nate
Right now the best place to check is the API: http://api.cakephp.org/class_form_helper.html Keep in mind, however, that most of the transition will take place in 1.2, which is as-yet undocumented, so you just have to look at the code. Fortunately helper code is pretty straightforward, and

Re: Filtering Data

2006-08-19 Thread [EMAIL PROTECTED]
sam D, really you want to avoid the custom sql (using -query) as much as possible Why? That method seems to work fine. I use query(). Please elaborate. Ralph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Problems with components in php4

2006-08-19 Thread Rodrigo Perez
On 8/19/06, RosSoft [EMAIL PROTECTED] wrote: The paste is deleted. Repaste it and be sure to check 'save paste' Rodrigo Perez ha escrito: Oh, sorry... I repaste and new url is http://cakephp.org/pastes/show/d3968053471ab3fecfa353445fd2e6e1 Thanks

continuous update

2006-08-19 Thread bingo
hi, The question I have might be simple, but I am not sure how to do it. Personally, I don't like pagination and would like to see all the search results on one page. But then the problem is, it takes too much time to retrieve all the relevant records from the database and render them on a

Re: continuous update

2006-08-19 Thread RosSoft
A live grid control: http://openrico.org/rico/livegrid.page --~--~-~--~~~---~--~~ 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

Re: Re: Filtering Data

2006-08-19 Thread Samuel DeVore
Oh I use it too, I just try to avoid it because I don't want to create too many dependancies to a particular DB engine, it is far too easy for me to put mysql specific syntax in there then I loose the portability that a database abstraction layer buys me. Now if I was very instinctive about

Re: Alternating Row Colors

2006-08-19 Thread John Zimmerman [gmail]
I have been doing something something similar in my views.?php foreach ($items as $key = $row): ?tr?php if ( $key%2 ) { echo ' class=altRow'; }? td nowrap?php echo $row['Model']['field'] ?/td/tr?php endforeach?I have the altRow class defined in my style sheet. On 8/19/06, c_doug [EMAIL PROTECTED]

Re: continuous update

2006-08-19 Thread bingo
Hi Ros Soft, Thanks. This is great and does exactly what I need. I will give it a try Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

multiple hasAndBelongsToMany ajax create/add form...

2006-08-19 Thread iceaxe
OK, I've managed to confuse myself. Here's the model: Articles Posts Tags A tag has a many to many relationship with both articles and posts, so a single tag object has a list of articles and a list of posts. (nice for searching by tags) An article or a post has a list of tags. That works

Re: Multiple select and relationship many-to-many

2006-08-19 Thread iceaxe
zonathen wrote: [...] doesn't the many-to-many table name need to be in alphabetic order as such: alphafirst_alphasecond, or areas_events. That's correct. Also, be aware that if you have an underscore (_) in a table name the underscore comes AFTER alphabetic letters. So: images

Re: User Bar Logic

2006-08-19 Thread [EMAIL PROTECTED]
I understand why you would want to write it in the app_controler (so that all controllers might inherit from this). The problem is, there doesn't seem to be a way to declare variables outside of functions. And, as you probably are finding out, when a application controller inherits from the