Re: R: about row locking

2007-08-20 Thread sharath
Thanks a lot Chris & Mr. m.sbr. :-) I will think & check your code so that how can I implement in my project. Yeah, this is a mysql issue, i think need to create a table by using InnoDB engine. This support row level locking. Regards, sharath. On Aug 20, 7:15 pm, <[EMAIL PROTECTED]> wrot

Got Starte But now lost

2007-08-20 Thread cauleyfj
I followed the installation directions in the manual and started following the directions to the Blog tutorial and was succesfull in getting the index view and the single post view. At that time I found out that people trying to get on to other pages on my site were being confronted with Cake. I

Custom dir installation

2007-08-20 Thread clarkvr
Hello everybody!!! I'm installing cake in a new web server, but I'm having some problems: site : http://b200.nce.ufrj.br/aom/ cake libs: /www/aom cake document_root: /www/aom/public_html index.php in /www/aom/public_html define('ROOT', DS. 'www' .DS. 'aom'); define('APP_DIR', 'authorship'); d

Re: How to write my own ajax with cakephp

2007-08-20 Thread Grant Cox
CakePHP doesn't change the way you write your Ajax - just use whatever JS framework in its normal way. Cake does have an Ajax helper which can simplify the process of writing Prototype compatible ajax queries, but it's still just generating some javascript that is run on the client, there is no m

Re: Storing Site Preferences

