fill dropdown by cake from database model???

2008-05-23 Thread vishal
Hi My Cakephp friends, I am new on this google groupcakephp forum.I spend lot of time to solve the problem on the forum but still can't get anything, so can anybody help me regarding following issue. I have two models(database table):User,Message I want place a drop down in my Mes

Help me friends(dropdown issue)

2008-05-23 Thread vishal
Hi My Cakephp friends, I am new on this google groupcakephp forum.I spend lot of time to solve the problem on the forum but still can't get anything, so can anybody help me regarding following issue. I have two models(database table):User,Message I want place a drop down in my Mes

Re: A small plugin for PDT&CakePHP - Open Cake File

2008-05-23 Thread Dr. Tarique Sani
Hey! this is cool!! Thanks for all the hard work Tarique On Fri, May 23, 2008 at 9:35 PM, kiang <[EMAIL PROTECTED]> wrote: > > http://sourceforge.net/projects/opencakefile/ > http://opencakefile.sourceforge.net/ > > It's a must have tool when you working with a big project. :) > > This plugin o

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread Dardo Sordi Bogado
Seems like cake gods are too shy. Maybe the answer of a mere mortal could help you: Try with rewrite_base in your .htaccess, but first please revisit the "advanced setup" section in the manual. HTH, - Dardo Sordi. On Fri, May 23, 2008 at 11:35 PM, MikeK <[EMAIL PROTECTED]> wrote: > > I responde

Re: PLEASE HELP URGENT !!!!

2008-05-23 Thread b logica
Can you connect to the database from a terminal? Can you connect from a regular PHP script? I don't know why you're referring to your Apache config; that's unlikely to be the source of your DB connection problems. On Fri, May 23, 2008 at 2:54 PM, adroitus <[EMAIL PROTECTED]> wrote: > > > Hello A

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
I responded to your email. I like you am asking for help. I suggest you post your issue on another thread and perhaps someone with more knowledge than I can help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakeP

Re: TortoiseCVS

2008-05-23 Thread Andraž
Tnx. On May 23, 10:02 pm, majna <[EMAIL PROTECTED]> wrote: > Look for Tortoise SVN. > > On May 23, 9:26 am, Andraž <[EMAIL PROTECTED]> wrote: > > > Hello! > > > How can I checkout from SVN with TortoiseCVS. I'm never did this. Whic > > password, username and protocol I must use? > > > Regards And

Eclipse + CakePHP

