Re: Novo projeto de SCM e administração de projeto

2007-12-27 Thread Juan Basso
Opa, magavilha! Toda ajuda é bem vinda. :) Me adicione no MSN, meu ID é juan na argafacil.com.br. Abraços, Juan Basso Bill escreveu: Ol� Juan, �tima iniciativa, quando vc havia comentado sobre o trac aqui no grupo, eu vasculhei a net atr�s de algum sistema semelhante em PHP, e como vc

Re: Menu System Help - Render Element and Model Functions?

2007-12-27 Thread Adam Royle
In my menu helper I take in a nested array instead of using methods on the helper. This means you can make the array of data in your model or controller (or view), and then pass it to your helper to render. There are examples out there that do this. Cheers, Adam On Dec 27, 8:06 am, BFox [EMAIL

Undefined index in app_controller

2007-12-27 Thread bhushan A
I am getting error as Undefined index error in app_controller.php when I am trying to move on page which requires database connection. What configuration do i need to do more? Please reply me on [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: Undefined index in app_controller

2007-12-27 Thread powtac
Did you changed anything at your database(configuration)? --~--~-~--~~~---~--~~ 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,

Re: CakePHP on a Apache alias, example.com/cakewww/ - HELP!

2007-12-27 Thread Kjell Bublitz
I don't fully understand your problem, or what you are trying to show everyone, but: Did you know that you can (and should) map the DocumentRoot to /cake_1x/[app]/webroot/? That way, the libs are not public and the url rewriting via .htaccess to /js, /img, /files and /css becomes obsolete,

add form in index.ctp

2007-12-27 Thread krr
php version: 4.4.2 cakephp: 1.2 I have 2 models, User and Message. User is for authenticating users and Message are the messages from users. Message belongsTo User. messages table fields message (message body) user_id (foreign key to users, auto filled from session) created_date (current

Problem with FormHelper in cake1.2.0.5875

2007-12-27 Thread stefano
Hello i have a litle problem with FormHelper in cake1.2 :P i have this in my view tr tdAño publicación/td td?= $form-year('year',1970,date('Y'), 2007,array('label'=false)); ?/td /tr

Re: add form in index.ctp

2007-12-27 Thread hydra12
I haven't tested this (away from my dev computer for Christmas), but I think that $form-input without any options is your problem. If you don't give it any options, cake has to guess at what kind of input you want. Since message belongs to user, cake thinks you want a select box. Try this:

Re: Having problems using scaffolding n acl

2007-12-27 Thread Jonathan
well, i did try those things they do in the article, but now i remember what is wrong and why that does not work for me. they use $components = array('acl') y the AppController, that also overwrites the Aro class, making the associations impossible to use. I think i'll try another way to do this

Re: Problem with FormHelper in cake1.2.0.5875

2007-12-27 Thread Ron Chaplin
Hello, http://tempdocs.cakephp.org/#TOC150693 Explains the options and format for the $form-year tag. year(string $fieldName, int $minYear, int $maxYear, mixed $selected, array $attributes, boolean $showEmpty) Creates a select element populated with the years from $minYear to $maxYear, with the

share views between actions?

2007-12-27 Thread subtropolis
CakePHP 1.2.x, PHP 5.1.4, Postgres8.1 I've a controller for an archive for which i need to make the default view display the data for the present month. The view action displays certain data given a date (for clarity's sake, i'll call my view action foo here): Everything aside from the

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 1:41 PM, subtropolis [EMAIL PROTECTED] wrote: CakePHP 1.2.x, PHP 5.1.4, Postgres8.1 I've a controller for an archive for which i need to make the default view display the data for the present month. The view action displays certain data given a date (for clarity's sake,

Re: share views between actions?

2007-12-27 Thread Pablo Viojo
Try: $this-autoRender=false; $this-render('foo'); in your controller action Also, see the render definition[1] Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://api.cakephp.org/1.2/class_controller.html#90046e6b62c91452a987c9573372c2ac On Dec 27, 2007 3:41 PM,

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 2:07 PM, Chris Hartjes [EMAIL PROTECTED] wrote: Let be the first person to say to you... huh?!? I'm assuming you want to get the output of your foo() class into a view? You need this in your index() action if you are determined to not use a view: function index() {

Question about validation

2007-12-27 Thread Ldg27
I am trying to implement validation for my app, with this code: var $validate = array( 'name' = array( 'rule_index' = array( 'rule' = 'alphanumeric',

Re: PHP Version 6 compatibilty

2007-12-27 Thread Tijs Teulings
i do wonder sometimes how many people still use Cake on PHP 4... i personally would not mind if 1.2 was the last Cake release to support PHP 4. Op 21 dec 2007, om 17:21 heeft Chris Hartjes het volgende geschreven: On Dec 21, 2007 11:14 AM, bingomanatee [EMAIL PROTECTED] wrote: It

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 4:07 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 27, 2007 3:07 PM, subtropolis zijn [EMAIL PROTECTED] wrote: My controller: function index() { $this-autoRender=false; $this-set('publish_date', date('Y-M')); $this-render('view'); }

Re: share views between actions?

2007-12-27 Thread subtropolis zijn
On Dec 27, 2007 3:52 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 27, 2007 2:45 PM, subtropolis zijn [EMAIL PROTECTED] wrote: Let me be the first to respond that that does not work. In any case, no, I do not have a foo class. See the Missing View error part of my query. *sigh*

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 2:45 PM, subtropolis zijn [EMAIL PROTECTED] wrote: Let me be the first to respond that that does not work. In any case, no, I do not have a foo class. See the Missing View error part of my query. *sigh* It was simply an example of how to output something in an action in a

Re: PHP Version 6 compatibilty

2007-12-27 Thread Samuel DeVore
On Dec 27, 2007 2:22 PM, Tijs Teulings [EMAIL PROTECTED] wrote: i do wonder sometimes how many people still use Cake on PHP 4... i personally would not mind if 1.2 was the last Cake release to support PHP 4. Due to constraints of my clients I have 12 deployments on php 4 (9 are cake based

HABTM issue

2007-12-27 Thread [EMAIL PROTECTED]
Hello, I have two models - User and Interest. They are linked using HABTM association, so Users HABTM Interests and Interests HABTM Users. When i'm trying to do: $this-Interest-findAll(); then I see main query from table corresponding to interests, and bunch of queries from users table. I

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
On Dec 27, 2007 3:07 PM, subtropolis zijn [EMAIL PROTECTED] wrote: My controller: function index() { $this-autoRender=false; $this-set('publish_date', date('Y-M')); $this-render('view'); } function view() { $this-pageTitle = 'The Archive: ' . $this-publish_date;

Re: share views between actions?

2007-12-27 Thread Chris Hartjes
The Cake documentation is rather limited, IMHO. In any case, if you'd paid more attention to what I was asking you'd immediately understand why these replies of yours are off-base. I have been paying attention and still couldn't figure out what you are trying to do. But that's probably

Re: Question about validation

2007-12-27 Thread Ldg27
Also this ain't working for validation of file input: Model file, using cake 1.2: var $validate = array( 'file' = array( 'required' = VALID_NOT_EMPTY, 'size' =

Re: Causes of Model::Save() Fail

2007-12-27 Thread ProFire
True True! It's still best to look at the source code to find out the possible errors. Is there a way to detect and output errors when they occur? Like if I wanted to save, but no insert/update query was called, I would like an output saying insert fail because XXX is null or something

CakeFest

2007-12-27 Thread Gwoo
We hope everyone had a great holiday. We wanted to let you know about some plans for the new year. One of the most exciting will certainly be CakeFest. We hope you can join us. Please post comments on the bakery. Here is the announcement:

Editing/Saving to another table, HABTM: belongsTo

2007-12-27 Thread Louie Miranda
I have two sql tables: 1. auth_users - primary_key: auth_user_id 2. profiles - association field: auth_user_id means of HABTM, belongsTo. I was able to view and display data on my view. But, editing and saving is a little different to me. I don't know how to proceed. Here's my edit function..

Re: CakePHP on a Apache alias, example.com/cakewww/ - HELP!

2007-12-27 Thread Louie Miranda
Which part did you not understand? Basically, i installed cakephp on a folder. Which is /cakewww/. Configured Apache Directory /www/cakewww/ and set AllowOverride to All. If you type it on a url: www.example.com/cakewww/. The page is saying 404. I edited /www/cakewww/.htaccess and add this

Re: add form in index.ctp

2007-12-27 Thread krr
I tried it, didn't work. I think the problem is because the field name is the same as the model. Since the index page has data(the result set) associated with 'messages' variable, the field may be getting displayed as dropdown instead of textbox. For the time being, I have found a workaround.

CakePHP Super Feed

2007-12-27 Thread Sharan
Hello Everybody, I've created a new feed regarding cakephp using Yahoo Pipes. You can access the feed at http://feeds.feedburner.com/cakephp . It contains feeds from all main cake blogs (such as cakebaker, at the keyboard, bakery, cake core team blogs) PLUS cakephp related posts from folks