Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread [EMAIL PROTECTED]
If it helps, I wrote a component for handing CSV files and put it on the Bakery, but it hasn't been published. The text is below: CSV (comma-separated values) is a simple format for storing data. As such, adding support for it in CakePHP is simple as well. Here we go... [h4]Exporting CSV[/h4] E

PayPal Direct Payment API Component problem...

2007-01-04 Thread [EMAIL PROTECTED]
I'm getting the following errors after adding and trying out the PayPal API Component: Notice: Only variables should be assigned by reference in /home/3780/domains/verybadpoetry.com/html/app/vendors/pear/PayPal/SOAP/Base.php on line 549 Notice: Only variables should be assigned by reference in

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-04 Thread Dr. Tarique Sani
On 1/5/07, timblack1 <[EMAIL PROTECTED]> wrote: Perhaps we should call it Jake. or a Joke ;) but this is *Cool* Write a tutorial about it please will help many :) Tarique -- = PHP Applications for E-Biz: http://www.sanisoft.com

Re: ER Tools

2007-01-04 Thread Dr. Tarique Sani
On 1/4/07, NOSLOW <[EMAIL PROTECTED]> wrote: In CakePHP, your database relationships are by convention, and are defined in the Model, not formally in the database. Agreed but when working in a team, specifically a distributed team, it is great to be able to give a Diagram (and related SQL) whe

Re: spreadsheet_excel_writer and cakephp

2007-01-04 Thread roman_coder
Here is some code. I also have the path to pear in the vendors directory in my include path. .;C:\Program Files\xampp\htdocs\mem\vendors\Pear Call from within view: addWorksheet(); //Set Column Zoom to 75% $worksheet->setZoom(75); //Set Column Sizes $worksheet->setColumn(0,0,4.43); // Creat

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-04 Thread timblack1
I got it. Here's the code that works. function cakeMain(){ global $mainframe; $mainframe->addCustomHeadTag(""); $_GET['url'] = ltrim($_GET['cakeTask'], '/'); $_SERVER['PHP_SELF'] = "index2.php?option=com_ps_core&task=cake&

ajax with customer helper suggestions

