Re: Multiple Checkboxes

2008-03-04 Thread Hanzgroove
Unfortunately upgrading isn't a possibility right now but I'll check out that helper. Thanks Jon. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: short answer question: how to create a function definition/call

2008-03-04 Thread Claudia
Hi there This would be way easier to answer if you would post the code where you define the function and where you call it. Generally you would call such a function like this: $this-User-MYFUNC() $this is the Userscontroller, the controller has the attached model as property, so you can access

Which CakePHP version should I use?

2008-03-04 Thread Reza Muhammad
Hi guys, I was just reading about CakePHP, and I was thinking to use CakePHP for my web applications, as it looks fun and easy to code. What I would like to know is, which version should I use? I know the latest stable version is still 1.1, yet alot of articles / tutorials I found on bakery are

design guidance with respect to cakephp's automagic

2008-03-04 Thread chefsmart
Hi all, I just started out with cakePHP and am quite impressed by how much can be achieved in a short time. I'm stuck with a design issue and need some guidance. Please. Let's say I have two models: 1) Counsellor 2) Coordinator. There is a third model called Agency. An Agency can only be

mass email component for cakephp

2008-03-04 Thread bob
hi i need a cakephp email component that can do multi threaded emailing, or a scheduling system. Preferably the email component can scale well to send 1000+ and even 1+ emails per few hours (or day if this is the best it can do). Does anybody know if the CakePHP emailcomponent has been tested

Re: Which CakePHP version should I use?

2008-03-04 Thread Dardo Sordi Bogado
Hi guys, Hi, welcome to cakephp. I was just reading about CakePHP, and I was thinking to use CakePHP for my web applications, as it looks fun and easy to code. What I would like to know is, which version should I use? I know the latest stable version is still 1.1, yet alot of

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread Dardo Sordi Bogado
I would go using a creator_id and creator_class, then use one as the foreingKey and the other as a condition in the associations. On Tue, Mar 4, 2008 at 7:31 AM, chefsmart [EMAIL PROTECTED] wrote: Hi all, I just started out with cakePHP and am quite impressed by how much can be achieved

Pagination of temporary tables

2008-03-04 Thread leo
I have two problems (that I wish to talk about): 1. I need to paginate the results from a temporary table. 2. I need to incorporate a SELECT DISTINCT clause into the paginator query. Has anyone done either of these two or can anybody offer pointers as to what I should do? So far, I have

Re: URL mapping?

2008-03-04 Thread Dardo Sordi Bogado
Also, have a look at Admin.routing in app/config/core.php , you can find more here: http://book.cakephp.org On Mon, Mar 3, 2008 at 11:45 PM, Adam Royle [EMAIL PROTECTED] wrote: You can do that, but then you need to work around the multiple controllers issue. I don't bother these days since

Re: Pagination of temporary tables

2008-03-04 Thread Dardo Sordi Bogado
Try implementing Model::paginate() and Model::paginateCount(). On Tue, Mar 4, 2008 at 9:29 AM, leo [EMAIL PROTECTED] wrote: I have two problems (that I wish to talk about): 1. I need to paginate the results from a temporary table. 2. I need to incorporate a SELECT DISTINCT clause into

Re: Semi Basic Cache Question

2008-03-04 Thread Dardo Sordi Bogado
You can specify it to cache an action, so it will cache every request /jobs/item/$id . The manual says that you can specify to cache an action for an specific id, for the entire action, or the controller. On Mon, Mar 3, 2008 at 9:50 PM, rpupkin77 [EMAIL PROTECTED] wrote: Hi, I am looking

Re: mass email component for cakephp

2008-03-04 Thread Dardo Sordi Bogado
That kind of mailing will probably need a cron script. Look at building a custom cake shell. On Tue, Mar 4, 2008 at 8:37 AM, bob [EMAIL PROTECTED] wrote: hi i need a cakephp email component that can do multi threaded emailing, or a scheduling system. Preferably the email component can scale

Add new Page

2008-03-04 Thread Salman Shafiq
I am working on an application already developed in CakePHP. When i want add new page in CakePHP applicaiton it's donot open without a login. Is there any place where i have to defined for the page Either Login required or not? Please help me out it's very urgent

Find page title?

2008-03-04 Thread Jason
I am getting no where with the documentation. function view($name = null) { $this-PageControl-name = $name; $this-set('post', $this-PageControl-read()); } This outputs the following... WHERE `PageControl`.`id` = 'index' LIMIT 1 I want it to output WHERE `PageControl`.`title`

