Re: [OFF] Lista Estados e Cidades

2007-06-19 Thread Michael Mafort
segue o link para download, lembrando que quem for baixar avisar para nao travar o download do outro, so tenho 32KB para upload. http://mafort.no-ip.org:8080/correio.nrg vou deixar ai por 2 dias. Abraços Em 19/06/07, RoadHouse Blues [EMAIL PROTECTED] escreveu: isso é realmente MUITO útil!

Re: updating records without forms

2007-06-19 Thread BoSc
Thanks, works like a charm. The problem was I didn't know how to create a reference to a certain row, so this line helped me crack it: $this-Country-id = $item['Country']['id']; Thanks. On Jun 18, 7:23 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jun 18, 2007, at 11:15 AM,

Re: cakex html inside controller

2007-06-19 Thread francky06l
you can do this using ajax and some javascript (have a look to the CJS from Rosssoft) On Jun 19, 6:13 am, pete [EMAIL PROTECTED] wrote: hm..you are right, the thing is i want to have the add-form on the same page as where i show the data. is there a way to assign('add') the view.html code?

Re: problem with switching layouts

2007-06-19 Thread sushil
Thanks for pointing out my error. It works now. Thanks again. On Jun 18, 6:01 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/18/07, sushil [EMAIL PROTECTED] wrote: Hi All, I have again come across a problem. I have static page (rendered by pages controller) - loginbox and I have a

Re: Plugin questions

2007-06-19 Thread AD7six
On Jun 19, 12:39 am, Geoff Ford [EMAIL PROTECTED] wrote: Thanks AD, I'll be integrating 1897 and 2526 into my install. It lloks like they will solve my problems. I will still need to look into the behaviours issue though I think. It would be really great if these would work as expected. I

Re: More about Behaviors ?

2007-06-19 Thread AD7six
On Jun 19, 6:26 am, Max [EMAIL PROTECTED] wrote: Hi All, I've been trying to find more about behaviors to start with them. But I dont seem to find much information about them anywhere on the CakePHP sites/Internet.. However, There are a lot of behaviors code snippets available, but what

Re: More about Behaviors ?

2007-06-19 Thread danfreak
Hey Max, well behaviours are great in terms of code reusability. They stand to modules as components stand to controllers. Just a small example. If you checked out Cake 1.2 you might have noticed the Tree behaviour. The Tree behaviour helps to handle situations that deel with commplex

One to many forms with ajax

2007-06-19 Thread Jeremy David Pointer
It's always boggled me why there are lots of many to many relationship examples but hardly any one to many examples. My major stumbling block here is how to set up the form and controller to save the detail lines when 'Save' is clicked and how to manage the detail table when Add/Del are

Re: Recursion for my own custom query?

2007-06-19 Thread AD7six
On Jun 18, 3:03 pm, Joshua Benner [EMAIL PROTECTED] wrote: Looks good. I think I would use Cake's magic before writing my own function like that, Cake doesn't change the rules as far as DBs go. If creating an extra table model to avoid writing a GROUP BY statement with some date functions

Re: One to many forms with ajax

2007-06-19 Thread Jeremy David Pointer
In case it makes a difference I'm using CakePHP 1.2 Jeremy David Pointer wrote: It's always boggled me why there are lots of many to many relationship examples but hardly any one to many examples. My major stumbling block here is how to set up the form and controller to save the detail

Re: cakex html inside controller

2007-06-19 Thread jitka (poLK)
Well, not everything what is possible is automatically right. My propose is NOT keep any html content in controller - it is work for view. You're imho looking for ?php echo $cakex-link('Add new item', '/phases/formAdd/', array('update' = 'add')); ? BTW: xajax is a great library, but it is

PHPTAL

2007-06-19 Thread [EMAIL PROTECTED]
HI I would try to use PHPTAL with cake. I have followed all the indications in : http://bakery.cakephp.org/articles/view/using-phptal-for-templates- phptalview-class But when I try the link I get this errror: Warning: require_once(PHPTAL/Source.php) [function.require-once]: failed to open

Re: checking if a controller exists

