Re: ajax controller

2009-06-08 Thread Walther
Don't. Trying to smash various actions from various controllers/models into the same controller is just asking for trouble. It will be hard to maintain, it will be inefficient and hard to debug. On Jun 9, 8:41 am, "Dave Maharaj :: WidePixels.com" wrote: > Just thinking about putting all my ajax

ajax controller

2009-06-08 Thread Dave Maharaj :: WidePixels.com
Just thinking about putting all my ajax functions into 1 controller but what would it be called? Ajax Ajaxs? What is the best way to do something like this? Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: cakephp on ubuntu 9.04, php5

2009-06-08 Thread Saliem
okay nvm - rest the permissions :) On Jun 8, 11:15 pm, Saliem wrote: > i'd like to use the cake bake command: > > cd cake/console > ./cake bake > > but i get: > > -bash: ./cake: Permission denied > > from what i've looked up - it sounds like i can also run cake bake > from the apps directory. i

cakephp on ubuntu 9.04, php5

2009-06-08 Thread Saliem
i'd like to use the cake bake command: cd cake/console ./cake bake but i get: -bash: ./cake: Permission denied from what i've looked up - it sounds like i can also run cake bake from the apps directory. is that actually possible - or do i need to install something more? also - it looks like i

Re: Problem with Migration

2009-06-08 Thread Ryan Tan
Alright i solved the issue, it seems that in the views page, i didnt put the default 'array()' for the form helper's $form->day, $form->month and $form->year. pretty weird that my development copy didnt catch that error. 2009/6/9 Ryan Tan > Hi all, > > I seem to have a problem during this mig

Pagination with an inner join on the same table

2009-06-08 Thread salston
All, I have searched the posts, but can't seem to locate the problem that I am having. I have the following query that I would like to duplicate with pagination: select t1.nomenclature as lev1, t1.barcode as lev1_barcode, t2.nomenclature as lev2, t2.parent_id as lev2_parent_id from site_inventor

Problem with Migration

2009-06-08 Thread Ryan Tan
Hi all, I seem to have a problem during this migration. I just transfered the exact copy of my developed site and its database, with all necessary configurations in placed. The copy in my development server works fine thou, both are running on Ubuntu Linux. However a minor error in my custom dro

Re: CakePHP - MySQL Connection issue

2009-06-08 Thread Saliem
okay so i found out what my solution was. after tinkering around i realized the main issue was that i hadnt installed any of the code for php to work with mysql. go figure. On Jun 8, 5:48 pm, Saliem wrote: > I'm actually having the exact same problem. Without thedatabase.php > file the colors of

RE: Find similar - SOLVED

2009-06-08 Thread Dave Maharaj :: WidePixels.com
Sorry... I used array_unique($related_posts); But after working on the idea more I scrapped what I had. The site Brian pointed out was good...but my posts have many HABTM tables and different situation use different tables so for now I have put it on hold until next update. -Original Messa

Re: Find similar - SOLVED

2009-06-08 Thread westaussie
Hey Dave ... could you please elaborate on your solution to maybe help someone else who has come up against something similar. That would be much appreciated. Scott On Jun 9, 2:16 am, "Dave Maharaj :: WidePixels.com" wrote: > Never mind...i figured it out. > > Thanks. > > Dave > > -Original

$javascript->event() with Event:Selectors

2009-06-08 Thread isho
I having some trouble figuring out how to use $javascript->event() with selectors other than #id's First of all I was getting this error message "EventSelectors is not defined" until I included the js lib "event-selectors.js" that I found on github. (http://github.com/Caged/javascript-bits/tree/

Re: CakePHP - MySQL Connection issue

2009-06-08 Thread Saliem
I'm actually having the exact same problem. Without the database.php file the colors of my homepage show up but once I create the database.php file with the login credentials I get a page devoid of colors with the last line on the page being "your database configuration file is present" Have you

Re: Append a anchor to paginator helper.