CSS and images?

2008-03-04 Thread Jason
More noob questions. Where do I put my CSS in relation to the app folder? Where do I put my images in relation to the app folder? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Find page title?

2008-03-04 Thread Chris Hartjes
On Tue, Mar 4, 2008 at 8:12 AM, Jason [EMAIL PROTECTED] wrote: I am getting no where with the documentation. function view($name = null) { $this-PageControl-name = $name; $this-set('post', $this-PageControl-read()); } This outputs the following... WHERE

Re: CakePHP + Bake + phpDocumentor

2008-03-04 Thread Dérico Filho
Hi Nate, Ok, I am going to write it, and send it asap. tks. On Mar 4, 1:05 am, nate [EMAIL PROTECTED] wrote: Hi Dérico, enhancements are actually closed for the 1.1 branch, but we'd be happy to accept a patch that does the same for 1.2. Thanks for your efforts. On Mar 3, 10:55 pm,

Re: CSS and images?

2008-03-04 Thread avairet
Hi Jason, Basically, CSS and images should be in webroot/ccs and webroot/img directories, not in the App. Hope this helps you... BR Avairet On 4 mar, 14:59, Jason [EMAIL PROTECTED] wrote: More noob questions. Where do I put my CSS in relation to the app folder? Where do I put my images

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread chefsmart
Thanks for your input. If I understand you correctly, you're suggesting I have a creator_id column in my agencies table and another creator_class column to indicate the type of creator. I guess then I wouldn't be able to define creator_id as a foreign key. Am i getting this correctly? On Mar 4,

Re: redirect to original page

2008-03-04 Thread Bruno Bergher
REFERRER? On Mar 3, 7:41 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: AuthComponent in 1.2 does it storing the original location in the session. You can use the AuthComponent or implement something like that on your own. On Mon, Mar 3, 2008 at 6:53 AM, bob [EMAIL PROTECTED] wrote:

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread nate
$form-select() *does* auto-populate... from POST data. Just like everything else. So no, this is not a bug. The non-wrapper methods keep the magic to a necessary minimum. On Mar 4, 1:56 am, Baz [EMAIL PROTECTED] wrote: Well, that's my question: Is this is bug (oversight)? $form-text,

Form Validation on DB

2008-03-04 Thread mcphisto
Hi, I've a problem in my application. I would exclude the possibility of saving duoble data in my database. For example in this table: name, username, password I would like there couldn't be 2 users with the same username. How can I do it?

RE: Form Validation on DB

2008-03-04 Thread Christian Winther
Use the docs luke ! book.cakephp.org and tempdocs.cakephp.org - check data validation -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mcphisto Sent: 4. marts 2008 16:18 To: Cake PHP Subject: Form Validation on DB Hi, I've a problem in my

Re: Form Validation on DB

2008-03-04 Thread mcphisto
The problem si that book.cakephp.org and tempdocs.cakephp.org are down... On 4 Mar, 16:26, Christian Winther [EMAIL PROTECTED] wrote: Use the docs luke ! book.cakephp.org and tempdocs.cakephp.org - check data validation -Original Message- From: cake-php@googlegroups.com

Re: Form Validation on DB

2008-03-04 Thread mcphisto
And I've a bigger problem. Hope to be clear in my explanation. Well I built an application with workers, places, relations and presences made like this: Place table: name, id -place in wich workers are working Workers table: name, lastname, id Relations: worker_id, place_id, id -It puts in

Re: error of memory???

2008-03-04 Thread aranworld
Thanks for the clarification. Would this be a better way of wording this error message? Unable to allocate 276481 bytes in C:\VertrigoServ\www\usa\views \layouts\default.ctp on line 55. Allowed memory size of 8388608 bytes already exhausted. -Aran On Mar 3, 3:29 pm, nate [EMAIL PROTECTED]

Re: redirect to original page

2008-03-04 Thread leveille
Are you using Auth? Try: $this-Auth-loginRedirect = Controller::referer('/see/documentation', true); http://api.cakephp.org/1.2/class_controller.html#e87c8e6edf53aadc511e3d050d71a494 On Mar 3, 3:44 am, bob [EMAIL PROTECTED] wrote: If I click on a link in my view, it redirects to the login

Inconsistent page load