2007-06-19 Thread phpjoy
thanks a lot, that pretty much sums it up.. i see the right way is to loadController. i might send a suggestion about that.. there should be existsController or something like that :) On Jun 18, 4:56 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: function reachable($url) { $params =

Re: PHPTAL

2007-06-19 Thread [EMAIL PROTECTED]
I have resolved the previuos error But now I get this error: From C:\cake\app\views\posts\index.zpt around line 0 exception 'PHPTAL_Exception' with message 'Unable to find path myarray' in C:\cake\app\vendors\PHPTAL-1.1.8\PHPTAL\Context.php:195 Is there someone that use PHPTAL with cakephp and

Re: checking if a controller exists

2007-06-19 Thread kabturek
yo can always try class_exists() ;) http://php.net/class_exists greets, On Jun 19, 11:22 am, phpjoy [EMAIL PROTECTED] wrote: thanks a lot, that pretty much sums it up.. i see the right way is to loadController. i might send a suggestion about that.. there should be existsController or

getting 2 rows from a table with 2 foreign keys

2007-06-19 Thread phpjoy
hey, i have a table with 2 fields in it: muser and cuser. cuser is the user that created the object, and muser is the user that modified the object in the last time. both should be loaded for the same object, for example: $object['mAdminUser']['username'] $object['cAdminUser']['username'] or

Re: getting 2 rows from a table with 2 foreign keys