2009-06-08 Thread brian
Use the '#' key: $paginator->options( array( 'url' => array( 'controller' => 'projects', 'action' => 'view', $project['Project']['id'], '#' => 'related' )

Re: if ($loggedIn == 0){

2009-06-08 Thread brian
$user = $session->read('Auth.User'); if (empty($user)) { } or, simpler: if ($session->read('Auth.User')) On Mon, Jun 8, 2009 at 1:55 PM, cakephp_rocks wrote: > > hey this didnt work i want to used it in my view when i put this i get > this fatel error > > Fatal error: Can't use function retur

Re: if ($loggedIn == 0){

2009-06-08 Thread Miles J
if ($session->check('Auth.User.id')) { // logged in } else { // logged out } And reverse: if (!$session->check('Auth.User.id')) { // logged out } else { // logged in } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Can't update record

2009-06-08 Thread Mauricio Tellez
Hi, I'm filling a form with a select control, when I choose an option from that select, an ajax request is made and if there is data from that store, several text box are filled with the store's data. If there is no data for that store, the user can fill the text boxes and then the data is save. So

Re: Sessions in Components?

2009-06-08 Thread Sanfly
Worked great, should have tried it myself before asking! Cheers Sandie On Jun 9, 8:09 am, Gwoo wrote: > add var $components = array('Session') to your UploaderComponent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: What's best way to create the Admin area?

2009-06-08 Thread gerhardsletten
Go with conversions. If your app allow full crud for regular users, you might not need to create a admin controller functions/views for that model. Also try to ignor the desire to "mod" everything. What you get baked will often do the job, even though it's not as sexy as the wordpress backend. --

Re: after-validation data

2009-06-08 Thread delocalizer
Hi Balanza; beforeSave callback (in your model) would be the place to do that. Although for the example you give, if you use the Auth component a password will be hashed by default. On Jun 8, 4:25 am, Balanza wrote: > Hi, > i wonder i couldn't find anything about make some elaboration to data

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
could you give me un example if you mean like this check('Auth.User.id'))) { echo $html->link(__('login to comment', true), 'users/login'); } ?> i allready tried and it gives me the same errorr On Jun 8, 3:01 pm, Miles J wrote: > To be more precise, this should work better. > > $session

Re: Confirmation Page for Form?

2009-06-08 Thread Marc
Thanks Brian, Unfortunately, that approach didn't work for me with the security component... I tried another approach which also works, but not once I add in the security component: function register() { if (!empty($this->data)) { $this->User->create();

Re: if ($loggedIn == 0){

2009-06-08 Thread Miles J
To be more precise, this should work better. $session->check('Auth.User.id'); --~--~-~--~~~---~--~~ 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 unsubsc

Re: if ($loggedIn == 0){

2009-06-08 Thread teknoid
use $session->check(), which returns true/false if the given key exists. On Jun 8, 4:58 pm, cakephp_rocks wrote: >             [Auth] => Array >                 ( >                     [User] => Array >                         ( >                             [id] => 15 >                        

Re: Comment_Count

2009-06-08 Thread Brendon Kozlowski
Try setting counterCache to true in your Comments model's association with the Post model. Make sure the comment_count field is an INTEGER value and located in your Post model. On Jun 8, 12:58 pm, cakephp_rocks wrote: > How to do comment count > class Comment extends AppModel { > >         var

Multiple databases with different column

2009-06-08 Thread Henrik Gemal
I'm accessing databases stored on difference computers. Everything works just fine now since all the databases have the same columns on the different computers. So no problem now. But we need to upgrade the databases. This we cant do all at once, so we will be running with different databse for m

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
[Auth] => Array ( [User] => Array ( [id] => 15 [username] => xxx [email] => x...@.com [group] =>

Re: if ($loggedIn == 0){

2009-06-08 Thread Miles J
Try debugging the session in the view: debug($session->read('Auth')); See if the User array exists. On Jun 8, 10:55 am, cakephp_rocks wrote: > hey this didnt work i want to used it in my view when i put this i get > this fatel error > > Fatal error: Can't use function return value in write con

Re: Accessing auth information from within model class

2009-06-08 Thread Miles J
Its because you cant use components in models. If you want to access the session, you would have to import it. App::import('Component', 'Session'); $Session = new SessionComponent(); $auth = $Session->read('Auth.User'); --~--~-~--~~~---~--~~ You received this mess

Re: Sessions in Components?

2009-06-08 Thread Miles J
Would it be possible if I took a look at your uploader? I recently just wrote one and am curious how others do it :p --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: Sessions in Components?

2009-06-08 Thread Gwoo
add var $components = array('Session') to your UploaderComponent --~--~-~--~~~---~--~~ 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

Accessing auth information from within model class

2009-06-08 Thread Bryan Paddock
Hey all, I can't seem to find out how to access the Auth class from within the model? I have models/property.php where in the afterfind() function I need to perform certain functions based on the user_id if the user is logged in. $this->Auth->user() is not within the scope. I can't use $this->Se

Sessions in Components?

2009-06-08 Thread Sanfly
Hi Im writing a file upload component, and as part of that I want to have a file upload log. This is basically a text file I rewrite to each time a file is uploaded with a bit of data about the upload. Anyway, as part of this I want to record the person who uploaded the file. Over the rest of

Re: Displaying children first while finding using thread.

2009-06-08 Thread Marcelo Andrade
On Mon, Jun 8, 2009 at 2:35 PM, amrita.jain wrote: > > Does anyone know how to get the children fist while using find > ('threaded'). According the cookbook, you have to use the ContainableBehavior in order to find 'threaded' works fine. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazoni

Re: Sort not working for pagination with custom joins.

2009-06-08 Thread Chez17
I should specify that the line: //'order' => $order, has been purposefully commented out, I was trying to do sort manually and gave up on that quick. So that is not the issue. On Jun 8, 2:12 pm, Chez17 wrote: > I am doing a search over multiple tables in the db and have created a > custom

Re: TreeBehavior across different models

2009-06-08 Thread AD7six
On Jun 5, 5:38 pm, Greg Baker wrote: > Is it possible to use TreeBehavior where parent_id points to an id in > another model, which also uses TreeBehavior? no --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakeP

RE: Find similar - SOLVED

2009-06-08 Thread Dave Maharaj :: WidePixels.com
Never mind...i figured it out. Thanks. Dave -Original Message- From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] Sent: June-08-09 3:30 PM To: cake-php@googlegroups.com Subject: RE: Find similar Cool! Thanks looks good. I have modified it a bit to suit my needs but 1

Sort not working for pagination with custom joins.

2009-06-08 Thread Chez17
I am doing a search over multiple tables in the db and have created a custom query for pagination using multiple joins. The query itself works fine and returns the right results. The issue is that sort isn't working on most of the columns. In fact, it only works on the fields that are part of the

RE: Find similar

2009-06-08 Thread Dave Maharaj :: WidePixels.com
Cool! Thanks looks good. I have modified it a bit to suit my needs but 1 question not so much related... My results returns the same post sometimes 2 or 3 times in the array. If I am viewing a post tagged with TagA TagB TagC it will return PostA 2 times if it was tagged with TagA and TagB Seem

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
hey this didnt work i want to used it in my view when i put this i get this fatel error Fatal error: Can't use function return value in write context in C: \xampp\htdocs\mycake\app\views\post\view.ctp on line 37 On Jun 5, 1:24 pm, Miles J wrote: > if (empty($session->read('Auth.User'))) { > > }

Displaying children first while finding using thread.

2009-06-08 Thread amrita.jain
Hi, Does anyone know how to get the children fist while using find ('threaded'). Instead of Array ( [0] => Array ( [Article1] => Array ( [id] => 9 ) [Article2] => Array ( [id] => 91 ) [children] => Array ( [0] => Array ) ) )

Append a anchor to paginator helper.

2009-06-08 Thread nurvzy
Hi all, I'm a bit boggled finding a way to append an anchor to the end of a paginated numbers/next/previous. I have a controller action view that paginates a related model, pretty basic. When someone clicks "next", "previous" or a number I would like the url to append '#related' to the end of

Comment_Count

2009-06-08 Thread cakephp_rocks
How to do comment count array( 'className' => 'User', 'foreignKey' => 'user_id', 'conditions' => '', 'fields' => '', 'order' => '' ), 'Post' => a

Re: treebehaviour moveup / movedown give error

2009-06-08 Thread brian
On Sun, Jun 7, 2009 at 5:51 AM, Jasper wrote: > > I use the code from the docs for moveup and movedown, but I looked up > the code in the class file and I needed to modify the function call to > include $model, and some other little adjustments: > = >        function moveDo

Re: Find similar

2009-06-08 Thread brian
Have a look here: http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find On Sun, Jun 7, 2009 at 3:37 PM, Dave Maharaj :: WidePixels.com wrote: > Wondering where to start on something like this. > > Post HABTM Tags > > Viewing a Post it may be tagged with "environament

Re: Share a hasMany association ?

2009-06-08 Thread iFeghali
ok this is similar to that question: http://groups.google.com/group/cake-php/browse_thread/thread/1d24a16fde2990c9 but the suggested solution is to add a forth model in the top which i prefer not to do for now. any other feedback on this ? --~--~-~--~~~---~--~~ Yo

Re: The best database setup for this?

2009-06-08 Thread brian
On Mon, Jun 8, 2009 at 10:03 AM, Céryl wrote: > > A table that holds user_id in one column, and product_id in the other, > maybe? But that would grow to a very large redundant table like this: > user product > 1         3 > 1         6 > 2         3 > 2         4 > 2         5 > Etc. > That's not

Re: The best database setup for this?

2009-06-08 Thread brian
Use ContainableBehavior: $this->User->find( 'first', array( 'conditions' => array( 'User.id' => $user_id ), 'contain' => array( 'Product' ) ) ); On Mon, Jun 8,

Re: Confirmation Page for Form?

2009-06-08 Thread brian
I suppose the simplest way would be to put some logic in the view to either display the form or the data to be confirmed. For the latter case, you'd have a second form with all hidden fields. Another option would be to use something like the WizardComponent (I think that's what it's called--check

Re: password data is being lost

2009-06-08 Thread brian
AuthComponent. Look in the startup() method, for instance. On Mon, Jun 8, 2009 at 10:39 AM, Michael Gaiser wrote: > What happens between the app_controller and the users_controller? Is there > another file I should be looking in? > > > > --~--~-~--~~~---~--~~ You

Re: The best database setup for this?

2009-06-08 Thread Céryl
Ah, i saw it often, but I nevert had to use that link. Thansk for the fast reply! This Googlegroup never let's me down! :D Anyway, it works, I get the right array from the database now, but how can I make a SQL-query on this relationship that let's me get all the products by a certain user? I pr

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-08 Thread brian
Sorry, i don't know. On Mon, Jun 8, 2009 at 4:58 AM, Anna P wrote: > > Thank you for suggestion, but that doesn't seem to work either. Still > when I enter .com.pl it doesn't redirect me to .pl > > > > --~--~-~--~~~---~--~~ You received this message because you ar

Re: How to move a record of a table to other one?

2009-06-08 Thread Martin Westin
Can't say I get why you want to do it that way, but this should be enough for a save method to do it (if you have the classes setup). if ( $this->data['Product']['date'] ) { $data['ProductRepository'] = $this->data['Product'] $this->ProductRepository->save($data['ProductRepository']); } O

How to move a record of a table to other one?

2009-06-08 Thread Darshan
How to move a record of a table to other one? I have one table called products and another table called productsrepository in my database. The table products has these fields:id, name. And the table productsrepository:id, name, date. I have a view in products where there is a product with its na

Re: password data is being lost

2009-06-08 Thread Michael Gaiser
What happens between the app_controller and the users_controller? Is there another file I should be looking in? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

Re: The best database setup for this?

2009-06-08 Thread Martin Westin
$hasAndBelongsToMany A User can have many Product(s) in hist "shopping cart" or something. A Product can be in (have) many User's carts. On Jun 8, 4:03 pm, Céryl wrote: > Hello all, > > Little question: > > Say, i have two tables, USERS and PRODUCTS, for arguments sake. > > Now, all the produc

Re: Html->image outputs path relative to index.php, doesn't work if the url is (localhost)/app/controller/action

2009-06-08 Thread Martin Westin
Not a bug. You either have a configuration problem or just missed how your install does its redirection. You should never have to use "app" in your urls. try using urls like localhost/controller/action What is your layout? localhost points to a folder containing cake, app, vendors, ... ? On

The best database setup for this?

2009-06-08 Thread Céryl
Hello all, Little question: Say, i have two tables, USERS and PRODUCTS, for arguments sake. Now, all the products in the PRODUCTS table are unique by some value, say barcode, so it doesn't allow duplicates of the same product in the table. Now, a user can have several products associated with

Re: 301 Redirect with Server Webroot Setup

2009-06-08 Thread jabocs
Well, I found one solution to put something like this: RewriteEngine On RewriteRule ^test/test.htm$ /pages/oilgas [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] HOWEVER... still one more questi

Re: Poll: what do you hate about CakePHP?

2009-06-08 Thread studioetc
Please do not NEVER EVER going to return database result as array. those people who want this need to have their head check. do you know how much pain to debug the results? The reason I stick with Cakephp is the power model and their return result in Array (believe me I am fixing a CodeIgniter s

Confirmation Page for Form?

2009-06-08 Thread Marc
Perhaps I'm being dense, but is there a simple way of showing the user the data from the form that he/she just submitted and allow them to then submit the data to be saved? i.e. (1) Enter your data -> (2) Is this ok? ok, now press submit to process -> (3) Thanks, here's your receipt with the dat

Html->image outputs path relative to index.php, doesn't work if the url is (localhost)/app/controller/action

2009-06-08 Thread Jasper
Hi, The Html->image helper in the layoutfile outputs an img tag with the path ".\img\image.gif". The browser can only find it when I am only one level deep, i.e. "http://localhost/app/controller";. When I add a trailing slash, the images are broken. And when I visit an action, like "http://localh

Authentication fails for compound names

2009-06-08 Thread GetIT
I just notice that a action which has a compound name (like preparePdf -> prepare_pdf) fails authentication. I mean if I´m not authenticated and call an action I`m redirected to the authentication page. But if I call an action with a compound name it works without authentication. Sorry, I´m not

zend_mm_heap corrupted on database.php.default rename

2009-06-08 Thread DeepHumor
Hi, Apache 2.2 (Windows XP) restarts with: zend_mm_heap corrupted [Mon Jun 08 11:22:04 2009] [notice] Parent: child process exited with status 1 -- Restarting. when I rename database.php.default to database.php and attempt to reload localhost. Otherwise the CakePHP: the rapid development php f

301 Redirect with Server Webroot Setup

2009-06-08 Thread jabocs
I have a quick question... My server is setup with the Core and App directories setup NOT in the root httpdocs directory of the domain. The only thing in my httpdocs directory is my webroot. So the .htaccess of my root domain is: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d

Re: orderedBehavior 2.1.2 - Bug in afterdelete function?

2009-06-08 Thread mig_akira
The bug is in line 138, function afterdelete(). TO fix it, we must change from $action = array($this->settings['field'] => $this->settings['field'] . ' - 1'); to $action = array($this->settings['field'] => '`'.$this->settings['field'] . '` - 1'); Thanks! mig_akira wrote: > > Hello everyone.

Share a hasMany association ?

2009-06-08 Thread iFeghali
Hello All, I would love some feedback in the following design: Model Customers hasMany Telephones Model Suppliers hasMany Telephones Table telephones alternative (a): customer_id, supplier_id, phone# Table telephones alternative (b): foreign_key, phone# Given that all my keys are UIDS, AFAIK

password data is being lost

2009-06-08 Thread Michael Gaiser
I am trying to authenticate the login, and the username makes it to the user controller, but for some reason, the passord is empty. In the before filter of the app controller, everything is there, but when I look at the data in the login function, the password is blank. Any ideas? Here is the bef

OnError on AppModel

2009-06-08 Thread marco.rizze...@gmail.com
Hi I have this strange behaviour that I can't to understand. I would try to use the onError callback function. Now If i set the onError function inside a model it works fine. If I set the onError function inside AppModel It doesn't work. Is it someone can help me about this? --~--~-~--~

Re: missing post

2009-06-08 Thread Martin Westin
I have noticed problems with google groups (the service, not specific groups) the past few weeks. Most notably my profile page has not been updated since may 27. So I have a really hard time finding things I asked and answered a few days ago when I wake up in the morning. Not sure if it is relate

how to make payment module in cakephp

2009-06-08 Thread mona
I want to make payment module for my site i wan't connectivity with paypal and in my site i want to make different plans so cananybody tell me how to begin with paypal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

how to use wordpress forum in cakephp

2009-06-08 Thread mona
Hello friends can anybody tell me how to use wordpress forum in cakephp i wan't to place wordpress forum outside the app folder now it is showing error message missing controller so please how to solve this problem.my .htaccess file is as follows RewriteEngine on RewriteRule^$

Re: Problem with saveField()

2009-06-08 Thread Snirre
Just a SELECT query. On 8 Juni, 00:55, Miles J wrote: > Is a query ran in the output at the bottom? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

Re: Postgresql unix socket

2009-06-08 Thread Martin Westin
I have never used Postgres but shouldn't you specify only the folder where the socket is located for Postgres? >From what I can read of how the connection works you should: host == folder to socket port == null The manual page you link to describes database configs in general. My interpretation

Re: bug in recursive?

2009-06-08 Thread Martin Westin
If you are querying Category you specify the order for Catrgory in the find, using order like normal. The SubCategory data will (should) use the order specified in the relationship written in the Category model and the order for Item should by default be what is defined in SubCategory. Using Cont

Postgresql unix socket

2009-06-08 Thread die...@be
Hi, is it just me, or does connecting to a postgresql database through a unix socket not work? The documentation (http://book.cakephp.org/view/40/Database- Configuration) says I can put the socket path in the 'port' field of the database config, so I did that: var $production = array(

Problem with associated model and form->dateTime

2009-06-08 Thread Braindead
Hi all, I've a problem with associated models and form->dateTime. I have the following models: User belongsTo Group hasOne Detail. Now I want to edit User, Group and Profile in one form. User and Group work without any problem, but there is a problem with the field foundation_date of the Detail

Re: bug in recursive?

2009-06-08 Thread fain182
> Another hint: > When the data is not joined you can also do "dynamic" ordering on the > related data (not the primary data by the related values though) using > Containable Behaviour. i have model like this: category hasmany subcategory hasmany items.. i want to order items by category and subca

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-08 Thread Anna P
Thank you for suggestion, but that doesn't seem to work either. Still when I enter .com.pl it doesn't redirect me to .pl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Re: A good helper for cake 1.2 for Datepicker?

2009-06-08 Thread mmalca
You can also check http://www.lilcake.net/lilblogs/cakephp/datepicker-for-cakephp-s-splitted-datetime-controls On Jun 4, 10:11 am, Franco Tampieri wrote: > Finally I foud It: > > http://bakery.cakephp.org/articles/view/using-the-unobtrusive-date-pi... > > This is the best datepicker for cake 1.

missing post

2009-06-08 Thread dflow
i have been posting this subject: cakephp setup - Missing Controller error and it just disappeared here is a record of the post http://osdir.com/ml/CakePHP/2009-06/msg00227.html what is wrong with the group? thanks --~--~-~--~~~---~--~~ You received this message

Re: Model + 2x behaviors = headache :(

2009-06-08 Thread Ernesto
ops sry i wrote the code straight. in my cake app all beforeSaves returns TRUE On 6 Giu, 20:41, brian wrote: > You must return true or false from beforeSave(). > > > > On Fri, Jun 5, 2009 at 11:07 AM, Ernesto wrote: > > > Hello. > > > i have a model that acts as "AutoCode" and "AutoDate" > > >

Re: Accounting Application with CakePHP

2009-06-08 Thread Martin Westin
If you have a good feeling about Cake: Go for it! Dealing with complex data relationships is one of the areas where a quality framework (CakePHP) will really help you stay sane. Associations are 90% automatic once setup. (you might find one or two situations where you want to use your own query) T

Re: bug in recursive?

2009-06-08 Thread Martin Westin
Another hint: When the data is not joined you can also do "dynamic" ordering on the related data (not the primary data by the related values though) using Containable Behaviour. On Jun 7, 10:04 pm, fain182 wrote: > > In your Sito model, set your default sort order like so: > > >    var $belon