2008-03-04 Thread Mike Digital Egg
Hi, I have been trying to debug this for ages but have come up with a blank. The problem I am having is that sometimes when I call admin pages in my app I get a 500 error, I am doing print_r( $this-params ) in the beforeFilter. Sometimes it gives me this: Array ( [pass] = Array ( ) [named] =

RE: model instance to form helper

2008-03-04 Thread Christian Winther
I'm not sure what you mean, but you COULD do this in the controller: $this-data['Alias'] = array('domain' = $search['domain'], .); That will make FormHelper use those variables automagic as if they came from the Model :) -Original Message- From: cake-php@googlegroups.com

Re: Auth in 1.2 - get current user?

2008-03-04 Thread jelmer
Interesting, I was about to post the same questions, can anyone help us out?? 3) ACL can be used to manage usergroups and actions and permissions related to that, once you've read the manual on ACL you'll get the idea. I think there are a few tutorials on combining the Auth component and ACL as

Re: Site Construction.. Integrating Views + Footer/Header/Menus etc?

2008-03-04 Thread Johan @ Notitia.nl
Well, there are thousands of ways to render information at your screen, but here are some 'CakeCorrect' methods: 1) Put all the code at your view (fastest to render, but hard to maintain) 2) Put all the snippets in elements and print those at your view (way slower, but easy to edit. also

model instance to form helper

2008-03-04 Thread gbk *
hi, my view contains a list generated by a paginator and a filter form: ?php echo $form-create('Alias', array('action'='index')); ? ?php echo $form-input('domain', array('value' = $search['domain'], 'options' = array_merge(array( = --), $domains))); ? ?php echo $form-input('sendto',

Re: question about phpThumb

2008-03-04 Thread botafogo
did you experiencied any problem to setup the phpThumb Component? I had some bad errors just adding the component to the controller.. [EMAIL PROTECTED] escreveu: It is a PHP library for generating thumbnails, but I'm using this component:

RE: Site Construction.. Integrating Views + Footer/Header/Menus etc?

2008-03-04 Thread Christian Winther
Or 1a) Use view and cache them (Super fast) 2a) Use elements and cache them (Faster than rendering a normal view without cache) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johan @ Notitia.nl Sent: 4. marts 2008 17:17 To: Cake PHP

RE: Inconsistent page load

2008-03-04 Thread Christian Winther
What version of PHP ? And do you use php_admin_value open_basedir or other fancy settings in your apache config? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Digital Egg Sent: 4. marts 2008 17:05 To: Cake PHP Subject: Inconsistent page

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread b logica
That's what I'm doing for a couple of my tables. I have a foreign_key field and a model field. It does mean that one cannot define a proper foreign key so you'll need to write some logic to handle that association. On Tue, Mar 4, 2008 at 8:01 AM, chefsmart [EMAIL PROTECTED] wrote: Thanks for

Re: Inconsistent page load

2008-03-04 Thread Mike Digital Egg
Hi Christian, You know sometimes all it takes is for someone to ask a question and it all clicks! We are on site5 and the default is php 4.3.8, I just added AddHandler application/x-httpd-php5 .php to my .htaccess and I don't seem to be having the problem any more. Cheers for responding. Mike

Re: Trying to fetch field from another model in the view

2008-03-04 Thread b logica
I can see how that would work but it's not very efficient. I think you should still try to get Cake to select the name from the users table in the first place. With Bindable behavior this should be a snap. On Mon, Mar 3, 2008 at 8:37 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah, I've

view caching problem

2008-03-04 Thread Claudia
Hi there I have a question regarding view caching: I have a controller foo where I want to cache the result of action bar. Therefore I put a line $this-cacheAction = 3600; in the action. The cache file is created fine, but when I fetch a page from the cache it takes almost as much time as

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread Dardo Sordi Bogado
You can use it as foreign key and specify that the creator_class = 'something' in the conditions (you can put condiftions to associations). On Tue, Mar 4, 2008 at 3:03 PM, b logica [EMAIL PROTECTED] wrote: That's what I'm doing for a couple of my tables. I have a foreign_key field and a

RE: Form Validation on DB

2008-03-04 Thread Christian Winther
They are both online again now :) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mcphisto Sent: 4. marts 2008 16:45 To: Cake PHP Subject: Re: Form Validation on DB The problem si that book.cakephp.org and tempdocs.cakephp.org are down... On 4

Re: CSS and images?

2008-03-04 Thread b logica
Although, if any of those images are referenced only in your CSS (backgrounds, header image replacement, etc) you should place them in a directory inside of the CSS dir and reference them relatively, like so: background: url(your_css_img_dir/your_img.png); regular images: app/webroot/img/

Re: Form Validation on DB