2008-05-23 Thread spamguy
I have a fundamental confusion over how to bring together CakePHP and Eclipse. I'm working off the definitive article http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake . (1) 'I follow the Cake convention of storing all my CakePHP projects in the Cake root directory (mak

ajax+cakephp 1.1.9

2008-05-23 Thread neelu
I am new to cakephp, i need is very simple ajax request handling in 1.1.9 version (i.e i don't need any auto completion like features) from where i have to start. ? simple request handling in sense when on keydown in input box i have to fetch rec from db and to displ

Problems displaying an image from a controller action using readfile()

2008-05-23 Thread lauren
Hi, So I've had this working perfectly. The images are stored above the webroot /app /uploads img01.jpg The controller has an action which accepts the file name of the image, adds some HTTP headers and outputs the image contents using readfile(). Now I can't be 100% sure but it see

configure ------- please help !!!!!!!!!

2008-05-23 Thread adroit
Hello All, I am new to CakePHP framework and I am having a tough time with the correct installtion. So far I get to see the default page after installation - CakePHP release information is on CakeForge Read the release notes and get the latest version Editing this Page - and so on --

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread adroitus solutions
Hi Mike , Can will you be able to help me with my basic installtion issue Please ?? On Fri, May 23, 2008 at 12:02 PM, MikeK <[EMAIL PROTECTED]> wrote: > > OMG I found the answer to the last question - in function baseURL in > the dispatcher it actually doctors up the URLs if you are using

PLEASE HELP URGENT !!!!

2008-05-23 Thread adroitus
Hello All CAKE Gurus, Please help me , I am not able to still connect to database for some reason , I am not getting - Your database configuration file is present --- still :( I am new to CakePHP framework and I am having a tough time with the correct installtion. So far I get to see the def

Re: Plugin Model Association Problem

2008-05-23 Thread Christopher E. Franklin, Sr.
On May 23, 2:49 pm, francky06l <[EMAIL PROTECTED]> wrote: > If the user model is in the plugin it should not a problem.. Maybe the > problem is how you call the find and from where ? I do the find in the UsersController::read() function. It seems to me that it is a problem with the association b

Re: Is creating a digg clone hard for you? How hard?

2008-05-23 Thread francky06l
Was hoping "Kube" would be linked somehow to "Cube" data mining etc ... pf ... disapointed Spamming 100% On May 23, 11:37 pm, Raistlin Majere <[EMAIL PROTECTED]> wrote: > rewording > > Take a look at the source code and the number of files of phpdug. > > click choose download at > > http://w

Re: Plugin Model Association Problem

2008-05-23 Thread francky06l
If the user model is in the plugin it should not a problem.. Maybe the problem is how you call the find and from where ? >The problem is when I try to find the user. In my model association I >have to have: I guess this is when you try to find user from the application and not the plugin ? Mayb

Re: Problems realizing a User/Group system with ACL

2008-05-23 Thread francky06l
If your group are hierarchical it's easy, otherwise maybe an ACL linked to a join HABTM model user_groups can be the solution ... I have done something like this, but not for managing user/group, so just a hint .. hth On May 23, 6:24 pm, mcjustin <[EMAIL PROTECTED]> wrote: > I've found that I ca

Re: Is creating a digg clone hard for you? How hard?

2008-05-23 Thread Raistlin Majere
rewording Take a look at the source code and the number of files of phpdug. click choose download at http://www.kubelabs.com/phpdug/ and select 1.4.2 How much time and money would you need to create a phpdug if programming in CakePHP? Take a look at the demonstration of phpdug. http://demos

Re: AppModel query and Oracle

2008-05-23 Thread Jeff Loiselle
Ah you submitted a ticket. I guess I forgot to mention that I spoke to Chris Jones from Oracle and he said that functionality is not available at the C level, so it's not a PHP issue. On Fri, May 23, 2008 at 4:07 PM, Bensoft <[EMAIL PROTECTED]> wrote: > >> Yeah, this topic has to be revisited at

Re: Is creating a digg clone hard for you? How hard?

2008-05-23 Thread Raistlin Majere
I am sorry. Nevermind. On May 23, 7:35 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > Other than spamming the list - is there a point to this mail that I am > missing? > > The app is *not* cakePHP based. > > Tarique > > On Fri, May 23, 2008 at 10:51 AM, Raistlin Majere <[EMAIL PROTECTED]> > w

Re: is this a bug ?

2008-05-23 Thread Knud Soerensen
Adam Royle wrote: > I think this is fixed in more recent versions. > > Adam > > > > I am using 1.2.0.6311 beta. > On May 24, 2:39 am, Knud Soerensen <[EMAIL PROTECTED]> wrote: > >> I have a local cake site running onhttp://10.0.0.161/ >> >> if I accesshttp://10.0.0.161/everything is

Re: AppModel query and Oracle

2008-05-23 Thread Bensoft
> Yeah, this topic has to be revisited at some point. http://pecl.php.net/bugs/bug.php?id=13970 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegro

Re: TortoiseCVS

2008-05-23 Thread majna
Look for Tortoise SVN. On May 23, 9:26 am, Andraž <[EMAIL PROTECTED]> wrote: > Hello! > > How can I checkout from SVN with TortoiseCVS. I'm never did this. Whic > password, username and protocol I must use? > > Regards Andraz --~--~-~--~~~---~--~~ You received thi

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
OMG I found the answer to the last question - in function baseURL in the dispatcher it actually doctors up the URLs if you are using the default app name of 'app' and webroot name of 'webroot' - this type of HACK tells me all I need to know on the original question -- I think I'll just move the su

Re: is this a bug ?

2008-05-23 Thread Adam Royle
I think this is fixed in more recent versions. Adam On May 24, 2:39 am, Knud Soerensen <[EMAIL PROTECTED]> wrote: > I have a local cake site running onhttp://10.0.0.161/ > > if I accesshttp://10.0.0.161/everything is fine > > if I accesshttp://10.0.0.161/users/login?testeverything is fine > > bu

Re: A small plugin for PDT&CakePHP - Open Cake File

2008-05-23 Thread Mathew Nik Foscarini
Can this be installed into Zend Studio? - Original Message From: kiang <[EMAIL PROTECTED]> To: CakePHP Sent: Friday, May 23, 2008 12:05:59 PM Subject: A small plugin for PDT&CakePHP - Open Cake File http://sourceforge.net/projects/opencakefile/ http://opencakefile.sourceforge.net/ It

Re: AppModel query and Oracle

2008-05-23 Thread Jeff Loiselle
Dave, Yeah, this topic has to be revisited at some point. I have also been busy developing an application using CakePHP & Oracle. I now wish I had never been strong-armed to use Oracle, but that besides the point. ;-) Nate had some ideas about trying to fix this issue, but at this point I'm just

Re: ajax form validation

2008-05-23 Thread Keith
Hi Oli, Basically you're just looking for client side form validation. You'd want to write some kind of interpreter that would take the model-based validation from CakePHP and translate it into Javascript that would load when the form loads so that it could be triggered with "onChange()" or some

Re: Auth heisenbug

2008-05-23 Thread Joel Perras
Thanks for the update. On May 23, 11:19 am, "b logica" <[EMAIL PROTECTED]> wrote: > It seems to have been related to the  known bug with security set to > "high". I didn't think it was the same thing but I changed the setting > to medium and the problem seems to have disappeared for the moment. >

Re: Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
One final question to add. WHen I take the 'app' subdir and place it in public_html with everything in webroot/index.php configured as default, I NEVER see 'app' in any paths generated by the link helpers. However the moment I rename app to anything else (in index.php), all of a sudden the APP_DIR

cool starting point for a new datasource...

2008-05-23 Thread Samuel DeVore
http://developer.yahoo.com/searchmonkey/ "Using SearchMonkey, developers and site owners can use structured data to make Yahoo! Search results more useful and visually appealing, and drive more relevant traffic to their sites." see Rasmus's Toy Page for some examples http://toys.lerdorf.com/arch

Re: SQL Error: 2014

2008-05-23 Thread Ma'moon
I am so sorry!! that was a typo!!! my false! you should do [ mysqli_next_result($db->connection); ] rather than [ $lastResult = mysqli_next_result( $db->connec ); ] i should also say that you have to put this in a method inside your app_model.php file in order to have it accessible from any user de

Question about install dir, .htaccess, and routes

2008-05-23 Thread MikeK
I am attempting to clean up my URLs just a hair and have a question for those that have more experience with tweaking how cake and my app are installed, and usage of .htaccess and routes. I apologize in advance to the gods of cake if this question is not to your liking ;) But I appreciate any adv

Plugin Model Association Problem

2008-05-23 Thread Christopher E. Franklin, Sr.
Hi great coders, I am having a problem trying to get my model associations in a plugin to come through. I have a plugin called users and I have a users_controller and a user_profiles_controller and thier associated models. Between these two models, I have them associated as, user has o

Re: AppModel query and Oracle

2008-05-23 Thread Bensoft
On May 23, 7:02 am, "Jeff Loiselle" <[EMAIL PROTECTED]> wrote: > Welcome to being me. Hi Jeff, Great job by the way (considering) and thank you for dbo_oracle.php I was shocked to find there was no way to get Oracle to return the full table.column specifier in OCI_ASSOC. If we could get that

is this a bug ?

2008-05-23 Thread Knud Soerensen
I have a local cake site running on http://10.0.0.161/ if I access http://10.0.0.161/ everything is fine if I access http://10.0.0.161/users/login?test everything is fine but if I access http://10.0.0.161/?test cake says *Warning* (2) : strpos() [function.strpos

Re: Problems realizing a User/Group system with ACL

2008-05-23 Thread mcjustin
I've found that I can have multiple instances of an ARO leaf across the tree (a user in many groups), but that non-leaf ARO's will not fxn properly if there's more than one instance of them... (hoping that someone else while comment as well!) On May 23, 6:18 am, Prophet <[EMAIL PROTECTED]> wrote

Re: Using Behaviors in Model

2008-05-23 Thread [EMAIL PROTECTED]
Thank you Christoph I actually can use the TreeBehavior methods on my model but I swear I thought I could not yesterday (in the 'augmented' model that is). in the Model : debug($this->children($id)); So either I was a little well ... off or my svn update did the trick in any case it's workin

Re: Auth login redirect pointing to image?

2008-05-23 Thread Sam Sherlock
Paste some code here http://bin.cakephp.org/ also have you tried removing jquery+thickbox to see what happens then? Also try setting debug to 1 or 2 in config/core.php 2008/5/23 theandystratton <[EMAIL PROTECTED]>: > > For some reason, my Auth component is redirecting to an image... and > I'm n

Auth login redirect pointing to image?

2008-05-23 Thread theandystratton
For some reason, my Auth component is redirecting to an image... and I'm not sure where to debug. I'm assuming this is stored in the session, and while I play with dumping some session stats, I'd figure I'd see if anyone else has the issue. The weirder issue is, I'm using the thickbox.js library

Re: Questions on creating a User/Group system with ACL

2008-05-23 Thread Prophet
Sorry this is a double of http://groups.google.com/group/cake-php/browse_thread/thread/04196425d65f7f6a# On 23 Mai, 16:22, Prophet <[EMAIL PROTECTED]> wrote: > Hello, > > I want to create a User/Group permission system with help of ACL. But > i have a few problems realizing that. > > Can an ARO

A small plugin for PDT&CakePHP - Open Cake File

2008-05-23 Thread kiang
http://sourceforge.net/projects/opencakefile/ http://opencakefile.sourceforge.net/ It's a must have tool when you working with a big project. :) This plugin only support the ".thtml" extension in view file. If you want the ".ctp" one, download it here: http://sourceforge.net/tracker/index.php?fu

Re: Auth heisenbug

2008-05-23 Thread b logica
It seems to have been related to the known bug with security set to "high". I didn't think it was the same thing but I changed the setting to medium and the problem seems to have disappeared for the moment. On Fri, May 23, 2008 at 8:52 AM, Joel Perras <[EMAIL PROTECTED]> wrote: > > Well, it's pr

RE: Database Management

2008-05-23 Thread Mariano Iglesias
Burn in hell SPAMMER. -MI --- CakeFest: December, 2008 - Buenos Aires, Argentina - http://www.cakefest.org blog: http://www.MarianoIglesias.com.ar twitter: http://twitter.com/mgiglesias -Mensaje original- De: cake

Re: Component and models

2008-05-23 Thread Stinkbug
I've wanted to do the same thing several times, but they keep telling me it's best of you don't access models from components (don't ask me why). One thing they told me in the IRC chat is that most of the time it's best to pass data as a parameter to the component. Any reusable code that needs to

