Migration from CakePHP 1.1.x to CakePHP 1.2.x - how to acces controller component from view?

2008-08-27 Thread Pizgin
Hi! Before was $account = $this->controller->Session->read('Account'); On CakePHP 1.2.x this not work. Have error: Undefined property: View::$controller [APP/views/elements/cart.thtml, line 3] Tell me please how i can acces to controller component from the view? --~--~-~--~~--

Re: hasAndBelongsToMany - Pagination

2008-08-27 Thread Elmo
make sure you're not using version 1.2 stable. There were lots of issues with HABTM relationships with that version. The version I found works okay is the current RC, 1.2.0.7296 RC2 On Aug 27, 5:05 pm, lordojazz <[EMAIL PROTECTED]> wrote: > I'm having problems in filtering results from the contro

Re: SQL Server Express Connection

2008-08-27 Thread claryda
I figured this out. Being from the SQL Server full version camp I was so used to port 1433. SQL Server Express since it can install multiple instances on a machine uses Dynamic Ports. The port for your particular SQL Server Instance can be found when enabling TCPIP. Just right click, go to propert

Re: is there a way to validate that a habtm has at least one association?

2008-08-27 Thread Joel Perras
>From your controller: debug($this->ModelName->hasOne) . (You can substitute hasOne for whichever association that you're looking for.) >From here you can use count()/in_array()/array_values() to perform whatever checks you might want on $this->ModelName- >whateverAssociationYouWant. Or you can

Need help on Open Source Subdomaining component I am trying to write

2008-08-27 Thread validkeys
Hey Guys, I decided that it was time that I start trying to contribute to the OS community. I have a very important project to me coming up and I am going to be using subdomaing (company1.myapp.com, company2.myapp.com) etc. I wanted to write a component that could handle this instead of copying

Re: radio buttons with form helper - lots of problems?

2008-08-27 Thread Mark (Germany)
thx for your answers absolutly positive - adding the default value again everything is fine. the white screen i get them sometimes in connection with security component, and after some testing, it IS the security component. @RichardAtHome: the thing is, there are no logs at all! empty.. with deb

Re: AD7six Upload Behaviour

2008-08-27 Thread José Pablo Orozco Marín
Now, in my Listing Model im using: var $actsAs = array( 'ImageUpload' => array( 'fileField' => 'logo', 'allowedMime'=> array('image/jpeg', 'image/gif', 'image/png', 'image/bmp'), 'allowedExt'=> array('jpeg', 'jpg

hasAndBelongsToMany - Pagination

2008-08-27 Thread lordojazz
I'm having problems in filtering results from the controller on hasAndBelongsToMany. Is there any other way to do this? can you please help me... I'm passing arguments on my controller, the argument then must be use to filter the results from hasAndBelongsToMany relationship. Thanks... --~--~--

Re: no database table

2008-08-27 Thread Abrar Arshad
On Wed, Aug 27, 2008 at 12:53 PM, BiraRai <[EMAIL PROTECTED]> wrote: > > How to does one tell cakephp controller not to use a database table? > > > > > Re: so it means you dont want to use Model class, so you can do it by using it like this var $uses = array(); it will not use any table fo

Re: no database table

2008-08-27 Thread rtconner
var $uses = array() On Aug 27, 1:53 pm, BiraRai <[EMAIL PROTECTED]> wrote: > How to does one tell cakephp controller not to use a database table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: AD7six Upload Behaviour

2008-08-27 Thread Josoroma
Hi AD7Six, I was seeing your behaviors, they looks very cool and useful. I was wondering how to use the upload and image_upload behaviors without using the attachments table. ...can just be a file field in your products table, or a dedicated 'attachments' table... My field is logo, im using the

Re: Cake 1.2 Auth - Is someone logged in?

2008-08-27 Thread Kjell
Little hint: You can add a $this->set into the AppController::beforeRender to always read $this->Auth->user() and thus make its content available in all views. function beforeRender() { $this->set('auth', $this->Auth->user()); } You can also do the same for your controllers, so you have that

Re: no database table

2008-08-27 Thread clemos
http://manual.cakephp.org/view/66/models#usetable-436 please read the manual On Wed, Aug 27, 2008 at 9:53 PM, BiraRai <[EMAIL PROTECTED]> wrote: > > How to does one tell cakephp controller not to use a database table? > > > > > --~--~-~--~~~---~--~~ You received t

Re: no database table

2008-08-27 Thread Samuel DeVore
On Wed, Aug 27, 2008 at 12:53 PM, BiraRai <[EMAIL PROTECTED]> wrote: > > How to does one tell cakephp controller not to use a database table? Controllers don't use database tables Models do. See http://book.cakephp.org/view/10/understanding-model-view-contr but you might want a controller that

problem with multiple autocomplete

2008-08-27 Thread assaggaf
i got a proplem with make more than one autocomplete for the same field i cann't do this, it doesn't work: echo $ajax->autoComplete('Product.name.1', array('controller' => 'product', 'action' => 'autoComplete')); the above code is not work!!! how i can make autocomplete for m more than one produ

no database table

2008-08-27 Thread BiraRai
How to does one tell cakephp controller not to use a database table? --~--~-~--~~~---~--~~ 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 fro

problem with multiple autocomplete

2008-08-27 Thread assaggaf
Hi i use auto complete and it work correctly with me but when i try to make a multiple of its , it doesn't work like: echo $ajax->autoComplete('Product.name', array('controller' => 'Product', 'action' => 'autoComplete')); this code couldn't run ??? how i can do it??? --~--~-~--~~-

Re: Do I have to change webroot config ? Cake Newbie

2008-08-27 Thread Sam Sherlock
editing views/pages/home.ctp might be a good place for you to start The blog tutorial is simple. Since cake is MVC you'll have a model that gets data from a corresponding table a controller that performs basic preparation of that data and passes it to the view which then displays it The blog tuto

Re: Please help me

2008-08-27 Thread Dardo Sordi Bogado
> the main problem is, that I don't have an accses to configuration > files on the hosting, where I run my pages Usually you don't need that. Typical shared hosting setup: /home/account/ public_html <--- configured as document root by hosting, put all the files in app/

Re: Cake 1.2 Auth - Is someone logged in?

2008-08-27 Thread ar2oor
It's working on functions with $this->Auth->deny(); but its not working on functions with $this->Auth->allow(); ;/ any ideas ? On 17 Sie, 12:36, francky06l <[EMAIL PROTECTED]> wrote: > The Auth login stores the user information in the Session  (with Auth > key). > The Auth->user() is actually

Re: is there a way to validate that a habtm has at least one association?

2008-08-27 Thread yaqoob
Hey, I have a very similiar question so I wont create another thread: I have Model1 which is associated HABTM with Model2 and Model3 (Firm with Category and Subcategory), I'd like to validate that Firm has at least one Category and one Subcategory. And from the other side, how would I have to val

Advanced searching with Paginator, HABTM

2008-08-27 Thread TonyP
I'm trying to create an advanced search page that can be used to narrow results by several different fields including a few HABTM tables. Currently, I'm creating an array with all of the search conditions and passing it to the paginator function. It worked great but I'm not sure how to pass HABTM

Re: JQuery + JSON

2008-08-27 Thread [EMAIL PROTECTED]
just an idea. Try in beforeFilter of controller add next if ($this->action == 'your json action name') { $this->RequestHandler->enabled = false; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: JQuery + JSON

2008-08-27 Thread clemos
Hi Maybe I'm missing something, but what he gets from his json queries is only headers, no content. So I guess his debug is already to 0, because otherwise the content would at least be filled with the "" in the end... >From his first message, his problem is not about errors parsing the JSON obje

Re: best php mail engine smtp/pop for cake

2008-08-27 Thread ihti
try Zend_Mail http://framework.zend.com/manual/en/zend.mail.html On Aug 27, 6:31 pm, Yves <[EMAIL PROTECTED]> wrote: > I've built an administration site in CAKE and would like to add simple > email capability so emails sent and received are attached to the > clients in the system. Not sure what t

is there a way to validate that a habtm has at least one association?

2008-08-27 Thread MarcS
Hi, I have 2 models, Model1 and Model2. Is there a way that each Model1 is always associated with at least one Model2? I think I remember seeing this somewhere but I can't find it any more. thanks for your help --~--~-~--~~~---~--~~ You received this message beca

Re: Using Console for Command Line (Cake Shell) Application

2008-08-27 Thread Rick
OK I got the args problem sorted out. To get the args in a shell you use $this->args. However, I'd still like suggestions on the shell best practices for code location. On Aug 27, 9:33 am, Rick <[EMAIL PROTECTED]> wrote: > I thought I would be able to use the 1.2 Console for a command line

best php mail engine smtp/pop for cake

2008-08-27 Thread Yves
I've built an administration site in CAKE and would like to add simple email capability so emails sent and received are attached to the clients in the system. Not sure what the best route would be. Do I link it to a web-based mail client, or do I use a mail engine and put the viewing/creating/dele

Re: JQuery + JSON

2008-08-27 Thread [EMAIL PROTECTED]
Add this to your view, because JSON can't be parsed if it presents any kind of text besides the JSON string and Cake presents it whe debugging is set to 2 or 1 In your view object($post); Configure::write('debug', 0); ?> This will disable the output from the debugging --~--~-~--~~

User belongsTo Group problem?

2008-08-27 Thread Reza Muhammad
Hi, I was trying to setup a relationship between User and Group through cake console. But I need help since there are strange things going on. In my users table, I have these fields: - id - username - password - group_id And, in my groups table, I have these fi

Re: Large $_POST variables crashing Controller startup

2008-08-27 Thread David
Hi there Could it be something to do with your php.ini's post_max_size directive value? David On Aug 27, 4:55 pm, neverlosty <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having an issue where I'm trying to post a very large (1M) string > through http $_POST > > For some reason when cake is starting

Re: Schema Could Not Be Loaded

2008-08-27 Thread blockedmind
Thanks a lot. On 27 Ağustos, 17:09, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > This tells that you are outside your app dir, and you are not telling > cake where it is: > > > Welcome to CakePHP v1.2.0.7296 RC2 Console > > --- > >

Large $_POST variables crashing Controller startup

2008-08-27 Thread neverlosty
Hi, I'm having an issue where I'm trying to post a very large (1M) string through http $_POST For some reason when cake is starting up, in cake/libs/controller/controller.php [line 387] $this->Component->init($this); After that it just dies. When I try to debug the Component.php function init,

Re: auth->loginError

2008-08-27 Thread luigi7up
Of course I haven't thnx it works. On Aug 27, 12:40 pm, RichardAtHome <[EMAIL PROTECTED]> wrote: > Have you added the code to your view to display the error? > > http://book.cakephp.org/view/564/displaying-auth-error-messages > > On Aug 27, 10:22 am, luigi7up <[EMAIL PROTECTED]> wrote: > > >

Re: help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread RichardAtHome
Quote: One thing I came across was the fact that the columns for created & updated should be of the type datetime and Null should be set to 'null' and not 'not null' Oops, forgot to mention that :-( On Aug 27, 4:21 pm, teknoid <[EMAIL PROTECTED]> wrote: > Makes sense that it works like that... >

Re: help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread teknoid
Makes sense that it works like that... how/where are you modifying the data if you are just doing a read()? On Aug 27, 5:02 am, "Marc Schuetze" <[EMAIL PROTECTED]> wrote: > According to the docs 'modified' and 'updated' are both ok. > I tried this with 'modified' as well and it was the same resu

Re: JQuery + JSON

2008-08-27 Thread clemos
Hi As always, you should start by setting debug level to 2 in your config/core.php, to see if there's any error displayed... ++ Clément On Wed, Aug 27, 2008 at 2:36 PM, Jonathan <[EMAIL PROTECTED]> wrote: > > I did this http://www.pagebakers.nl/2007/06/05/using-json-in- > cakephp-12/"Using

Re: Do I have to change webroot config ? Cake Newbie

2008-08-27 Thread pmit
Thanks Chris, I think I will be able to make things work based on the advanced instalation. To quickly test my configuration is there a sort of a "Hello Cake World" program I could run after I try my setup to confirm it is working correctly ? I saw the Blog example in the book but would like some

Re: Please help me

2008-08-27 Thread lacithetemplar
the main problem is, that I don't have an accses to configuration files on the hosting, where I run my pages On Aug 27, 1:29 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Try with a production setup: cake, app and webroot sepparated. > > On Tue, Aug 26, 2008 at 7:43 PM, lacithetemplar > >

Re: JQuery + JSON

2008-08-27 Thread David
Have you tried setting the header content-type to text/javascript, rather than the text/x-json that you've got? David On Aug 27, 1:36 pm, Jonathan <[EMAIL PROTECTED]> wrote: > I did this http://www.pagebakers.nl/2007/06/05/using-json-in- > cakephp-12/"Using JSON in CakePHP 1.2> tutorial from the

Re: Show errormessages

2008-08-27 Thread mark_story
On Aug 26, 12:05 pm, worthy <[EMAIL PROTECTED]> wrote: > I have the exact same problem but i am assigning the errormessages in > the view and not in the model. > > Lets say i have 2 validation rules required, length for the field > title. > > var $validate = array ( > 'title' => array( >

Re: Schema Could Not Be Loaded

2008-08-27 Thread Dardo Sordi Bogado
This tells that you are outside your app dir, and you are not telling cake where it is: > Welcome to CakePHP v1.2.0.7296 RC2 Console > --- > App : console > Path: D:/Wamp/www/mysite/cake/console >

Re: Schema Could Not Be Loaded

2008-08-27 Thread Dardo Sordi Bogado
http://book.cakephp.org/view/467/defining-permissions-cake-s-da cake schema help cake schema run create DbAcl On Wed, Aug 27, 2008 at 6:55 AM, blockedmind <[EMAIL PROTECTED]> wrote: > > D:\Wamp\www\mysite\cake\console>cake schema run help > > Welcome to CakePHP v1.2.0.7296 RC2 Console > --

Re: Association recursive hasMany

2008-08-27 Thread Guillaume
$this->Model1->contain(array('Model2"=>"Model3"); should work. $this->Model1->contain( 'Model2.Model3'); too http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings Guillaume -- http://cherryonthe.popnews.com On 27 août, 14:49, vj <[EMAIL PROTECTED]> wrote: > I h

Using Console for Command Line (Cake Shell) Application

2008-08-27 Thread Rick
I thought I would be able to use the 1.2 Console for a command line (cake shell) application that is closely associated with a web app. However afer a few hours of trying I was not able to figure out how to implement command line arguments the shell app. I tried something like cake appname argum

Re: JQuery + JSON

2008-08-27 Thread Dardo Sordi Bogado
Have you added Javascript to the helpers array? And maybe you can paste some code at bin.cakephp.org... On Wed, Aug 27, 2008 at 9:36 AM, Jonathan <[EMAIL PROTECTED]> wrote: > > I did this http://www.pagebakers.nl/2007/06/05/using-json-in- > cakephp-12/"Using JSON in CakePHP 1.2> tutorial from the

JQuery + JSON

2008-08-27 Thread Jonathan
I did this http://www.pagebakers.nl/2007/06/05/using-json-in- cakephp-12/"Using JSON in CakePHP 1.2> tutorial from the Pagebakers blog to get JSON working with my installation of CakePHP. Almost everything seems to be working fine. When I go to http://localhost/mkb/index I get the page like norm

Association recursive hasMany

2008-08-27 Thread vj
I have 3 Models having following association: Model1 hasMany Model2 Model2 belongsTo Model1 Model2 hasMany Model3 Model3 belongsTo Model2 I had primary key value of Model1 and want to retrieve All Information from Model3. But $this->Model1->contain( 'Model2',

Re: Class XML :: Error on function toArray

2008-08-27 Thread Dardo Sordi Bogado
trac.cakephp.org On Wed, Aug 27, 2008 at 7:04 AM, MBmax <[EMAIL PROTECTED]> wrote: > > It's also happening with Set::reverse($xml) > > ;-( > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: Please help me

2008-08-27 Thread Dardo Sordi Bogado
Try with a production setup: cake, app and webroot sepparated. On Tue, Aug 26, 2008 at 7:43 PM, lacithetemplar <[EMAIL PROTECTED]> wrote: > > no, problem still remains :( > > On Aug 26, 3:31 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: >> may be try >> >> >> RewriteEngine on >> RewriteR

Re: help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread oleonav
One thing I came across was the fact that the columns for created & updated should be of the type datetime and Null should be set to 'null' and not 'not null' Hope this helps. Olav On Aug 27, 11:02 am, "Marc Schuetze" <[EMAIL PROTECTED]> wrote: > According to the docs 'modified' and 'updated' a

Re: Auth Component on Zeus Hosting

2008-08-27 Thread AussieFreelancer
I may be wrong here, but I think I may have resolved the issue... the security I had tried on medium and low also, but that had no impact. This time, I have set the sessions to 'cake' as opposed to 'php' and in the last few minutes, it has logged me in and not kicked me out yet... time will tell,

Re: auth->loginError

2008-08-27 Thread RichardAtHome
Have you added the code to your view to display the error? http://book.cakephp.org/view/564/displaying-auth-error-messages On Aug 27, 10:22 am, luigi7up <[EMAIL PROTECTED]> wrote: > My > $this->Auth->loginError ='Invalid username or password'; > won't show on login.ctp view > > This is what I

Re: Auth Component on Zeus Hosting

2008-08-27 Thread RichardAtHome
I had exactly this issue before but setting the security setting from High to Medium fixed it for me. Check your httpd error logs for any warnings about missing files/ images etc. On Aug 27, 11:23 am, AussieFreelancer <[EMAIL PROTECTED]> wrote: > ok, so no whitespace, but still not sure what is

Schema Could Not Be Loaded

2008-08-27 Thread blockedmind
D:\Wamp\www\mysite\cake\console>cake schema run help Welcome to CakePHP v1.2.0.7296 RC2 Console --- App : console Path: D:/Wamp/www/mysite/cake/console --- Cake Schema Shell ---

Re: How to join two tables of two different databases

2008-08-27 Thread sree
Hi Majna, Thanks for ur reply. but persistent connections in database.php were set to false and the association is hasOne for my tables. I am placing my code here , Tables : coupons (in AAA database), Retailers(in BBB database) Coupon Model: class Coupon extends AppModel { pub

Re: Auth Component on Zeus Hosting

2008-08-27 Thread AussieFreelancer
ok, so no whitespace, but still not sure what is causing it.. still the same issue, doesn't seem to like the sessions very much and kicks me out randomly... has no-one had this before? On Aug 7, 9:46 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Also check for whitespace:http://bin.cakeph

Re: Removing page execution time from bottom of page

2008-08-27 Thread evilbloodydemon
On Aug 24, 1:02 am, Aaron <[EMAIL PROTECTED]> wrote: > At the bottom of every rendered page is an execution time (i.e. > )  I have views that return json and this breaks the > parsing.  How do I remove this? > > -Aaron use layout without any other text. in controller: function return_json_etc(

Re: Auth Component - I'm going crazy

2008-08-27 Thread shabba
I also had this problem its caused because your not allowing a certain page. Action, my problem was that I had a element that was dynamically loading data. Instead I created a new layout just for the login that solved the problem. Here is what my app controller looks like. class AppController ext

Re: Class XML :: Error on function toArray

2008-08-27 Thread MBmax
It's also happening with Set::reverse($xml) ;-( --~--~-~--~~~---~--~~ 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, send ema

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-27 Thread clemos
Hi Giulio It looks more like a PHP cli issue, now, so here is not really the right place to solve it. Try searching for other ressources, like for example this one, which may help : http://www.issociate.de/board/index.php?t=msg&rid=0&th=66769&goto=279183 ++ Clément On Wed, Aug 27, 2008 at 4

Class XML :: Error on function toArray

2008-08-27 Thread MBmax
Heey Cakers... i have found a error in the XML class of CakePHP. I've the following xml data 2 1 1 2 when i parse this data with the xml class to a array $xml = new XML($data); $array = $xml->toArray(); i got a this array back Array ( [Lst] => Array

Class XML :: Error on function toArray

2008-08-27 Thread MBmax
Heey Cakers... i have found a error in the XML class of CakePHP. I've the following xml data 2 1 1 2 when i parse this data with the xml class to a array $xml = new XML($data); $array = $xml->toArray(); i got a this array back Array ( [Lst] => Array

Re: three level deep belongsTo

2008-08-27 Thread RichardAtHome
@wisecounselor > never mind, sorry to bother you, knew this was a waste of time Um, AD7six answered your question later on in his post. That is why he asked you if you'd continued reading... On Aug 25, 7:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > never mind, sorry to bother you, kn

Re: Forms not associated to models - alternative to the Form core helper?

2008-08-27 Thread RichardAtHome
You may not think it now but your form IS related to a model ;-) See Jonathan snooks example of a contact form: http://snook.ca/archives/cakephp/contact_form_cakephp/ Jonathan creates a tableless model and defines the schema by hand. That way you get all the benefit of cake's helpers (validation

auth->loginError

2008-08-27 Thread luigi7up
My $this->Auth->loginError ='Invalid username or password'; won't show on login.ctp view This is what I have in app_controller: var $components = array('Acl','Auth'); function beforeFilter(){ //Mijenja hash funkciju auth komponente iz defaultne u

Re: How to test the database connection?

2008-08-27 Thread RichardAtHome
This is how Cake does it in the scaffold home page: getDataSource('default'); ?> isConnected()): echo ''; __('Cake is able to connect to the database.'); echo ''; else:

Re: radio buttons with form helper - lots of problems?

2008-08-27 Thread RichardAtHome
What tram said... change the field to an Int. Mysql tinyint datatype has traditionally been used to store boolean data as MySQL doesn't have a boolean datatype. Alternatively, use a 1 byte char field. Or change your options to be null = Pending (the database default) 0 = Disapprove 1 = Approve

Re: A find('list') question.

2008-08-27 Thread Michael
Thanks a lot for the quick responses. --~--~-~--~~~---~--~~ 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, send email to [EMAI

Error Handling

2008-08-27 Thread [EMAIL PROTECTED]
I would make a my error handling. I use CakePHP 1.13 (I have some old application). I have create my app_error.php in app/. But when I use $this->cakeError , it is always referred to the error.php in cake core. Do I mistake some to do this or is it not possible in cake 1.13? thanks --~--~-

Re: help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread Marc Schuetze
According to the docs 'modified' and 'updated' are both ok. I tried this with 'modified' as well and it was the same result When I do $this->create(array(.)) and that array doesn't contain an update field then everything is fine and cake sets the update field properly. However, when I do $thi

Re: help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread RichardAtHome
The automagic fields should be called created and modified (not updated). You don't need to do anything else. On Aug 27, 8:29 am, MarcS <[EMAIL PROTECTED]> wrote: > Hi, > > I just noticed that my 'updated' field won't update when I update > data. > I tried around for a while and then noticed that

Re: How to join two tables of two different databases

2008-08-27 Thread majna
http://groups.google.com/group/cake-php/browse_thread/thread/d33b55ffc108292a/a9cc3117b719b24c?lnk=gst&q=cross+database+joins#a9cc3117b719b24c - Do not use persistent connections in database config - HABTM associations wont work here On Aug 27, 9:25 am, sree <[EMAIL PROTECTED]> wrote: > Hi all,

Re: OrderedBehavior - Order your lists in a TreeBehavior like manner, but only for one level.

2008-08-27 Thread alkemann
Version 2.1 with a few small updates to make it more php4 compatiable and make the tests use fixtures instead of tables. I hope people will find this behaviour helpfull. Happy baking. http://code.google.com/p/alkemann/downloads/detail?name=orderedbehaviour.rar alkemann On 26 Aug, 16:11, alkeman

Re: Dynamic content - default.ctp

2008-08-27 Thread FannyCradock
Thank you, I'll take a look at those. I had been browsing through the manual for a while, just didn't know what to look for. On Aug 26, 11:16 pm, "Brett Wilton" <[EMAIL PROTECTED]> wrote: > An element is probably the best way to go for this... > > http://book.cakephp.org/view/97/elements > > ---

New HABTM saving process in cake 1.2?

2008-08-27 Thread blablu
Hi, I just updated to the new 1.2 RC2 release, I made the necessary changes but I still have some trouble with saving habtm relations. I have the two models German and English with the following relation: German Model: var $hasAndBelongsToMany = array( 'English' =>

How to join two tables of two different databases

2008-08-27 Thread sree
Hi all, I am unable to join two tables of two different databases.I ll explain in detail. i have coupons table in AAA database n retailers tables in BBB database .i have join these two tables.as following AAA.coupon.coupon_id=BBB.retailer.coupon_id i have created two models Coupon n Retailer w

help with 'updated' and 'created' fields: Do I need to manually unset these fields in the data array?

2008-08-27 Thread MarcS
Hi, I just noticed that my 'updated' field won't update when I update data. I tried around for a while and then noticed that it won't update when the 'update' field is included in the Model's data array. But when I load data using Model::read(null,$id) the date fields are obviously always include