2007-08-20 Thread Grant Cox
I personally store all the installation-configurable settings in app/ config/site_config.php , and this file is included in the app/config/ bootstrap.php. This is the only application file that varies between installations But if your settings differ based on the request (ie user / group setting

Storing Site Preferences

2007-08-20 Thread [EMAIL PROTECTED]
What are the best options for storing site preferences? There are several admin-configurable options to set for each iteration of the site. I'm reluctant to set these in a database table due to the access overheads and was thinking there should be a prefs.conf file for the admin to tinker with -

How to write my own ajax with cakephp

2007-08-20 Thread Wimg
can anyone give me a little example of ajax with cakephp? --~--~-~--~~~---~--~~ 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 gro

Re: edit in place with cakephp

2007-08-20 Thread Wimg
Thx a lot! I am checking out these infor. On Aug 20, 11:33 pm, Mech7 <[EMAIL PROTECTED]> wrote: > I have something like this in my controller: > > /** > * Saves the title with inline edit form > * > */ > public function admin_saveTitle() > { >

Kae's filemanager - FCKeditor - $_SERVER['DOCUMENT_ROOT'] problem

2007-08-20 Thread double07
Hi all, I'm trying to configure Kae's filemanager (http://kfm.verens.com/) for FCKeditor and I'm having a problem with cake. You can see my post over at the KFM forums (http://kfm.verens.com/phpBB3/viewtopic.php? f=2&t=152) that the developer is saying $_SERVER['DOCUMENT_ROOT'] is not returning a

v1.2 Trailing Slash / Missing View Issue

2007-08-20 Thread lmuszkie
Good afternoon - I just upgraded from 1.1.14.4797 to 1.2.0.5427alpha and found that accessing static pages with a trailing slash triggers the missing views error. //this works properly http://example.com/pages/about //this doesn't http://example.com/pages/about/ The problem occurs on both my l

Re: CakePHP support for Berkeley DB?

2007-08-20 Thread Olexandr Melnyk
Um? You can use BDB as MySQL storage engine (MySQL <= 5.0): http://www.mysql.org/doc/refman/5.0/en/bdb-storage-engine.html 2007/8/20, nate <[EMAIL PROTECTED]>: > > Okay, dude, you need to stop spamming the mailing list now. Fix your > mail client or whatever. > > On Aug 20, 11:12 am, "Olexandr

Re: Error disabling debug

2007-08-20 Thread Oscar Burgos
I´m just getting the same error and behavior with a new model I have just added and I don´t know why it´s happening.. On 20 ago, 19:44, Darko Romanov <[EMAIL PROTECTED]> wrote: > Hi all, > > I can't understand the following behaviour... If I set DEBUG to 1 in > core.php I can delete a 'product' s

Re: CakePHP support for Berkeley DB?

2007-08-20 Thread nate
Cake will support Berkely DB as soon as you write a driver for it. ;-) Just take an existing db driver, change it up to use the dba_* functions, and you should be set. On Aug 20, 10:33 am, bingo <[EMAIL PROTECTED]> wrote: > hi, > > this is just an open question. Recently I have been reading a

Re: Updating Div with ajax

2007-08-20 Thread [EMAIL PROTECTED]
On Jul 30, 11:36 am, madmike210 <[EMAIL PROTECTED]> wrote: > In a view, I would like to be able to click on a button and have the > index displayed in a div. I accomplish this by doing the following in > a view: > > GROUP VIEW > USER VIEW > > div('main_div'); ?> > divEnd('main_div'); ?> > > How

Error disabling debug

2007-08-20 Thread Darko Romanov
Hi all, I can't understand the following behaviour... If I set DEBUG to 1 in core.php I can delete a 'product' simply calling, for i.e., http://cake.local/products/delete/66. The function in products_controller is: function delete($id) { $this->Product->del($id); } but when I set DEBUG

Re: display form results to new layout - no database

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 17, 3:25 pm, bobble-gobble <[EMAIL PROTECTED]> wrote: > I'm new to Cake and have been searching for this answer for the last > couple days. Can't seem to find anything -- although I'm sure the > problem is easily solved. > > Here's the situation: > > I have a form with validation working

Re: new "With" Associations in a HABTM

2007-08-20 Thread DLMax
Sorry Larry ;) I assumed it was you because I saw you posting the URL on IRC a couple of days ago Could you tell me if what we want do do is possible already or do I have to refresh my trac-timeline rss-feed like crazy ?? :D Thanks in advance, Max On 20 aug, 19:22, "Larry E. Masters aka Ph

Lost Pagination Functionalities

2007-08-20 Thread Feris Thia
Hi All, I have a model which has several belongsTo and hasMany relationships, then I try to do a pagination with the model itself and it functions without any problem. But then.. when I add recursive options in order to use pagination for the other model, it lost all pagination functionalities (

Re: new "With" Associations in a HABTM

2007-08-20 Thread Larry E. Masters aka PhpNut
gwoo wrote that not me :) The PDF you are referring to is upcoming features that may or may not have been fully implemented -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 8/20/07, DLMax <[EMAIL PROTECTED

Re: Solved with Hack: IIS issues + cake 1.2 and no mod_rewrite stuff

2007-08-20 Thread Gwoo
this is not the way to set the base in 1.2. If you are using the current nightly, you can set Configure::write('App.base', '/path/to/index'): in your core.php Cake will use this path without doing anything tricky. If you want to make your app more portable, then use Configure::write('App.baseUrl',

Re: 1.2 RSS Functionality..

2007-08-20 Thread Mech7
I am filtering them out manually now not sure if there is a better way though? public function index() { $rssMaxCharDescription = 500; // Check to see if the users has requested an rss feed $isFeed = ife($this->RequestHandler->prefe

Re: new "With" Associations in a HABTM

2007-08-20 Thread DLMax
If you read the PDF, written by phpnut, that doekie linked to, you see that no model has to be created for the join-table in the HABTM relation. You can get the HABTM to work like this: Post Model: array('className' => 'Tag')); function beforeSave() { if(!empty($this->data['Tag']))

Re: R: othAuth component v0.5.4.5

2007-08-20 Thread NOSLOW
> If I can get it to work, then I'll write a tutorial for morons like myself. Baz, I think you have the wrong forum. No one volunteers to write documentation themselves...they get volunteered by others :) Seriously, though, I hope you get it to work as I'm, too, a self- proclaimed moron (ok, ma

Solved with Hack: IIS issues + cake 1.2 and no mod_rewrite stuff

2007-08-20 Thread daschl
Hey guys! After searching through the discussion lists and talking on the irc i was not able to get cake 1.2 and IIS playing nice together.. Then i played around with the index.php and modified it so that is is working for me, maybe you can benefit from it (but, of course its a really dirty hack

Updating translation .po files

2007-08-20 Thread nagarjuna
Hi, I am setting up a site so that the admin (not me) can add new fields, steps, etc. I want to set it up so that, when they add a new field, they will input the translated name for the field as well, and behind the scenes I will update the .po file automatically. But I have no idea how to go ab

Re: CakePHP support for Berkeley DB?

2007-08-20 Thread Olexandr Melnyk
In case you use it MySQL storage engine. 2007/8/20, bingo <[EMAIL PROTECTED]>: > > > hi, > > this is just an open question. Recently I have been reading a lot of > Berkeley DB and came to know that many big companies such as google > and amazon use Berkeley DB. I am wondering does CakePHP support

Re: edit in place with cakephp

2007-08-20 Thread Mech7
I have something like this in my controller: /** * Saves the title with inline edit form * */ public function admin_saveTitle() { // Check if the form has been submitted if (!empty($this->data)) {

Re: Cake Url Alias - anyone used it before?

2007-08-20 Thread Matt
I am having trouble working out how to call a specific controller from my AppError class - any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake

Re: Why Jake?

2007-08-20 Thread Mike Green
Also, consider that using jake, you get the best of both worlds, and you can easily create layouts that fit in directly with your current template, no changes needed! We have an existing joomla based website that needing some extra functions, which I had written in cake, and until I discovered ja

CakePHP support for Berkeley DB?

2007-08-20 Thread bingo
hi, this is just an open question. Recently I have been reading a lot of Berkeley DB and came to know that many big companies such as google and amazon use Berkeley DB. I am wondering does CakePHP support the use of Berkeley DB ? Regards, bingo --~--~-~--~~~---~--~

R: about row locking

2007-08-20 Thread m.sbragi
I have used this on one of my projects: function afterSave() { /* ** If new record find counter */ if(! @$this->data['Protocolli']['id']) { $id= $this->getLastInsertId();

Re: Why Jake?

2007-08-20 Thread Chris Hartjes
On 8/20/07, Romano <[EMAIL PROTECTED]> wrote: > Jake enables a Cake app to run inside of Joomla. But what is the added > value of this, other than the app physically being inside the Joomla > site? I understand that this by itself could be reason enought to use > Jake, but still I hope you people

Re: about row locking

2007-08-20 Thread Chris Hartjes
On 8/20/07, sharath <[EMAIL PROTECTED]> wrote: > > Hi, > I'm using cake & mysql for editing purpose. > Now i want to lock a particular row of a table. Can anybody tell me > about how to do this in cake? > > Thanks in advance, > sharath. That is a MySQL issue, not a CakePHP one. I am not aware of

Removing the auto-loaded helpers.

2007-08-20 Thread phpjoy
I remember I read somewhere that the HTML helper (and maybe pagination one) are automatically loaded when CakePHP starts unless it's being specifically told not to. How can I remove the auto-loaded helpers? Are there more stuff that are auto-loaded I should know about? :+) --~--~-~--~--

Re: edit in place with cakephp

2007-08-20 Thread Chris Hartjes
On 8/20/07, Wimg <[EMAIL PROTECTED]> wrote: > > who knows how to do this or have any examples ? thx a lot! > ~ If you are talking about something like a WYSIWYG text area, there are two examples in the bakery: http://bakery.cakephp.org/articles/view/using-tinymce-with-cak

Why Jake?

2007-08-20 Thread Romano
Hi there, We're developing a new site using Cake. We've also had a look at Joomla which offers some nice components, for which lots of templates are available, has a nifty backend, etc. Jake enables a Cake app to run inside of Joomla. But what is the added value of this, other than the app physi

Re: cake+joomla=jake, but where have the developers gone?

2007-08-20 Thread Mike Green
Im not sure if anybody else has looked at this, but I have discovered that the way the dispatcher was changed in the latest SVN, that jake WILL still work if your app lives in the root directory (or more importantly, if your JOOMLA installation lives in the root) So, http://mysite.com/joomla/ind

Re: R: Auditing

2007-08-20 Thread szeta
Yep, that's how I added a history to my last project. E.g. to check if somebody changed his last_name (married? ;-) DELIMITER // create trigger contact_update AFTER UPDATE ON contact FOR EACH ROW BEGIN IF new.Last_Name != old.Last_Name THEN INSERT INTO contact_history(`Contact_ID`,`Type`,`Actio

Print Media Advocacy

2007-08-20 Thread p0windah
Hi, Take a look at some scans of an article my colleague has written which introduces CakePHP to Hong Kong Linux users. http://allmyshit.com/publication/ I also intend to write a follow-up article that is more in-depth, supported by more Hong Kong case studies. It will also be published in Linu

Re: R: othAuth component v0.5.4.5

2007-08-20 Thread Baz
I was getting PHP errors. I don't know. I was frustrated. It looks cool, and it looks like something I'm going to need for a future project. Some people have said that it's not neccessary, that I should just use the built it Cake ACL in 1.2, but this doesn't seem to work for me either. Again, some

Re: R: Auditing

2007-08-20 Thread RichardAtHome
If you are using a later version of MySQL (>= 5.0.2), you could add a database trigger (ON UPDATE, ON DELETE, etc.) to log changes automatically without having to change your code. See: http://dev.mysql.com/doc/refman/5.0/en/triggers.html On Aug 20, 11:59 am, <[EMAIL PROTECTED]> wrote: > This m

R: Auditing

2007-08-20 Thread m.sbragi
This my attempt to solve the problem (logfile is a table for auditing): function beforeSave() { $this->currentAction = $this->id ? 'Update' : 'Insert'; return true; } function afterSave() { // hope that this is not necessary // because cake has filled in the id after save

Re: Auditing

2007-08-20 Thread Langdon Stevenson
Hi zipman If you are using Cake 1.2 then have a look at Behaviors. I believe that they would be the best way to deal with this. If you are using 1.1 then you are probably on the right track already. Sorry I can't help with the specifics of your question - I haven't had to deal with that bef

Auditing

2007-08-20 Thread zipman
Hello, I have finished a project and now I want to add auditing support, as to know when an update or delete occured and with what parameters. I guess the solution to my problem is the afterSave callback which I'll have to put in the app_model.php. The problem is I don't know how to access the pa

Re: can't get index.php page to show in color and images

2007-08-20 Thread RichardAtHome
I had this problem myself only yesterday on my home (Windows) machine. Here's the solution: Don't change Look a little further down the conf file and you'll see another directory section that points to your web root (e.g): Make the changes there ;-) On Aug 20, 1:07 am, "sixs" <[EMAIL PROT

cjs tutorial for cakephp

2007-08-20 Thread rtanz
hi today i came across the cjs package, which from what I can gather after doing some reading on its rails counterpart rjs, is a really useful tool one can use to manipulate javascript from within cake's php file templates. Unfortunately there is little cake documentation or tutorials about this a

Re: R: othAuth component v0.5.4.5

2007-08-20 Thread luke BAKING barker
Baz - what problems did you have exactly? It works well othAuth system! You shouldnt just sound off, if you don't specify problems :( there isnt much to set it up either, the docs in the bakery are quite full if you read them. Luke On Aug 20, 8:11 am, <[EMAIL PROTECTED]> wrote: > Give a try ev

Re: undefined index

2007-08-20 Thread Grant Cox
The error should also give a filename and line number, so you can see where the problem is. Basically it's when you have an array, and you try to access an array key that doesn't exist, eg: $data = array('id'=>1,'title'=>'hello'); echo $data['body']; will give a warning about accessing undefine

about row locking

2007-08-20 Thread sharath
Hi, I'm using cake & mysql for editing purpose. Now i want to lock a particular row of a table. Can anybody tell me about how to do this in cake? Thanks in advance, sharath. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: new "With" Associations in a HABTM

2007-08-20 Thread Marcin Domanski aka kabturek
have you created the model ? On Aug 19, 5:04 pm, doekie <[EMAIL PROTECTED]> wrote: > In the OCPHP sheets (http://www.cakephp.org/files/OCPHP.pdf) there was > an example of the use of the new "With" Associations in a HABTM. So it > must be easy to get values out-of the join-table in CakePHP 1.2 >

Re: Model not found?

2007-08-20 Thread Jon Bennett
> Right on! I have a list of nine other models used by the > talent_controller and I had forgotten to add the TalentDelail model to > the list! do you need to load all these models directly? If they have associations set up, you should only need a couple in Uses, and the rest will be available vi

undefined index

2007-08-20 Thread Matt
I keep getting undefined index field_name - I find sometimes it is a foreign key and others it is just a field_name in the index list. Is there a way to determine what exactly this error means. I'm net to cake so I'm not quite sure what to make of it. Thanks for any help. --~--~-~--~-

Need a mentor

2007-08-20 Thread Prashant
I need someone to mentor me in Cake PHP. I am finding it bit difficult on my own. In return for his time and effort I am willing write code for him at no cost. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

edit in place with cakephp

2007-08-20 Thread Wimg
who knows how to do this or have any examples ? thx a lot! ~ --~--~-~--~~~---~--~~ 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 T

ajax problem with IE

2007-08-20 Thread Wimg
i use a ajax->link () to update a div in a view. It works fine with firefox, but with IE it gets problem. anyone gets any ideas about what's with this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: webroot shows in http url

2007-08-20 Thread Matt
Thanks, I just read http://www.ad7six.com/MiBlog/ProductionSetup which explained everything I needed for my dreamhost account. On Aug 19, 11:16 pm, Dave J <[EMAIL PROTECTED]> wrote: > Hey Matt, > > check your Apache http.conf file... make sure that DocumentRoot is > pointing to the /cake/app/w

R: othAuth component v0.5.4.5

2007-08-20 Thread m.sbragi
Give a try even to this: http://bakery.cakephp.org/articles/view/yacca-yet-another-cake-component-for -auth Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto di Baz Inviato: lunedì 20 agosto 2007 4.10 A: cake-php@googl