live preview textile rendering?

2006-05-06 Thread Jeroen Janssen
Hi, Is there a tutorial that shows howto do something like a live preview of a textile rendering. I would like to have something similar that the typo (rails blog) does when entering a new article. Basicly I think it works like the following (but I have no idea yet how to do this in CakePHP):

get database configuration

2006-05-06 Thread cwsTrummer
hello i want to yous some PEAR classes with cake. i integrate the pear class with a component. in the componenti construct the class but i need the database settings because i have to inform the pear class about the database settings. now i have 2 database configurations: one in the database.php

Re: get database configuration

2006-05-06 Thread AD7six
Hi cwsTrummer, Here's some code to generate the DSN so that you don't need to hardcode the Db settings in the component: $this-db = ConnectionManager::getDataSource('default'); $config = $this-db-config; $dsn =

Re: LDAP AppModel?

2006-05-06 Thread hydra12
I've used adLDAP (http://adldap.sourceforge.net/) with cake. It's designed to work with Active Directory, so I don't know if it would work for you or not, but it's definitely worth checking out. Just put it in the vendors folder and instantiate it in your controller.

Re: Extending the blog tutorial to include login?

2006-05-06 Thread AD7six
Hi All, The source code for http://www.noswad.me.uk/demos/chat/ now includes a component used for authentification (which simply makes use of the Pear:Auth package), it may be useful in considering how to use simple authentification. The chat doesn't restrict anonymous users, but could easily

Re: Something like RJS

2006-05-06 Thread RosSoft
I'm starting a component http://rossoft.wordpress.com/2006/05/06/javascript-easy-cajax-component-alpha-version/ Need help with javascript object proxying --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: live preview textile rendering?

2006-05-06 Thread Samuel DeVore
Probably what you need is to add a an ajax-observeField call in the thtml to watch the field for changes and use that to call an action that generates a preview and places the result of the ajax call in the div. On 5/6/06, Jeroen Janssen [EMAIL PROTECTED] wrote: Hi,Is there a tutorial that shows

invalidate not working

2006-05-06 Thread zis
Hi all, I am having a problem with the invalidate function. I am invalidating a field before saving but the form is still saving. Here's the relevant code. I also checked the content of $this-Person before saving and invalidate did make an entry in it. Any ideas? $duplicate =

Re: Cake and Plesk or other Managed Hosting software

2006-05-06 Thread calzone
Thinking about this further, I think what I'm trying to do may be possible if I could rename /app/webroot. Anyone know if this can be done? In this way: cake root -- vhosts app -- domainname.com webroot -- httpdocs Then all of plesk's files and folders could continue to live inside

Re: observeForm

2006-05-06 Thread Jeroen Janssen
Since this bug was not reported/fixed yet, I took the liberty of submitting a bug myself. https://trac.cakephp.org/ticket/767 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: live preview textile rendering?

2006-05-06 Thread Jeroen Janssen
Hi, thanks for the information... Since there are a couple fields that I'm interested I decided to try observeForm, but hit a small bug in the ajax helper. Luckily, the solution was already present on this mailinglist. Unluckily, the bug was not reported/fixed in CakePHP yet.

Re: get database configuration

2006-05-06 Thread cwsTrummer
THANK you very much :) --~--~-~--~~~---~--~~ 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]

How would I make a site with modules?

2006-05-06 Thread [EMAIL PROTECTED]
I am very new to MVC and CakePHP and was wondering what the best way is to create a site with modules. I am talking about modules like zymic.com's a poll, affiliates, whatever. How do I include them on every page while still including new content in the content box? Is it better to use seperate

Re: Something like RJS

2006-05-06 Thread nate
Contrary to popular belief, unless you're JavaScript-phobic, RJS is not that big a deal. Why anyone would want to write client-side code on the server is beyond me. Prototype and script.aculo.us have already made JavaScript coding as simple as it needs to be. What I *can* see the value of is a

Re: invalidate not working

2006-05-06 Thread nate
Model::save( ) resets the validations array before executing. If you want to do custom model validations, either use a callback inside the model, or call validates( ) (i.e. $this-Person-validates( )) before calling save( ). --~--~-~--~~~---~--~~ You received

Re: live preview textile rendering?

2006-05-06 Thread nate
This bug has been fixed in the latest SVN version of the code. It will be re-released shortly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: change database on the execution

2006-05-06 Thread nate
By using the model variable $useDbConfig, it is also possible to use different models with different databases, by setting up multiple connection settings variables in config/database.php. The method in the thread posted above can now be done as follows: $db =

Re: Cake and Plesk or other Managed Hosting software

2006-05-06 Thread nate
Using the .htaccess files packaged with Cake, you can simply drop your app into any subdirectory, if your server has mod_rewrite enabled. Actually, you can even do that without mod_rewrite. Also, if you look in app/webroot/index.php, there are a series of settable constants that you can use to

Re: findAll() when used with order parameter returns nothing

2006-05-06 Thread Dominik Schlütter
Hi, Daneel wrote: In the track site and found one ticket regarding this issue (https://trac.cakephp.org/ticket/733) [...] Yeah, that's probably the way to handle such things. I reopened the bug with the patch, but it was marked as invalid again with the resolution that we have to deal

Re: findAll() when used with order parameter returns nothing

2006-05-06 Thread Larry E. Masters aka PhpNut
Daneel,I did not see this patch and it was closed without me looking at it.The ticket will be fixed since the way it worked before should still work in the stable version.The deal with it comment is not from me and it will not happen from anyone else on my dev team again, if so it will be dealt

Re: findAll() when used with order parameter returns nothing

2006-05-06 Thread Larry E. Masters aka PhpNut
IMHO deal with it is never an appropriate explanation for rejecting a patch - it should at least be stated why accepting the patch would beharmful.Lets stop this before it goes any further, I have already stated how this will be handled from now on.As lead developer I have the final say in what

Re: Cake and Plesk or other Managed Hosting software

2006-05-06 Thread calzone
Thanks Nate, the only detail is that I would like to do this as a production setup, without having the appfolder below the root defined in apache, but above it. It's looking like this is completely doable except for the webroot folder name. If there were some way I could change the name of

Re: findAll() when used with order parameter returns nothing

2006-05-06 Thread nate
Dominik: https://trac.cakephp.org/ticket/733 . Read my post from 05/06/06 20:20:53. That's just about all I have to say about that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Something like RJS

2006-05-06 Thread Armando Sosa
I like _javascript_ (a little more than PHP, to be sincere) and prototype is a great library. But the possibility of not switch your mindset between languages is very attractive to me. Also it is the oportunity to do it in a more Cakeish style. I'm working in something too Rossoft. I'm going to

Re: Access Control Manager (ACM) Plugin Now Available!

2006-05-06 Thread jeko
Cake Access Control Manager * Home * Users Groups * Managed Controllers * Permissions CakePHP : Rapid Development Framework Controller dump: AcmController Object ( [name] = Acm [uses] = Array ( [0] = AcmUser [1] = AcmRole