2007-06-19 Thread Grant Cox
Are you asking how you can have multiple assocations to the same foreign model? In that case just use unique association keys, ie: var $belongsTo = array( 'ModifiedUser' = array('className' = 'User', 'foreignKey'='muser'), 'CreatedUser' = array('className' = 'User',

Re: Please help with the structure of my code

2007-06-19 Thread dmorris
Thanks Grant. That looks like a good way of doing things. I'll have a play doing it that way, and see what I come up with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

(Good) way of pulling data into view?

2007-06-19 Thread simon
Hello, I have a scenario where I'm not sure how to apply Cake conventions. I'm building a reporting app where the most complex part is the report templates (views). My main question is: if I really, *really* want to make a function call to a controller from a view (even though it is against the

Re: (Good) way of pulling data into view?

2007-06-19 Thread AD7six
On Jun 19, 12:16 pm, simon [EMAIL PROTECTED] wrote: snip Or should I be going about this in some other way? Why isn't all of that retrieval logic in the controller? I.e. you generate all the data you want in your controller, and you simply loop on your retrieved data in the vew. You will

Re: ordering items

2007-06-19 Thread danfreak
Hey pluriels, well, I think that it would be fair to let the original bakers of the above code write a tutorial on the Bakery. I'll ask them about it. About Symfony, CAkePHP and other frameworks: I think that every framework has its pros and cons. the trick is to use the right framework for the

Re: (Good) way of pulling data into view?

2007-06-19 Thread simon
Why isn't all of that retrieval logic in the controller? I.e. you generate all the data you want in your controller, and you simply loop on your retrieved data in the vew. Ah, see I'm totally with you on this... I have a quite specific problem though: each type of template needs a specific

Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
Hi, I'm using cake 1.2.0.5146alpha. When I create a form using the $from-create method The from ID I get is always the same ID. For my Users controller I do: echo $form-create('User',array('action'='/ resetPassword','type'='get')); and get the id of 'UserAddForm'. I have dug in the code and

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
Actually now that I rechecked this a problem for me. It seems that submitting the second form sends the data in the first form and ignores the fields in the second form. Am I doing something wrong? On Jun 19, 2:11 pm, Ita [EMAIL PROTECTED] wrote: Hi, I'm using cake 1.2.0.5146alpha. When I

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
Are you ending each form properly? On 6/19/07, Ita [EMAIL PROTECTED] wrote: Actually now that I rechecked this a problem for me. It seems that submitting the second form sends the data in the first form and ignores the fields in the second form. Am I doing something wrong? On Jun 19,

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
?php echo $form-end(); ? On 6/19/07, Jonathan Langevin [EMAIL PROTECTED] wrote: Are you ending each form properly? On 6/19/07, Ita [EMAIL PROTECTED] wrote: Actually now that I rechecked this a problem for me. It seems that submitting the second form sends the data in the first form

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
To end the first form I use $ajax-submit() and then /form since I noticed ajax-submit doesn't add a form end the second form is ended using $form-submit('XXX'); which adds a / form On Jun 19, 2:21 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: Are you ending each form properly? On 6/19/07,

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
My Bad. I used $from-submit when I should have used $form-end ok now each form send the right data but still both of them have the same ID. Even if this doesn't cause any problem should they have different ID's just so things will be clearer? On Jun 19, 2:24 pm, Ita [EMAIL PROTECTED] wrote:

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
it does seem that they should have different ids. Hopefully someone more experienced with Cake will reply soon :-D On 6/19/07, Ita [EMAIL PROTECTED] wrote: My Bad. I used $from-submit when I should have used $form-end ok now each form send the right data but still both of them have the

Re: getting 2 rows from a table with 2 foreign keys

2007-06-19 Thread phpjoy
yep, that's exactly what i was asking. thanks a lot! so easy that i missed that. :-) On Jun 19, 12:55 pm, Grant Cox [EMAIL PROTECTED] wrote: Are you asking how you can have multiple assocations to the same foreign model? In that case just use unique association keys, ie: var $belongsTo =

Re: upload behavior

2007-06-19 Thread dardosordi
I'm using SuPHP ( libapache2-mod-suphp in debian/ubuntu ) for the permissions. On Jun 15, 8:10 am, Tane Piper [EMAIL PROTECTED] wrote: Hmm - Now I get the same thing, but the images are readable from my website, it's only when I view them in Gnome that I can't see the uploaded image, but can

Smarty and CakePHP

2007-06-19 Thread [EMAIL PROTECTED]
Hi I would use smarty in CakePHP I find this tutorial http://projects.simpleteq.com/CakePHP/ smarty.html but I can't to download the smarty.zip Is there anyone that has this file and can send me a copy? Many thanks Marco --~--~-~--~~~---~--~~ You received this

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Chris Hartjes
On 6/19/07, Ita [EMAIL PROTECTED] wrote: The problem is that when I have 2 forms in the same page they both get the same ID. And when I submit one form via get (in my example) I also get an empty field from another from. Perhaps you can clarify this for me: why do you have two forms on

Syntax for having a JS Confirm message called via $html-submit('Delete')

2007-06-19 Thread joe
Hi, I notice the $html-link has an optional parameter for Confirmation (the rest of the confirm control passed via htmlAttributesArr): $html-link( $title, $url, $htmlAttributesArr, $confirmMessageBool, $escapeTitleBool, $returnBool); Is there a similar way of doing this with a $html-submit()

How process data from input file type in cake php?

2007-06-19 Thread wahyu setianto
I have some problem using cakephp while posting input file type, how get the filename store to database and data file store to directory? i have not answer yet :( example : I have one table : name table_galleries with field id, title, description, and picture i want to the data file store to

Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Mark aka drecaise
I'm trying to add a database config and use it after init. It's for an application that numerous clients will use. Each with it's own database. During login a master database is queried for a users corresponding company database and the application should switch to that database. Is this

Re: cakex html inside controller

2007-06-19 Thread pete
thanks for all your hints. as i really like xajax i have already installed Cakex. the reason why i create this html-code inside the controller is, that i have a Navigation with Add User which is available on each page. As soon as i click on it, i render the html code inside div id=addUser/div -

RequiresPost method

2007-06-19 Thread Gaurav
Hi, I am new to Cake and to PHP as well. I haev a question about reuiresPost() method which supposedly takes list of actions which can only be triggered by a POST request. The way Cake bakes the code it uses same edit and add methods to do 2 things: 1.) present form to user to add or edit (if

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Iulian Ilea
Are you sure /form appears in your HTML source? From what are you saying it seems your first form is not closed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
The why is not related to the fact that 2 forms should not have the same ID but I'll clarify. I'm creating a web site. On the top right corner there will be a login box. This login box allows loin via ajax from and always sits the no matter what the website displays. When the user logs in it

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Chris Hartjes
On 6/19/07, Mark aka drecaise [EMAIL PROTECTED] wrote: I'm trying to add a database config and use it after init. It's for an application that numerous clients will use. Each with it's own database. During login a master database is queried for a users corresponding company database and the

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
Iulian - as I wrote a few posts ago: My Bad. I used $from-submit when I should have used $form-end ok now each form send the right data but still both of them have the same ID. Even if this doesn't cause any problem should they have different ID's just so things will be clearer? So the missing

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Chris Hartjes
On 6/19/07, Ita [EMAIL PROTECTED] wrote: - Back to 2 forms with he same ID? Well, the problem is that the magic methods aren't smart enough to know you are having two forms on the same page pointing to the same controller. What I have done in the past is use a separate

Re: How process data from input file type in cake php?

2007-06-19 Thread Chris Hartjes
On 6/19/07, wahyu setianto [EMAIL PROTECTED] wrote: I have some problem using cakephp while posting input file type, how get the filename store to database and data file store to directory? i have not answer yet :( Do you have debug set to 1 or greater in config/core.php. You might be seeing

Cake is not working correctly on sourceforge.net

2007-06-19 Thread chanh.ong
I tried to set up cake on my sourceforge.net project but having lot of issues but don't know exactly what they are until today! I track down the problem that I am having on sf.net but need some cake expert to tell me what to do to get around this I created a static page hello.thtml in pages

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita
I think that giving an id in the create and end is not a bad idea. I'll file a request... Thanks On Jun 19, 3:59 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/19/07, Ita [EMAIL PROTECTED] wrote: - Back to 2 forms with he same ID? Well, the problem is that the magic

Re: upload behavior

2007-06-19 Thread luke BAKING barker
thanks tane, yeah, I thought this might work when I switched to a lvie deployment, so I tested it on the remote server and it just worked. I think it is to do with move_uploaded_file PHP command. thanks again, luke On Jun 15, 12:10 pm, Tane Piper [EMAIL PROTECTED] wrote: Hmm - Now I get the

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi, everyone! I've been contacted by Mr. Woodworth, President for Cake Software Foundation. I seems I misused Cake's Intellectual Property. I play by the rules, and therefore, I had to shutdown the free-to-comment version of the manual. I managed to talk to Mr. Woodworth and we are on talks to

help with association and table structure for a 3rd data set

2007-06-19 Thread luke BAKING barker
Hi I receive from a 3rd party, a CSV of data with a Unique field code, which is a varchar of 5 characters or so, e.g. TR34 or XE288 I need to turn this into a table that will work with Cake well, so lets call it codes and then I am not sure what to do about setting a primary key? I am thinking

Re: cakex html inside controller

2007-06-19 Thread jitka (poLK)
i want to have only ONE code logic for addUser, thats why i use innerHTML to add the html code within the addUser-div only if its necessary. Do you understand what does this code? ?php echo $cakex-link('Add new item', '/phases/formAdd/', array('update' = 'add')); ? It renders link, which will

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
I agree, hopefully your request gets applied :-) On 6/19/07, Ita [EMAIL PROTECTED] wrote: I think that giving an id in the create and end is not a bad idea. I'll file a request... Thanks On Jun 19, 3:59 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/19/07, Ita [EMAIL PROTECTED] wrote:

Re: More about Behaviors ?

2007-06-19 Thread Jonathan Langevin
dan, thanks for this post, it helped me out alot with the Tree behavior (struggled with that code for 2 days, lol) On 6/19/07, danfreak [EMAIL PROTECTED] wrote: Hey Max, well behaviours are great in terms of code reusability. They stand to modules as components stand to controllers. Just

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread rtconner
Hey Mark, So I'm pretty sure some of the functions I used are specific to 1.2. But you can try. I'll give you a basic overview of what I did. I made a componant, and inside the componant in the initialize method.. I do this: (all the connection data is stored in a Client Model, that I load with

Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
I'm attempting to use the Tree behavior (patched with AD7six's diff that he posted in trac 2 days ago). I've added parent_id, lft, rght to my table, modified the Model to enable the Tree behavior. Now, if I create a new item in the table (starting from scratch), it adds with id = 1, parent_id =

Re: Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
btw, the need for parent_id surprises me, as the nested set model is supposed to function with only requiring lft,rght On 6/19/07, Jonathan Langevin [EMAIL PROTECTED] wrote: I'm attempting to use the Tree behavior (patched with AD7six's diff that he posted in trac 2 days ago). I've added

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread nate
Providing a DOM ID in the create() *and* end() method. um. why Can someone please enlighten me as to where that fits into the core philosophy of Don't Repeat Yourself? FormHelper::create() already allows you to pass an ID in the $options array parameter. On Jun 19, 10:05 am, Ita

HABTM gives me problems with conditional queries.

2007-06-19 Thread daxhuiberts
Hello, I have a HABTM association between 'movies' and 'genres'. All works fine 'n stuff. Now I want a list of movies by a specific genre, on which I do $this- Genre-find(name = '.$name.'). So far so good. But since there will be thousands, possibly a couple tenthousand movies in the database, I

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 11:11 AM, daxhuiberts wrote: Hello, I have a HABTM association between 'movies' and 'genres'. All works fine 'n stuff. Now I want a list of movies by a specific genre, on which I do $this- Genre-find(name = '.$name.'). So far so good. But since there will be

Re: Tree behavior - unexpected result

2007-06-19 Thread AD7six
On Jun 19, 5:52 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: snip - What is puzzling me, is the fact that an entry is made with id = 0. Any subsequent entries, whether a child entry or not, has no weird behavior. Only the first child does this. Any ideas? Please either

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread daxhuiberts
On Jun 19, 7:20 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jun 19, 2007, at 11:11 AM, daxhuiberts wrote: Hello, I have a HABTM association between 'movies' and 'genres'. All works fine 'n stuff. Now I want a list of movies by a specific genre, on which I do

Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Hi, The project I've been working on in Cake has been working for weeks, even months. Yet when I opened up my laptop this morning and tried to open up my project, none of the normal links work (links to methods, etc.)! My webroot folder cannot seem to be found either, so all of the CSS is

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Jonathan, I am not sure... But I think the CakePHP Manual and CakePHP logo are intellectual property of Cake Software Foundation, which is the back- company of CakePHP. CakePHP is MIT Licensed, however that's not the case of their documentation and logo... But that's OK, mr. Woodworth told

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Chris Hartjes
On 6/19/07, andy [EMAIL PROTECTED] wrote: Hi, The project I've been working on in Cake has been working for weeks, even months. Yet when I opened up my laptop this morning and tried to open up my project, none of the normal links work (links to methods, etc.)! My webroot folder cannot

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, Dérico Filho [EMAIL PROTECTED] wrote: Hi Jonathan, I am not sure... But I think the CakePHP Manual and CakePHP logo are intellectual property of Cake Software Foundation, which is the back- company of CakePHP. CakePHP is MIT Licensed, however that's not the case of their

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Yeah, I know that nothing should stop working if nothing has been done to it. So, it might be the localhost webserver that has caused some sort of problem. That's what I thought, too, and I have checked my httpd.conf and restarted the web server a few times to see if that would fix the problem.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
Ah, I can understand logo, surprised about the documentation itself though. So maybe there should be a 3rd-party documentation effort, GPL licensed, so that other sites can host the documentation, as many do with php.net's docs On 6/19/07, Dérico Filho [EMAIL PROTECTED] wrote: Hi Jonathan,

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Chris Hartjes
On 6/19/07, andy [EMAIL PROTECTED] wrote: That's what I thought, too, and I have checked my httpd.conf and restarted the web server a few times to see if that would fix the problem. But Cake still doesn't run like it should. I checked another PHP/MySQL/Apache-based script program on the

Cake dependency on mod_rewrite?

2007-06-19 Thread chanh.ong
While it is nice that Cake allow to not use .htaccess and mod_rewrite with the change in the core.php define ('BASE_URL', env('SCRIPT_NAME')); But I found out all code the generated by Cake are counting on .htaccess and mod_rewrite to be there otherwise Cake will not work correctly! To

Re: Tree behavior - unexpected result

2007-06-19 Thread Jonathan Langevin
Okay, i'll post on the ticket then, though likely my issue is likely due to programmer error on my end. On 6/19/07, AD7six [EMAIL PROTECTED] wrote: On Jun 19, 5:52 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: snip - What is puzzling me, is the fact that an entry is

Re: HABTM gives me problems with conditional queries.

2007-06-19 Thread Daniel Dias
Hi Dax. Or else, could you give me an example of how such a dynamic bindModel() will look like? Thake a look at this article http://cakebaker.42dh.com/2006/02/22/new-feature-bindmodelunbindmodel/ -- Daniel Dias --~--~-~--~~~---~--~~ You received this

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
No, I haven't touched the core Cake files since I set this project up. I haven't touched the config files for a while as well... which is why I don't understand this problem. On Jun 19, 10:59 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/19/07, andy [EMAIL PROTECTED] wrote: That's what I

Re: Cake dependency on mod_rewrite?

2007-06-19 Thread chanh.ong
I found out the $html helper does return the right url but if I want to use image rather then text in the url then it does not work! So I did a little hack and it works for just this! $img=$html-image('edit.gif',array('title'='Edit')); $url=$html-link('','/records/edit/' .

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Jonathan Langevin
Do you have access to your HTTPD error log? On 6/19/07, andy [EMAIL PROTECTED] wrote: No, I haven't touched the core Cake files since I set this project up. I haven't touched the config files for a while as well... which is why I don't understand this problem. On Jun 19, 10:59 am, Chris

Re: Cake 1.2 - Duplicate form id

2007-06-19 Thread Jonathan Langevin
thanks for that catch nate On 6/19/07, Ita [EMAIL PROTECTED] wrote: OK - you are right. It just seems that no one picked up on this feature. Nothing to be done then :) On Jun 19, 7:42 pm, nate [EMAIL PROTECTED] wrote: Providing a DOM ID in the create() *and* end() method. um.

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 11:58 AM, Jonathan Langevin wrote: Ah, I can understand logo, surprised about the documentation itself though. So maybe there should be a 3rd-party documentation effort, GPL licensed, so that other sites can host the documentation, as many do with php.net's docs

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson
On Jun 19, 2007, at 11:43 AM, Dérico Filho wrote: Hi Jonathan, I am not sure... But I think the CakePHP Manual and CakePHP logo are intellectual property of Cake Software Foundation, which is the back- company of CakePHP. CakePHP is MIT Licensed, however that's not the case of their

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I agree a central location would be best, but to also avoid any legal issues, is why I suggested a 3rd party GPL effort On 6/19/07, John David Anderson [EMAIL PROTECTED] wrote: On Jun 19, 2007, at 11:43 AM, Dérico Filho wrote: Hi Jonathan, I am not sure... But I think the CakePHP

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Okay, now I know what happened-- I was copying a previously created .htaccess file into the main cake directory. What I didn't know is that there is already a .htaccess file in that folder (as well as the webroot folder, apparently,) and so... I accidentally overwrote the old .htaccess. Stupid

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
Sorry, somehow my response to this has been lost. Anyway, earlier this morning, I replied to you guys (or tried to,) that I finally realized what I had messed up in the cake project. I accidentally overwrote one of the main .htaccess files because I didn't realize there was already one in the

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, Jonathan Langevin [EMAIL PROTECTED] wrote: I agree a central location would be best, but to also avoid any legal issues, is why I suggested a 3rd party GPL effort So you seem to think that the CakePHP developers themselves (disclaimer: I am one of them) aren't capable of providing

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I'm not saying the developers aren't capable of providing documentation. Docs for 1.1 are probably the nicest I've seen (although since the group convinced me to try 1.2, I've become very frustrated with 1.2's lack of docs). my comment wasn't intended to put down anyone, my thinking is to keep

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread Jonathan Langevin
both of your responses showed up for me ;-) maybe set your .htaccess to be read only, to avoid an issue like that? that's happened many times in the past for me, i hate it :-) that's why now I keep all my code in SVN, and just do a checkout to the website when it's ready, helps me avoid

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 1:24 PM, Jonathan Langevin wrote: I agree a central location would be best, but to also avoid any legal issues, is why I suggested a 3rd party GPL effort How many third-party efforts would you suggest? :) I still don't see how diluting the effort in many parallel

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Jonathan Langevin
I'm not suggesting multiple efforts, maybe 1 effort that is supported by cake, with no infringement :-) On 6/19/07, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jun 19, 2007, at 1:24 PM, Jonathan Langevin wrote: I agree a central location would be best, but to also avoid any

Re: More about Behaviors ?

2007-06-19 Thread Max
Thanks a lot for explanation, Ad and Dan. I guess it will be interesting to work more with them :) Max On Jun 19, 12:00 pm, AD7six [EMAIL PROTECTED] wrote: On Jun 19, 6:26 am, Max [EMAIL PROTECTED] wrote: Hi All, I've been trying to find more about behaviors to start with them. But I

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Chris! I just wanted to be polite, not posh. :-) Well, he's the president... I was affraid of being uncivil towards him. :-) Uldérico On Jun 19, 2:52 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/19/07, Dérico Filho [EMAIL PROTECTED] wrote: Hi Jonathan, I am not sure... But I

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Anderson, That's why I posted before: I plan to talk to CakePHP core team in order to offer the tool I made for commenting to be hosted on manual.cakephp.org... If they refuse the offer, surely I'll make it available on some sort of mirroring system... Thus it would be hosted either on

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Chris, I think the point here is not the ability of Cake Core Team providing documentation or not. You guys are excellent and have been doing a great job. The point is: Why can't I deal with the documentation on the same terms I do with the software? Officially the MIT License allows me to

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi John, I don't see a matter of diluting the energy among several projects... But people that does not feel comfortable with restrictive licences (or restrictive behaviour of companies that hold their particular licences, which is my case) might want help only the free initiatives. Perhaps it

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Tane Piper
See http://jquery.com/plugins/ This was a team effort from people outside the core team, that has been brought under the official site. It sits on top of a customized Drupal install, and provides an excellent resource for plugins, not just downloading but commenting, examples and scores. I'm