2007-01-04 Thread [EMAIL PROTECTED]
Okay, I have a customer helper that spits out some html code The issue I'm running into is: how do I get the html from the helper so I can use an ajax update of a div? In my view: $myhelper->show(1, 1); in my helper: show($a, $b) { [html] $ajax->link('mylink', '/controller/action/a, aray('updat

beforeSave return false, what with afterFind...?!

2007-01-04 Thread Seb
Hi guys... I'm not really having any problem but I found this one out this morning and it intrigues me... Question: In which case should a beforeSave() return false...? Context: I use afterFind() to create virtual fields ... and when the beforeSave() returns false, the afterFind is not called

Re: how to pass an argument to other page?

2007-01-04 Thread Olivier Percebois-Garve
> $html->link('+informações','/cars/form/arg1/arg2' . > $car['Car']['id'],null,null,false)?> then in your cars controller you have function form($arg1 = '', $arg2 = ''){ //your code } HTH olivvv Daniel Gomes wrote: tks for helping clement, but my question is who do i pass the value from $h

Re: Help me to change the structure of my application.

2007-01-04 Thread Langdon Stevenson
Nicely explained solution woodsman. I have been watching this thread and wondering about the best solution. That sounds like an excellent approach. Regards, Langdon Not entirely answering your question here, but: Even without Cake, getting browsers to render html bit by bit as it arrives is

Re: how to pass an argument to other page?

2007-01-04 Thread clemos
could you please explain a bit more ? I still don't get it... ++ clément On 1/4/07, Daniel Gomes <[EMAIL PROTECTED]> wrote: tks for helping clement, but my question is who do i pass the value from $html->link to the controller? tks, Daniel Gomes 2007/1/4, clemos <[EMAIL PROTECTED]>: >

Re: spreadsheet_excel_writer and cakephp

2007-01-04 Thread gwoo
are you sending the correct content type headers? paste some code and we may be able to help. --~--~-~--~~~---~--~~ 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@googlegr

Re: some light about new form helper and validation

2007-01-04 Thread Claudio Poli 
ok.. I've noticed another thing, when using old validation methods, 'error' shows up, when using the new ones, don't. say: // view inputs(array( 'username' => array( 'label' => 'Username', 'div' => 'required',

Re: Help me to change the structure of my application.

2007-01-04 Thread the_woodsman
Not entirely answering your question here, but: Even without Cake, getting browsers to render html bit by bit as it arrives isn't quite that simple (imho) - IE (<7 at least) only behaves like this if the output is already quite large, or if the HTML is structured in certain ways. If you're lite

Checking uploaded images size

2007-01-04 Thread M
Hello, I have the following problem: I have completed a form for uploading an image, and in the controller i can check its size as follows: ... if ( $this->params["form"]["userfile"]["size"] > 102400 ) { $result = False; $error_message="La dimensione massima dell' immagine deve essere 100K"

Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-04 Thread timblack1
I'm wrapping Cake in a Joomla component in order to take advantage of Cake's scaffolding. In my Joomla component, the following code: $_GET['url'] = $_GET['cakeTask']; $_SERVER['PHP_SELF'] = "components/com_ps_core/index.php?option=com_ps_core&task=cake&cakeTask=/app/webroot/index.php"; chdir(

Re: lov.li - social network built on cake

2007-01-04 Thread expatrick
Here's the code. good luck getting mencoder working properly, I had to ask a friend to help recompile it. Also, mencoder won't add the metadata like length to the file so you have to do that with flvtool. That way the player can show a progress bar. // convert th

Re: lov.li - social network built on cake

2007-01-04 Thread expatrick
Sure - I use mencoder and a directory full of codecs. I used the command line options that this guy suggested: http://hedges.net/archives/2006/09/05/mencoder-magic-incantation/ and they work really well. I also use mencoder to pull a thumbnail from the video. I had to recompile mencoder with la

Re: lov.li - social network built on cake

2007-01-04 Thread Petr Vytlačil
How did you do upload video? And later stream it? --~--~-~--~~~---~--~~ 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, sen

Re: Using ACL to limit access to data

2007-01-04 Thread Langdon Stevenson
Thanks for the explanation Nimrod. Interesting reading. Langdon This may be bit OT now and should belong under "Tree Traversal Methods", however I just wanted to maintain a coherent thread so that I can easily find it later on. --~--~-~--~~~---~--~~ You recei

Is SQL to go with bake screencast available?

2007-01-04 Thread [EMAIL PROTECTED]
Hello, I'm making use of the great screencasts, in particular, the bake screencast: http://cakephp.org/screencasts/view/1 Even without sound it's very informative. However, I would love to have a look at the SQL structure used in the example, so that I might better understand how to follow alo

Preloading a div with AJAX

2007-01-04 Thread [EMAIL PROTECTED]
Hey, Im kind of new to both Cake and AJAX, and I'd like to populate a div with some ajax, but I'm wondering when the user first comes to that page, how do i have it already in the div? Probably really simple, thanks. --~--~-~--~~~---~--~~ You received this messag

spreadsheet_excel_writer and cakephp

2007-01-04 Thread roman_coder
Hi All, Has anyone gotten Pear's spreadsheet_excel_writer to work with cakephp? If I use it outside of cake it works fine (excel file is outputted and formatted correctly) but when I include it in the vendors directory and call it through cake the excel file is returned but the content of the sp

Re: Model associations and cascading delete.

2007-01-04 Thread the_woodsman
A few basic things, such as naming conventions and primary keys, are all you generally need in your DB. "Do I also have to setup the constrains in my database?" Do you mean 'constraints' as they appear in SQL table definitions? If you're referring to SQL commands such as REFERENCES, ON DELETE C

Best practice?

2007-01-04 Thread dani
Let's assume, I would like to create the following website: Home page: div header (static) div menu (dynamic -> must be able to indicate which page is "active") div content (dynamic -> showing articles i.e. blog) div sidebar right (dynamic -> showing latest 2 posts on forum + 2 news (news tab

Re: Call to a member function on a non-object

2007-01-04 Thread dummptyhummpty
On Jan 4, 2:27 am, "Grant Cox" <[EMAIL PROTECTED]> wrote: When in the User model, just use $this->findByUsername, not $this->User->findByUsername. Thank you! I actually figured it out last night. Thanks again! --~--~-~--~~~---~--~~ You received this message

Re: some light about new form helper and validation

2007-01-04 Thread nate
Showing multiple errors for a single field is a feature that is still in development. Look for more on this in the next couple weeks. For right now, you can continue using 'pseudo-fields' for multiple errors. --~--~-~--~~~---~--~~ You received this message beca

Re: how to pass an argument to other page?

2007-01-04 Thread Daniel Gomes
tks for helping clement, but my question is who do i pass the value from $html->link to the controller? tks, Daniel Gomes 2007/1/4, clemos <[EMAIL PROTECTED]>: it's the controller which is here to prepare data for the views: in your CarsController->form($id) function, you need to put somethi

Re: lov.li - social network built on cake

2007-01-04 Thread Sebastian Macias
Hey congratulations! Is there anyway you could share with the community how you handled the FLV trans codding? Thanks, Seb On Jan 3, 12:32 am, "expatrick" <[EMAIL PROTECTED]> wrote: http://lov.liis online - thanks very much to the cake development team and everyone in #cakephp for your help.

Re: Can CakePHP do this? - Two

2007-01-04 Thread Martin Schapendonk
In that case, my solution won't help you very much. Output is only sent to the browser after the view is generated. You may be able to speed up that process, but it is still being sent to the browser afterwards. Perhaps you can use AJAX for partial rendering, or cache the results (or a combinati

Re: lov.li - social network built on cake

2007-01-04 Thread expatrick
Google Analytics. It uses a javascript script on your pages so it can read all that stuff from the browser instead of relying on the web logs. it's almost scary how much it knows. And its free. Mandy wrote: How are you tracking page view - os | browsers | resolutions? --~--~-~--~

Re: ER Tools

2007-01-04 Thread [EMAIL PROTECTED]
Hi I have used DBDesigner to design the database tables. But for managing mysql databases, theres nothing like sqlYOG. it is not free. For a while, I was working with the trial edition, and it rocks. cheers --~--~-~--~~~---~--~~ You received this message becaus

some light about new form helper and validation

2007-01-04 Thread Claudio Poli 
hi there. usually (cakephp 1.1) we can differentiate errors with something like this: function beforeValidate() { // controlliamo se stiamo aggiornando un record oppure nuovo if ($this->id === false || $this->id === null) { // nuovo

Re: CakePHP programming problem

2007-01-04 Thread PaulV
In general, read up about MVC as anselm said earlier http://en.wikipedia.org/wiki/Model-view-controller is one site, but there are a whole slew of other sites which provide descriptions which should give you an overall view of what Cake is trying to achieve. Hopefully, I have covered all your qu

Re: some light about new form helper and validation

2007-01-04 Thread Claudio Poli 
a note, with "if we were using something like VALID_NOT_EMPTY it will. " I mean the old method: var $validate = array('username' => VALID_NOT_EMPTY); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Re: tutoiriels fr

2007-01-04 Thread rihegher
+1 I can't find it xeno77 a écrit : hello, I can't find the french tutorial and french documentation on the wiki site of cakephp.org, which were at the following url : http://wiki.cakephp.org/fr:tutoriels. where can i find the documentation that was published in french (did you move it to b

Re: ER Tools

2007-01-04 Thread NOSLOW
Chris Hartjes wrote: I use a whiteboard, dry-erase markers and paper to do my database design work. Sounds like I'm in the minority. ;) Chris, I hear ya! I work in the same fashion. I find it easier to expose the design by feeling it out using basic tools. Being able to quickly and easily mak

Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread TWIOF
perfect --~--~-~--~~~---~--~~ 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] For more

Re: some light about new form helper and validation

2007-01-04 Thread nate
Showing multiple errors for a single field is a feature that is still in development. Look for more on this in the next couple weeks. For right now, you can continue using 'pseudo-fields' for multiple errors. --~--~-~--~~~---~--~~ You received this message beca

Re: tutoiriels fr

2007-01-04 Thread gwoo
The wiki was removed. There were many messages on the eventual demise of the wiki, so we expected everyone to have had enough time to get what they needed and move it to the Bakery. I plan on making a download of the old wiki contents available, but when I can find timee to do it is a different s

Re: CakePHP programming problem

2007-01-04 Thread PHPBABY3
Larry E. Masters aka PhpNut wrote: Peter, Just out of curiosity have you even attempted the tutorial that in in the manual? Doing it will help you understand how things work in the framework. Yes, that's the first thing I did. But there is no reference to where their terms are defined, or l

Re: how to pass an argument to other page?

2007-01-04 Thread clemos
it's the controller which is here to prepare data for the views: in your CarsController->form($id) function, you need to put something like that: $this->set("arg","whatever"); so that in your view, you can access $arg. hope it helps. you should probably read the manual, too... +++ clement O

tutoiriels fr

2007-01-04 Thread xeno77
hello, I can't find the french tutorial and french documentation on the wiki site of cakephp.org, which were at the following url : http://wiki.cakephp.org/fr:tutoriels. where can i find the documentation that was published in french (did you move it to bakery.cakephp.org) ? where can i cont

Re: ER Tools

2007-01-04 Thread [EMAIL PROTECTED]
If I have a lot of db design work to to I'll use my design tool - EnterpriseArchitect ( http://www.sparxsystems.com ) - since it works for PHP classes as well. Freeware wise - Oracle's TOAD tool is available free for MySQL - and it looks pretty good. http://www.quest.com/toad_for_mysql/ --~--

Re: CakePHP programming problem

2007-01-04 Thread Larry E. Masters aka PhpNut
Peter, Just out of curiosity have you even attempted the tutorial that in in the manual? Doing it will help you understand how things work in the framework. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~

Re: CakePHP programming problem

2007-01-04 Thread PHPBABY3
Chris Hartjes wrote: I think I see *my* problem with your questions here: you are using terminology which I find confusing ("developed an expression" Where are these terms coming form? Are they some sort of hard-core computer science thing, because I studied computer programming at college

Re: CakePHP programming problem

2007-01-04 Thread PHPBABY3
Chris Hartjes wrote: On 1/2/07, PHPBABY3 <[EMAIL PROTECTED]> wrote: > are fairly sophisticated. I developed an expression that defines the > format of a page, giving directions for my parser program to walk > through a site given a little knowledge from a user. > My questions aren't asking

Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread Chris Hartjes
On 1/4/07, TWIOF <[EMAIL PROTECTED]> wrote: Is there a way to search csv files with php? Could i convert it to xml and do it that way? Any ideas would be much appreciated. Thanks If you know the names of all the columns, then I think you could do the following: 1) read in the file one lin

Re: Model associations and cascading delete.

2007-01-04 Thread Chris Hartjes
On 1/4/07, Tazz <[EMAIL PROTECTED]> wrote: Does Cake do all the work? Or do I also have to setup the constrains in my database? Thanks http://manual.cakephp.org/chapter/models I believe the answer is "you have to setup the associations in your code and make sure you create the associations

Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread Chris Hartjes
On 1/4/07, nate <[EMAIL PROTECTED]> wrote: http://us2.php.net/fgetcsv Ugh. Of course. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digitial photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.ne

Model associations and cascading delete.

2007-01-04 Thread Tazz
Does Cake do all the work? Or do I also have to setup the constrains in my database? Thanks --~--~-~--~~~---~--~~ 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@googlegro

Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread nate
http://us2.php.net/fgetcsv --~--~-~--~~~---~--~~ 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 PROTE

Re: IIS Tutorial is missing from Wiki

2007-01-04 Thread sawa
I tought that article authors were the ones who were supposed to move them to the Bakery. If you still have some backups somewhere, I'm willint to spend some time putting them in the Bakery --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: CakePHP programming problem

2007-01-04 Thread PHPBABY3
Chris Hartjes wrote: On 1/2/07, PHPBABY3 <[EMAIL PROTECTED]> wrote: > > Thanks, but it has so many undefined terms that I can't get very far. > Could ANYONE just start by answering some simple questions? > > 1. What are the data structures that you enter into i.e. files that you > create or so

using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread TWIOF
Hi everyone, this doesn't have allot to do with cake directly, but I thought someone out there might have come across a similar problem/solution. I'm trying to incorporate regularly updated csv file into my site. The csv file comes from a ticket selling service. The file is can be downloaded/pa

Re: Updating multiple models simultaneously

2007-01-04 Thread Chris Hartjes
On 1/4/07, matt.babbs <[EMAIL PROTECTED]> wrote: Bit of a newbie question here - I'm trying to update multiple models at once, but the foreign key keeps getting lost. I'm using CakePHP version 1.1.12.4205. I have User and Profile models. User hasOne Profile. Have you also created the belon

Re: ER Tools

2007-01-04 Thread Chris Hartjes
On 1/4/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: Hello All, This is a bit off topic - so apologies for that. Which ER / DB design tools do you folks use or rather do you use an ER tool at all? I use a whiteboard, dry-erase markers and paper to do my database design work. Sounds lik

Re: IIS Tutorial is missing from Wiki

2007-01-04 Thread nate
Requests were sent out several months ago for migrating any content that anyone thought was useful out of the wiki and into the Bakery. If there was content for which those requests were not followed up on, then it's too late now. That said, I did find this kicking around my hard drive: [ISAPI

Re: Can CakePHP do this? - Two

2007-01-04 Thread skyblueink
Thanks, Martin. I'll try your suggestion. What I am trying to accomplish was posted here today. http://groups-beta.google.com/group/cake-php/browse_thread/thread/8968aaa372cc1e67 Any comments will be much appreciated. On 1 4 , 9 47 , "Martin Schapendonk" <[EMAIL PROTECTED]> wrote: 2007/1/3,

Bakesale vs IIS

2007-01-04 Thread Aldemir Vieira
I having problems to install Bakesale (cakeforge) in the IIS. Somebody knows what to make to disable the mod_rewrite in bakesale and still thus to continue functioning? -- []´s, Aldemir Vieira --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Can CakePHP do this? - Two

2007-01-04 Thread Martin Schapendonk
2007/1/3, skyblueink <[EMAIL PROTECTED]>: I have no choice but to call $this->set() one thousand times in Controller, and write foreach statement one thousand times in View. Maybe you could make myfunction() a little bit more intelligent? function myfunction($i) { switch($i) { case 1:

Re: Using ACL to limit access to data

2007-01-04 Thread Nimrod A. Abing
Hello, This may be bit OT now and should belong under "Tree Traversal Methods", however I just wanted to maintain a coherent thread so that I can easily find it later on. I have been looking back at the top of this thread to see if I missed anything at the same time I kept looking back as to wh

Re: ER Tools

2007-01-04 Thread Dr. Tarique Sani
On 1/4/07, sawa <[EMAIL PROTECTED]> wrote: I use Azzurri plugin for Eclipse. It's good enough for me. The only Had not tried it before - but it does not let you define a 1:n relationship Thanks Tarique -- = PHP Applications for E-

Re: ER Tools

2007-01-04 Thread Dr. Tarique Sani
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: You might want to give the modeling tool umbrello a try, it can do ER Tried Umbrello - it can just about do ER and very clumsy at that. Thanks Tarique -- = PHP Applications for

Updating multiple models simultaneously

2007-01-04 Thread matt.babbs
Bit of a newbie question here - I'm trying to update multiple models at once, but the foreign key keeps getting lost. I'm using CakePHP version 1.1.12.4205. I have User and Profile models. User hasOne Profile. When creating a new User and Profile it works fine, the associations are set up prop

Re: lov.li - social network built on cake

2007-01-04 Thread Mandy
How are you tracking page view - os | browsers | resolutions? --~--~-~--~~~---~--~~ 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 thi

how to pass an argument to other page?

2007-01-04 Thread Daniel Gomes
in the first view i have it: link('+informações','/cars/form/' . $car['Car']['id'],null,null,false)?> and the other view i want it: Pedido de para   how do i pass the $arg on the first view? i have to pass to crontoller too? --~--~-~--~~~---~--~~ You receive

Re: IIS Tutorial is missing from Wiki

2007-01-04 Thread Dr. Tarique Sani
On 1/4/07, sawa <[EMAIL PROTECTED]> wrote: Is there some backup of the wiki site that I could download? I remember there have been many usefull things there. Try google cache - some of the pages are still there - I too wish that the wiki was still available. Tarique -- =

Re: IIS Tutorial is missing from Wiki

2007-01-04 Thread sawa
Is there some backup of the wiki site that I could download? I remember there have been many usefull things there. On Jan 4, 5:19 am, "nate" <[EMAIL PROTECTED]> wrote: The IIS tutorial is missing from the wiki? If you look, you'll actually notice that the wiki is missing from the wiki: http:/

Re: ER Tools

2007-01-04 Thread sawa
I use Azzurri plugin for Eclipse. It's good enough for me. The only thing that I miss is generating statements to populate tables with some default values. That feature exists in DBDesigner. Otherwise, I'm quite satisfied with what it can do. --~--~-~--~~~---~--~

Re: ER Tools

2007-01-04 Thread Langdon Stevenson
I currently use MySQLFront on WinXP. Works ok, but could be better. I used mysqlfront too when i was on winblows, it's a nice program. but unless we're talking about 2 programs sharing the same name: 1)it has been discontinued due to legal issues That is correct. 2)it's more suited to "da

Re: Call to a member function on a non-object

2007-01-04 Thread Grant Cox
When in the User model, just use $this->findByUsername, not $this->User->findByUsername. --~--~-~--~~~---~--~~ 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.

Re: ER Tools

2007-01-04 Thread Dr. Tarique Sani
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: You might want to give the modeling tool umbrello a try, it can do ER and it can export to various languages, I was trying to avoid going the UML way :) iirc there are also some eclipse plugins available, but afaik they aren't very good

Re: ER Tools

2007-01-04 Thread [EMAIL PROTECTED]
Langdon Stevenson wrote: I currently use MySQLFront on WinXP. Works ok, but could be better. Regards, Langdon I used mysqlfront too when i was on winblows, it's a nice program. but unless we're talking about 2 programs sharing the same name: 1)it has been discontinued due to legal issues 2)

Re: several "$content_for_layout"?

2007-01-04 Thread [EMAIL PROTECTED]
Daniel Gomes wrote: you just have to create one layout, the default layout. Then you just to have to create the views files that only have the content. It's perfectly OK to have multiple layouts. Although the 'interesting' bit (from a user perspective) can only be rendered by echo $content_fo

Re: what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread [EMAIL PROTECTED]
Please see this thread: http://groups.google.com/group/cake-php/browse_thread/thread/bf3bc452e6e60a79/3374ddf4fe7a15e9#3374ddf4fe7a15e9 The 'Search This Group' (top right) function for Google Groups is also extremely useful :) --~--~-~--~~~---~--~~ You received

How can I do if I want search hasAndBelongsToMany In Cake

2007-01-04 Thread rainbow686
HasAndBelongsToMany is relationship in Cake, but I found problem when I want search something in HasAndBelongsToMany table. Example: There is three tables: contents, content_tag, tags, the relationship is HasAndBelongsToMany between contents and tags. There is tow record in table tags(A and B). I

Re: what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread purepear
Try using elements. $this->renderElement() in the view. Look at the api. --~--~-~--~~~---~--~~ 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 unsubscri

Re: Not found the requested address was not found on this server.

2007-01-04 Thread clemos
hi what URL did return you an error ? is your whole app returning errors like this ? then it's most probably a url_rewrite error or something like that... how did you setup url rewriting ? do you use it ? clement On 1/4/07, vinod_una_HP <[EMAIL PROTECTED]> wrote: Hi, I am using con

what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread rainbow686
when I use Cake, I found I need define multi $content_for_layout. example: I want to display two different dynamic content in one page look link above, but there is one $content_for_layout in Cake. So, what can do? --~--~-~--~~~---~--~~ You

Call to a member function on a non-object

2007-01-04 Thread dummptyhummpty
Sorry if this has been asked before I searched and could not find it. Also i'm new to cake (getting the hang of it though) so this might be an easy fix. I'm trying to do some custom validation in my model using a callback. function beforeValidate() { if (!empty($this->dat

Re: ER Tools

2007-01-04 Thread Langdon Stevenson
I currently use MySQLFront on WinXP. Works ok, but could be better. Regards, Langdon Dr. Tarique Sani wrote: Hello All, This is a bit off topic - so apologies for that. Which ER / DB design tools do you folks use or rather do you use an ER tool at all? --~--~-~--~~---