Database Management

2008-05-23 Thread gaojihuiyuan
SAN Database Management Discounted IP SAN solutions. Switch to SAN, get offer details. http://www.healthhuman.com.cn/Database-Management.htm Database Management Courses and Schools Gain new skills. Search our directory of schools. Request free information today. Start on your path to a successful

Questions on creating a User/Group system with ACL

2008-05-23 Thread Prophet
Hello, I want to create a User/Group permission system with help of ACL. But i have a few problems realizing that. Can an ARO have multiple parents or does it depend on a tree sturcture with one possible path for each ARO? For example if i say UserAro.parent belongs to Group1Aro, Group2Aro and G

Re: session garbage savehandler = cake

2008-05-23 Thread [EMAIL PROTECTED]
Hmm… I want the system to access the session files to find an User.id in it. So I can update the database to show the online status of an user (if the user don't click on the logout button) Now the sessions are stored in the database and I want to minimize the overhead. When I use the session ha

Re: vendorPaths - How to use them in an appropriate way

2008-05-23 Thread schnumsel
Sorry, it's corrected in the latest revision. Schnumsel --~--~-~--~~~---~--~~ 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 unsubscribe from this group,

Re: SQL Error: 2014

2008-05-23 Thread domichal
Hi guys I'm having very similar problem, but this solution doesn't work for me. I'm calling stored procedure which returns a result, then i'm calling another one which uses this result. If I run them separately both works correctly, but if I run them one-after-another I'm getting 'commands out of

Problems realizing a User/Group system with ACL

2008-05-23 Thread Prophet
Hello, I want to create a User/Group permission system with help of ACL. But i have a few problems realizing that. Can an ARO have multiple parents or does it depend on a tree sturcture with one possible path for each ARO? For example if i say UserAro.parent belongs to Group1Aro, Group2Aro and G

TortoiseCVS

2008-05-23 Thread Andraž
Hello! How can I checkout from SVN with TortoiseCVS. I'm never did this. Whic password, username and protocol I must use? Regards Andraz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to t

Email component: Is 7bit right ?

2008-05-23 Thread Norio Suzuki
The default charset of Email component is UTF-8. But, Content-Transfer-Encoding is 7bit. It is not revokable. Is it right ? It might be 8bit for UTF-8. It proposes to add the $tansferEncoding variable in email.php. var $transferEncoding = '8bit'; --~--~-~--~~~---~

AJAX paginator callback

2008-05-23 Thread gbk *
Hi, i would like to use a javascript callback function in the ajax paginator. can i define it somehow in the options array? my goal is simple. i would like to call the following jquery code after a new page has returned from the server: jQuery("tr:even").addClass('highlight'); thanks, gbk --~-

Re: Auth heisenbug

2008-05-23 Thread Joel Perras
Well, it's probably grasping at straws, but maybe take a look at what's being done to your Cake session variables, especially Auth.redirect. Since this bug seems to appear and disappear at random, there are very few things that could be causing it; I can only think of HTTP headers and Session var

Re: Restricting Login Attempts with Auth Component

2008-05-23 Thread leveille
Bear in mind that the browser fingerprint would only be reliable if the server to which the clients are making the request is in the same network (behind the same firewall). In that case the IP address would be a DHCPd 1.9.168.*.* variation. If the server to which the requests are going to is ou

Re: How to create lang-paginator?

2008-05-23 Thread [EMAIL PROTECTED]
Closed I have personal bug in my routes ;-) On May 21, 9:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > When I use two (three) language, my Routes look like: > > /:lang/:controller/:action/ > > But, How to setup helperpaginatorfor creating url like this? > > $paginator->next(__('next', t

Re: ACL in oracle?

2008-05-23 Thread Jeff Loiselle
This issue has been solved in the branches version of dbo_oracle.php On Thu, May 15, 2008 at 7:29 AM, Nameroc <[EMAIL PROTECTED]> wrote: > > I'm trying to use the command "cake acl initdb" to set up ACL tables > in an oracle system, but my queries are returning errors because > apparently acos an

Re: AppModel query and Oracle

2008-05-23 Thread Jeff Loiselle
Dave, Welcome to being me. I wrote that damned thing, use it every day, and of course I'm still bound to the same rules you are. I'm glad you took the time to document the hoops you have to jump through to make it work. But it you follow those simple steps, 90% of what you need to do just works;

Re: Using Behaviors in Model

2008-05-23 Thread Preloader
Hello Thomas, as it is defined, the model "acts as" a tree, which means, you can use the tree methods with the model. So the model does not "HAVE" a tree, it "IS" a tree. >From the cookbook: "Once a behavior has been specified, use the methods added by the behavior as if they always existed as p

Re: Is creating a digg clone hard for you? How hard?

2008-05-23 Thread Dr. Tarique Sani
Other than spamming the list - is there a point to this mail that I am missing? The app is *not* cakePHP based. Tarique On Fri, May 23, 2008 at 10:51 AM, Raistlin Majere <[EMAIL PROTECTED]> wrote: > > Take a look at the source code and the number of files of phpdug. > --

Using Behaviors in Model

2008-05-23 Thread [EMAIL PROTECTED]
Hello all, 2 questions that might have been answered (but I didn't fid the answer - I searched ;) In a model that has, say, a TreeBehavior attached to it like so : var $actsAs('Tree'); how would I use the Tree behavior in a model method. What works fo me is : $this->Behaviors->Tree->myTreeBeh

Re: Question on HABTM and finderQuery

2008-05-23 Thread David C. Zentgraf
Then instead of defining a HABTM relationship, define a simple hasMany relationship and cheat on the foreignKey. var $hasMany = array( 'ModelB' => array( 'className' => 'ModelB', 'foreignKey'=> '', 'finderQuery' => 'SELECT...'

Question on HABTM and finderQuery

2008-05-23 Thread [EMAIL PROTECTED]
I have this question. I have two model A and B that have a HABTM relation . I must defined it with finderQuery because the relation is particular and I haven't a table A-B with the relationship. Because in my code I HAVEN't neither joinTable nor foreignKey and nor associationKey. I have only find

Re: how not to clear cache?

2008-05-23 Thread Adam Royle
Just define function _clearCache($type = null) { } in your model, and the cache won't be cleared. Adam On May 23, 12:59 pm, robert123 <[EMAIL PROTECTED]> wrote: > Right now I have a shopping_cart_product model. it belows to product > model , below is the model code > > I cachi

AppModel query and Oracle

2008-05-23 Thread Bensoft
Spent some time getting this work so I thought I'd document it for anyone else having trouble with Oracle and the AppModel query() method. Basically, PHP's OCI interface is very limited when it comes to MetaData. There is no staight forward way to get table names of columns in a result set. As