Re: Commented Version of CakePHP Manual

2007-06-19 Thread rtconner
My only commnents: I wish we had a Wiki. --~--~-~--~~~---~--~~ 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: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
Hi Tane, I've opened the link... Heed your link is almost exactly what Bakery and Cakeforge nowadays already do. But I understood the point, a outside effort that would meet the project documentation needs. I do not think it's the CakePHP case... CakePHP has active effort on documentation...

My own global function

2007-06-19 Thread chanh.ong
If I have a set of commonly use functions want to make it available like Cake global functions what is the most acceptable way to tag along my global function and still ease of doing Cake upgrade without needing to add my global function in each time. I don't want to hack basics.php to add my

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Dérico Filho
I wonder, why Wiki was replaced by Bakery? On Jun 19, 5:52 pm, rtconner [EMAIL PROTECTED] wrote: My only commnents: I wish we had a Wiki. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Chris Hartjes
On 6/19/07, rtconner [EMAIL PROTECTED] wrote: My only commnents: I wish we had a Wiki. Are you volunteering to maintain it? My impression was that last time CakePHP had a wiki that it was terrible and didn't contribute anything. Maintaining a wiki is a critically important job. -- Chris

Re: Commented Version of CakePHP Manual

2007-06-19 Thread John David Anderson (_psychic_)
On Jun 19, 2007, at 1:42 PM, Jonathan Langevin wrote: I'm not saying the developers aren't capable of providing documentation. Docs for 1.1 are probably the nicest I've seen (although since the group convinced me to try 1.2, I've become very frustrated with 1.2 's lack of docs). my

Re: Commented Version of CakePHP Manual

2007-06-19 Thread Tane Piper
I think you'll agree Chris that the CakePHP community has grown a lot recently, maybe there would be more people willing to take it on. There are certainly quite a few regulars on the IRC channel and here in the group. I for one would volunteer some time. On 6/19/07, Chris Hartjes [EMAIL

Re: My own global function

2007-06-19 Thread Tane Piper
If it is a set of classes, you can put them in your vendors directory, within your application. You can then call them like this: vendor('my_class'); $myClass = new MyClass; If it just a bunch of functions you have, you can create a component with them:

Vendors.php and javascript folder

2007-06-19 Thread mdcatc
I'm noticing that the vendors.php file refers to ..\..\vendors \javascript\, however the folder doesn't exist or is still named vendors\js\ in the cake templates. Is this intentional if I want to use the vendors.php structure do I need to add a javascript folder to vendors and then add my .js

Re: Cake's Mod Rewrite Engine (whatever it is called) has stopped working...!?

2007-06-19 Thread andy
ah, okay, sometimes the emails just don't seem to have posted (@_@;) thanks for the tip, Jonathan! Yeah, I should really be keeping this in some type of SVN or CVS or something someday... andy On Jun 19, 12:44 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: both of your responses showed up

  1   2   >