2008-03-04 Thread mcphisto
Yes, they're online... Only a problem: I've a version 1.19 and for this version there's no documentation: http://book.cakephp.org/it/view/318/data-validation :-( On 4 Mar, 17:40, Christian Winther [EMAIL PROTECTED] wrote: They are both online again now :) -Original Message- From:

$useTable not working

2008-03-04 Thread Christopher Hazlett
I need to base a model on a SQL View so I've set $useTable=false. All I really want to do is pull this multi-join view from the DB instead of using the application to try and build a very custom query. Even though I've set the $useTable variable to false, Cake still looks for the table

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread b logica
True. But I meant in the database itself. Although, one can create a unique index on (model, foreign_key). On Tue, Mar 4, 2008 at 12:30 PM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: You can use it as foreign key and specify that the creator_class = 'something' in the conditions (you can

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread Dardo Sordi Bogado
On Tue, Mar 4, 2008 at 3:39 PM, b logica [EMAIL PROTECTED] wrote: True. But I meant in the database itself. Although, one can create a unique index on (model, foreign_key). Not if an Counsellor (or a Coordinator) can create more than one Agency. On Tue, Mar 4, 2008 at 12:30 PM, Dardo

RE: view caching problem

2008-03-04 Thread Christian Winther
Hello, I believe that the code is in the file to make sure that Components ect. are run even if the page is cached (Might be useful for auth amongst many things). https://trac.cakephp.org/ticket/4245 and https://trac.cakephp.org/ticket/2329 discusses this issue already. I have made a

Re: Auth in 1.2 - get current user?

2008-03-04 Thread Dardo Sordi Bogado
First read the manual (it does a good job explaining the concepts), then: http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/ http://lemoncake.wordpress.com/2007/07/19/acl-with-groups/ It works wonderful. On Tue, Mar 4, 2008 at 1:36 PM, jelmer [EMAIL PROTECTED]

RE: Form Validation on DB

2008-03-04 Thread Christian Winther
Its in tempdocs.cakephp.org then -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mcphisto Sent: 4. marts 2008 18:35 To: Cake PHP Subject: Re: Form Validation on DB Yes, they're online... Only a problem: I've a version 1.19 and for this version

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread Baz
I don't think I'm talking bout POST data. I'm taking about, through setting a variable via $this-MyModel-find('list'). All the other fields get set directly through $this-data. However, I'm talking specifically about: $this-select('group_id') as compared to: $this-input('group_id',

Re: redirecting users from domain.com to www.domain.com

2008-03-04 Thread Richard
I found this thread useful ...just thought I'd add to it incase anyone else needs this.This is how I have my .htaccess file setup in www/ IfModule mod_rewrite.c RewriteEngine on RewriteCond %{http_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

Bindable with conditions. Any way to get more accurate data?

2008-03-04 Thread teknoid
Hi, I am using bindable behavior and trying to construct a conditional query, by passing conditions to mutiple models. For example, I have this query: $result = $this-User-find('all', array('restrict' = array( 'Assignment' =

Re: $useTable not working

2008-03-04 Thread leveille
Hi, Chris. You don't have to remove the database relation in order to build your own query. Take a look at: http://book.cakephp.org/view/73/retrieving-your-data Specifically, look for the query method. Looking at your code I'm afraid it is obvious that you are working too hard. Remember,

Bakery Article Submission - Broken?

2008-03-04 Thread Doug @ Straw Dogs
I'm trying to submit an article/component in the Bakery but its returning a blank screen on submission. I'd give more information but thats as much as there is. Nothing. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

How to make bindable behavior work in PHP4

2008-03-04 Thread keymaster
Has anyone been successful in getting the Bindable behavior in the bakery to work in PHP4? Did you have to change anything? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread nate
$form-select (and therefore $form-input(..., array(type = select)); by extension) *are* populated from $this-data, just like everything else (i.e. all other form field types). The only thing different about a select input field is the need to generate available options. That's where you're

Re: last created, last modified

2008-03-04 Thread Brad Beattie
Yeah, I see the same behaviour. The modified field is only updated if it isn't already set in the model's data. Building a work-around with beforeSave or beforeValidates won't work as model.php's save function builds its created/modified/updated information before these callbacks. Grr...

Re: last created, last modified

2008-03-04 Thread Brad Beattie
Hrm. Found a solution. In your app_model.php, add a function as follows: function save($data = null, $validate = true, $fieldList = array()) { unset($this-data[$this-alias]['modified']); return parent::save($data, $validate,

phpThumb component + redirect(Auth?) problem

2008-03-04 Thread botafogo
Hi everyone, i'm trying to use ThumbComponent from http://bakery.cakephp.org/articles/view/phpthumb-component (the enhanced version, actually) in my cake1.2 app, but there is some redirect problem: 1) using Auth Thumb Components in the controller, calling any actions get this error: Warning

Multiple instances of components

2008-03-04 Thread Danomite
I need a way to have one controller have multiple instances of a component. Is there a way to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

How to load helpers for elements?

2008-03-04 Thread Mech7
I am currently doing it in the app_controller but the list is growing hehe.. is there a more efficient way to load them in specific elements? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Multiple instances of components

2008-03-04 Thread jonknee
This should work: ?php $this-EmailTwo = new EmailComponent(); ? Just make sure you have the component listed in the Controller::components array. On Mar 4, 4:25 pm, Danomite [EMAIL PROTECTED] wrote: I need a way to have one controller have multiple instances of a component.  Is there a way

Re: How to load helpers for elements?

2008-03-04 Thread jonknee
For common elements (stuff that would be in the sidebar or whatever) app_controller is your best bet. For less common ones just include the helper in the controller that the elements are being used in. Unless you have a huge number of controllers it should be pretty simple. On Mar 4, 5:51 pm,

Re: Which CakePHP version should I use?

2008-03-04 Thread jonknee
I'd definitely go for 1.2 using PHP 5. On Mar 4, 3:32 am, Reza Muhammad [EMAIL PROTECTED] wrote: Hi guys, I was just reading about CakePHP, and I was thinking to use CakePHP for my web applications, as it looks fun and easy to code.  What I would like to know is, which version should I use?

Re: Multiple instances of components

2008-03-04 Thread danomite
haha! i was hoping for a more Cake way ... but that works. Thanks! On Mar 4, 3:03 pm, jonknee [EMAIL PROTECTED] wrote: This should work: ?php $this-EmailTwo = new EmailComponent(); ? Just make sure you have the component listed in the Controller::components array. On Mar 4, 4:25 pm,

ImagePNG() in element/requestAction()

2008-03-04 Thread [EMAIL PROTECTED]
I'm moving some existing (working) code from an old site into a new Cake version. It's an img tag with src pointing to a URL that outputs graph images. I chose to create an element with the image tag inside and the src pointing to a requestAction(). But it's not working. I get error: The image

Re: phpThumb component + redirect(Auth?) problem

2008-03-04 Thread the_woodsman
Warning (2): Cannot modify header information - headers already sent by (output started at D:\Programas\xampp\htdocs\kanja\app\controllers \components\thumb.php:1) [CORE\cake\libs\controller\controller.php, line 546] As this is line 1 of the file, this sounds like there's white space before

Re: Complex findAll/Count, and specifying conditions on the HABTM

2008-03-04 Thread Bob Mattax
Here is a link to the code for my classes. http://bin.cakephp.org/saved/29458 On Mar 2, 8:04 pm, Bob Mattax [EMAIL PROTECTED] wrote: I'm trying to write an app for managing some of rental properties. Here is a basic outline of the models I'm trying to work with right now.  I'm working on

One component for every element? Is this right?

2008-03-04 Thread Chris
At my office, we are working to completely rebuild our existing site, www.sportingnews.com. We have mocked up a rough example of a page, www.sportingnews.com/nfl using cakephp and we are now ready move on to building a full fledged cms/blog/forum system. My main question is this. We have

Re: phpThumb component + redirect(Auth?) problem

2008-03-04 Thread botafogo
On 5 Mar, 01:18, the_woodsman [EMAIL PROTECTED] wrote: As this is line 1 of the file, this sounds like there's white space no, it wasn't. I've checked every involved file at the beginning and the end. But it was something similar, just converted the thumb.php file to windows format and then

RE: Multiple instances of components

2008-03-04 Thread Christian Winther
Why would you have the Controller have different instances of the same Component? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danomite Sent: 4. marts 2008 22:26 To: Cake PHP Subject: Multiple instances of components I need a way to have

RE: Bakery Article Submission - Broken?

2008-03-04 Thread Christian Winther
Drop a ticket on trac. Their servers have had quite a few problems today -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug @ Straw Dogs Sent: 4. marts 2008 20:04 To: Cake PHP Subject: Bakery Article Submission - Broken? I'm trying to submit

Re: Complex findAll/Count, and specifying conditions on the HABTM

2008-03-04 Thread Bob Mattax
I just noticed I copied something wrong. This is correct: http://bin.cakephp.org/saved/29464 On Mar 4, 8:25 pm, Bob Mattax [EMAIL PROTECTED] wrote: Here is a link to the code for my classes.http://bin.cakephp.org/saved/29458 On Mar 2, 8:04 pm, Bob Mattax [EMAIL PROTECTED] wrote: I'm

Re: Bindable with conditions. Any way to get more accurate data?

2008-03-04 Thread b logica
It's difficult to say what's going on there. What are you trying to select? Maybe you should post an example of the data you want (please normalise tabs to spaces, though--this is really dificult to decipher). Also, the SQL that Cake is generating, for comparison. You could also have a look at

HABTM read() then save() bug?

2008-03-04 Thread [EMAIL PROTECTED]
I'm getting some weird behavior when a read() precedes a save(). There is a HABTM 'with' relationship CommunityBulletin that joins Community and Bulletin. When I do: $this-Bulletin-read(null, $bulletin_id); $this-Bulletin-id = $another_bulletin_id;

Re: Bakery Article Submission - Broken?

2008-03-04 Thread Samuel DeVore
open a ticket on trac.cakephp.org On Tue, Mar 4, 2008 at 12:04 PM, Doug @ Straw Dogs [EMAIL PROTECTED] wrote: I'm trying to submit an article/component in the Bakery but its returning a blank screen on submission. I'd give more information but thats as much as there is. Nothing. Any

Re: error of memory???

2008-03-04 Thread Baz
Isn't this a PHP error? Why are we talking bout wording the error message? On Tue, Mar 4, 2008 at 10:04 AM, aranworld [EMAIL PROTECTED] wrote: Thanks for the clarification. Would this be a better way of wording this error message? Unable to allocate 276481 bytes in

Re: enum

2008-03-04 Thread George C
On Jan 25, 8:32 am, MonkeyGirl [EMAIL PROTECTED] wrote: How would you get the enum values from the model or controller? By far the easiest way is to go tohttp://cakeforge.org/snippet/detail.php?type=snippetid=112 and copy and paste the code that's there into app_model.php, then you can

Re: design guidance with respect to cakephp's automagic

2008-03-04 Thread chefsmart
It does take away cakePHP's automagic right. How do I go about implementing this in the cakePHP model and controller? On Mar 4, 10:39 pm, b logica [EMAIL PROTECTED] wrote: True. But I meant in the database itself. Although, one can create a unique index on (model, foreign_key). On Tue, Mar

Re: Bindable with conditions. Any way to get more accurate data?

2008-03-04 Thread Baz
I'm guessing User hasMany Assignements? You're looking for an INNER JOIN. Currently, CakePHP doesn't support this. You can simulate it, but binding a dummy hasOne on your User model with the Assignment. You'd need to call it something else (hasOne AssignmentDummy), and add a condition:

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread Baz
I understand that they're not supposed to do the same thing. However, I can assure you that a $form-select('group_id') does not get populated. Not sure what the issue is. I discovered this while trying to used a select list without a label. I was forced to use: $form-input('group_id',

Re: How to load helpers for elements?

2008-03-04 Thread Mech7
But what if i use them on the home page? On Mar 4, 11:58 pm, jonknee [EMAIL PROTECTED] wrote: For common elements (stuff that would be in the sidebar or whatever) app_controller is your best bet. For less common ones just include the helper in the controller that the elements are being used

Re: HABTM read() then save() bug?

2008-03-04 Thread [EMAIL PROTECTED]
I've realized the Model-data that read() sets is not in the format that save() wants it for HABTM data, so it gets messed up. On Mar 4, 10:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm getting some weird behavior when a read() precedes a save(). There is a HABTM 'with' relationship

Re: How to make bindable behavior work in PHP4

2008-03-04 Thread keymaster
Doesn't unbind any models. Also doesn't automatically compute recursiveness level and bind what's in the restrict list. Are you using it successfully with PHP4? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread Baz
Need to stop banging your head nate, not really good for the frontal lobes. I'm by no means a PHP expert. I also didn't think I need to debug the code to figure out the 'subtle' different between autopopulation of options vs. values. I'm telling you what I see from a beginner's standpoint. All

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-04 Thread nate
*Bangs head against desk*. I can't make this a whole lot clearer. What I am telling you is this: When you either: (a) submit a form via POST, and you return to the form again (let's say the submission doesn't validate) *or* (b) load a record into $this-data Then: