Re: Help me with forum based on CakePHP

2009-05-31 Thread Miles J
Because Joomla/Drupal are CMS and CakePHP is a framework. Perhaps you should read a bit more on the difference. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Feedback from TranslateBehavior creator needed

2009-05-31 Thread Grzegorz Pawlik
Hello Jitka :) I remember You from our discussion about my performance trick in cake.1.1 ;) On 30 Maj, 03:41, jitka (poLK) slunii...@gmail.com wrote: There's ArticleVersion model, which have this fields: id, name: varchar, introduction:text, created:datetime. I've defined to name and

I need help to build a ACL with habtm

2009-05-31 Thread GetIT
For my application I need a ACL with habtm. In my book Webentwicklung mit CakePHP there´s only an example with a hasMany relation. I can't find anything I the web belonging to ACL and habtm (with the ACL of cakePHP and no custom solutions). For testing purposes I only have a simple aco tree:

Re: Feedback from TranslateBehavior creator needed

2009-05-31 Thread jitka (poLK)
There's ArticleVersion model, which have this fields: id, name: varchar, introduction:text, created:datetime. I've defined to name and introduction fields to be translatable: var $actsAs = array('Translate' = array('name', 'introduction')); Table for ArticleVersion model should

Re: Feedback from TranslateBehavior creator needed

2009-05-31 Thread jitka (poLK)
Instead of AppModel contructor, I would vote for AppModel::beforeFind () - and one thing to keep in mind: locale for translation you're looking for should be first in locale array. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Feedback from TranslateBehavior creator needed

2009-05-31 Thread jitka (poLK)
In AppModel::beforeFind() would be useful to check $this-Behaviors-attached('Translate') $this-Behaviors-enabled('Translate') --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: List leafs in Tree Behavior

2009-05-31 Thread delocalizer
Hi Jorge; Easiest way is to do a find with condition that TreeModel.lft+1 = TreeModel.rght On May 31, 8:42 am, Jorge Horacio Cué Cantú jorge@gmail.com wrote: Hello, I have a system with a Model behaving as Tree, the question is. I need to get a list of rows with out children meaning

Re: List leafs in Tree Behavior

2009-05-31 Thread delocalizer
or: TreeModel-query('SELECT * FROM model_things WHERE model_things + 1 = model_things.rght'). 'TreeModel' is obviously the name of your model that behaves as Tree and 'model_things' is its db table. On May 31, 8:42 am, Jorge Horacio Cué Cantú jorge@gmail.com wrote: Hello, I have a system

Re: Help me with forum based on CakePHP

2009-05-31 Thread keymaster
Personally, I don't think using an integrated cake-Joomla approach is such a great idea. What do you gain? Creating article management capabilities is trivial in cake. Do you really want all of Joomla code for that? Perhaps you are enticed by all the Joomla extensions? I can understand that,

Re: List leafs in Tree Behavior

2009-05-31 Thread Jorge Horacio Cué Cantú
Thanks It works great!. 2009/5/31 delocalizer conrad.leon...@hotmail.com or: TreeModel-query('SELECT * FROM model_things WHERE model_things + 1 = model_things.rght'). 'TreeModel' is obviously the name of your model that behaves as Tree and 'model_things' is its db table. On May 31,

A problem with a DISTINCT

2009-05-31 Thread Unaxillo
Hey guys, i'm trying to do this, but i can't get to work: function verclones($id){ $this-layout = limpio; $clones=$this-Visitante-query(SELECT DISTINCT usuario_id FROM visitantes WHERE ip=(SELECT ip FROM visitantes WHERE usuario_id=$id ORDER BY ip DESC LIMIT

Re: Problem Uploading Flash

2009-05-31 Thread Arak Tai'Roth
I will try those things and get back to you. About the perms though, they are correct, as those are the perms on my images directories that I upload to as well and that works fine, so I'm pretty sure the perms are correct. On May 30, 2:13 pm, brian bally.z...@gmail.com wrote: On Sat, May 30,

Help: Capture the ID of a Field from the autocomplete function

2009-05-31 Thread Dr.Dran
Hi! I'm trying to capture the ID of an autocomplete Field, but I didn't get notring... :S I'm using the prototype autocomplete function in cake, someone told me to utilize jquery, but I didn't find some helpfull example... can someone help me? Best Regards Franco Tampieri

Re: A problem with a DISTINCT

2009-05-31 Thread brian
Try debug($clon) and you'll see. On Sun, May 31, 2009 at 9:06 AM, Unaxillo comerc...@tuamo.net wrote: Hey guys, i'm trying to do this, but i can't get to work: function verclones($id){                $this-layout = limpio;                $clones=$this-Visitante-query(SELECT DISTINCT

Re: Test table creation failing

2009-05-31 Thread Ricky Paz
In your model EventAdmin is there any relationship with some model matched with test_event_admins's table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: can't get data from multiple databases

2009-05-31 Thread Ricky Paz
If you want a 1-n relantionship, use $belongaTo, and not $hasOne, like you've done. But, i dont think that will correct your problem. Could you put the error's message, please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: CakePHP jQuery - Update multiple selects?

2009-05-31 Thread td-nathan
If you want to use code like you had before, check the livequery plugin. It reattached applicable events as new elements are added to the DOM (ie. Your change event to a new select box) On May 30, 2:47 pm, DigitalDude e.blumsten...@googlemail.com wrote: Hey, THX for the response. I already

Not able to save HTML tags to mysql database.

2009-05-31 Thread Sridhar Gowda
Hi, I have form where the site admin create articles. While creating the article for links he is using a href=http:// google.comgoogle/a , But this is not getting saved in my database. When i click on save, it is not throwing any error also. Normal text is getting saved. database filed's type

Persistent model to true - Fatal error

2009-05-31 Thread pauloamgomes
Hi all, when i activate persistent model to true in my application, it breaks my models, I'm getting the following fatal errors: Fatal error: PhotosController::index() [a href='http://php.net/ photoscontroller.index'photoscontroller.index/a]: The script tried to execute a method or access a

Re: Problem Uploading Flash

2009-05-31 Thread gerhardsletten
MeioUpload is made for images.. If you have modified it, to handle all kinds of files, check to see if you can upload other kind of files. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Re: Not able to save HTML tags to mysql database.

2009-05-31 Thread fain182
maybe because you sanitize input ? http://book.cakephp.org/view/462/html -- pietro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

HABTM - problem when reading data for non-unique keys

2009-05-31 Thread BlueC
Here's my problem: If the foreign key in the HABTM join table isn't unique and could therefore return multiple matching records, all the records should be part of the returned dataset. The way it works now, only the first record is returned and the others are skipped. Simple example: Model

Re: Persistent model to true - Fatal error

2009-05-31 Thread Miles J
It wont work, so set it to false. $persistModel only works in some instances and not in others. It will cause model conflicts with other controllers, hence the error you are getting. Nothing you can really do about it. --~--~-~--~~~---~--~~ You received this

Re: Relationship confusion

2009-05-31 Thread brian
role, group ... pretty much the same thing, no? On Sun, May 31, 2009 at 8:45 PM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: This is fairly simple question but I think saying it in my head and hearing it sounds wrong and confusing me further. User signs up and selects the Group

RE: Relationship confusion

2009-05-31 Thread Dave Maharaj :: WidePixels.com
Yes exactly the same thing...user can only have one role/groupjust saying user can only have one group sounds wrong...whereas user belongs to a group sounds right (as in English language sounds right) and confusing myself further.. Basic ideas is user has 1 one role/group but I need a

How to add some condition for Auth Magic? Thank you!

2009-05-31 Thread Rimoe
hi, everyone! I used the Auth Magic login method. so, I don't need do anything, anyone can login in by the example of login for example the method function login() { } but now I want to add some condition for the login, what should I do? Thank you! rimoe

Re: How to add some condition for Auth Magic? Thank you!

2009-05-31 Thread Miles J
This might help. http://www.milesj.me/blog/read/5/using-cakephps-auth-component --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: How to add some condition for Auth Magic? Thank you!

2009-05-31 Thread Rimoe
Miles J, Thank you for your answer! now, I can add some conditions. by the way, in your example the $this-Auth-loginError has been set in the beforefilter, so, the error will be show anytime, when you have no login. maybe I have use it wrong. how to show the loginerror, do you know, and can you

Re: Help me with forum based on CakePHP

2009-05-31 Thread Sergei
A forum is not a hard task really. Take a look at this: http://code.google.com/p/expertforum On 30 май, 10:40, thethanghn thethan...@gmail.com wrote: HI everyone, I'd like to build a website by CakePHP and it needs a reliable forum and it's surely a hard task. Could anyone tell me whether