Re: $scaffold: Display only certain fields to the user (index/view)? --psybear

2014-01-26 Thread Nishant Gupta
Hi psybear83 I have found a very interesting post on your query. you can follow the post Cakephp specific fields in scaffolding index view . here you will find new customized scaffold file with new fe

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Ludovic FERRE
Thanks Vikram, it was a user error indeed as I forgot to set the Id as primary key not null auto_imcrement! Le 8 mai 2012 15:18, "vikram sharma" a écrit : > hi Ludovic Plese check these in your site i hope these work for you. > >1. Make sure you set up your DATABASE_CONFIG is setup correctly

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread vikram sharma
hi Ludovic Plese check these in your site i hope these work for you. 1. Make sure you set up your DATABASE_CONFIG is setup correctly (database.php) 2. Check that your tmp folder (and all of it’s sub folders) are writable (at least chmod 666 on Linux), 3. While you’re there delete al

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Ludovic FERRE
Ah ah. It's all fixed. Thanks for the quick check. I'll remember that one! On Tue, May 8, 2012 at 2:13 PM, Ludovic FERRE wrote: > Dang, of course I should. Let me correct that now :D. > > > > On Tue, May 8, 2012 at 2:11 PM, Ludovic FERRE wrote: > >> You are absolutely right. >> >> So should I s

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Ludovic FERRE
Dang, of course I should. Let me correct that now :D. On Tue, May 8, 2012 at 2:11 PM, Ludovic FERRE wrote: > You are absolutely right. > > So should I set the ID filed to autoincrement or would the scaffold take > care of that? > > Ludovic > > > On Tue, May 8, 2012 at 2:02 PM, Andras Kende wro

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Ludovic FERRE
You are absolutely right. So should I set the ID filed to autoincrement or would the scaffold take care of that? Ludovic On Tue, May 8, 2012 at 2:02 PM, Andras Kende wrote: > Check id field in the db > It looks like they are empty > > Andras Kende > 214 799 1177 > and...@kende.com > http://www

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Andras Kende
Check id field in the db It looks like they are empty Andras Kende 214 799 1177 and...@kende.com http://www.kende.com On May 8, 2012, at 4:07, Ludovic Ferre wrote: > I am new to CakePHP and am following the Packt Publishing book to get used to > the tool (and challenge myself following 1.2 w

Re: Scaffold Multi join tables

2012-03-05 Thread Rodrigo Rodrigues Moyle
You could name whatever you want, and use a model on this table. Em segunda-feira, 5 de março de 2012 07h49min19s UTC-3, Walter Raponi escreveu: > > Hi guys, > i finally started my first project with cake! > Have been reading a lot about it but now in real world have a great > problem! > > I'

Re: $scaffold: Display only certain fields to the user (index/view)? --psybear

2010-12-02 Thread Joshua Muheim
Thanks, Mark! I know that it's not supposed to be used in that way, but I have my reasons why I'm asking it. I noticed that I can unset keys in the Controller::viewVars['scaffoldFields'] variable to get what I want. On Thu, Dec 2, 2010 at 3:28 PM, euromark wrote: > in this case use "bake" script

Re: $scaffold: Display only certain fields to the user (index/view)? --psybear

2010-12-02 Thread euromark
in this case use "bake" scripts and customize it then scaffold is not supposed to be used in that way On 2 Dez., 12:50, psybear83 wrote: > Hey everybody > > I guess that's a newbie question, but I didn't find an answer yet... > So: is there a way to only show certain fields of a model to the user

Re: $scaffold: When overriding the index() method, I get "view for index not found"! --psybear

2010-12-01 Thread Stephen
If you want to override the scaffold actions you can see the following file: /cake/libs/scaffold.php I would strongly advise *against* doing this, you should never have to edit cake's core files and it will break your app if you ever need to update, I think the best thing to do is to use bake and

Re: scaffold isn't working

2010-03-24 Thread boobalan
Hi, The models file name should be singular form of the DB. The problem is file name, after changing the filename it works as scaffolding On Jan 28, 3:17 am, BrendonKoz wrote: > Okay, I just re-read that.  I don't know what he meant, but my last > reply will probably fix the issue. > > On Jan

Re: scaffold isn't working

2010-01-27 Thread BrendonKoz
Okay, I just re-read that. I don't know what he meant, but my last reply will probably fix the issue. On Jan 27, 11:27 am, BrendonKoz wrote: > I believe he meant the $name property within the controller. > > var $name = 'Author'; > ...should be... > var $name = 'Authors'; > > On Jan 26, 11:11 am

Re: scaffold isn't working

2010-01-27 Thread BrendonKoz
I believe he meant the $name property within the controller. var $name = 'Author'; ...should be... var $name = 'Authors'; On Jan 26, 11:11 am, euromark wrote: > but it is supposed to be plural > class BooksController extends AppController { > > On 26 Jan., 16:30, "andrei.b" wrote: > > > > > I f

Re: scaffold isn't working

2010-01-26 Thread euromark
but it is supposed to be plural class BooksController extends AppController { On 26 Jan., 16:30, "andrei.b" wrote: > I found the error. The name of the controllers was at the plural > instead of singular. > > On Jan 26, 4:56 pm, "andrei.b" wrote: > > > I did that. The select looks like this: >

Re: scaffold isn't working

2010-01-26 Thread andrei.b
I found the error. The name of the controllers was at the plural instead of singular. On Jan 26, 4:56 pm, "andrei.b" wrote: > I did that. The select looks like this: > SELECT `Book`.`id`, `Book`.`isbn`, `Book`.`title`, > `Book`.`description`, `Book`.`author_id` FROM `books` AS `Book` WHERE > 1 =

Re: scaffold isn't working

2010-01-26 Thread andrei.b
I did that. The select looks like this: SELECT `Book`.`id`, `Book`.`isbn`, `Book`.`title`, `Book`.`description`, `Book`.`author_id` FROM `books` AS `Book` WHERE 1 = 1 LIMIT 20 I use Cake 1.2.5 and php 5.3.1 if this is relevant. On Jan 26, 4:50 pm, Jeremy Burns wrote: > If it isn't already there

Re: scaffold isn't working

2010-01-26 Thread andrei.b
I already did that. The response is: SELECT `Book`.`id`, `Book`.`isbn`, `Book`.`title`, `Book`.`description`, `Book`.`author_id` FROM `books` AS `Book` WHERE 1 = 1 LIMIT 20 On Jan 26, 4:50 pm, Jeremy Burns wrote: > If it isn't already there, try turning debug to 2 as this clears the model > ca

Re: scaffold isn't working

2010-01-26 Thread Jeremy Burns
If it isn't already there, try turning debug to 2 as this clears the model cache. You can find the setting, which looks like this: Configure::write('debug', 2); ...in app/config/core.php Jeremy Burns On 26 Jan 2010, at 14:47, andrei.b wrote: > Hello, > I have 2 tables: authors(id, name, emai

Re: Scaffold and table names

2009-11-28 Thread Kerr
Yes, my model is being found. I set up a method named test both in the model and controller, and it's being picked up. On Nov 28, 12:41 pm, John Andersen wrote: > Can you confirm that CakePHP is finding and using your model and not > just using AppModel ? > Try to make a specific function in you

Re: Scaffold and table names

2009-11-28 Thread John Andersen
Can you confirm that CakePHP is finding and using your model and not just using AppModel ? Try to make a specific function in your model and call it from the controller, to confirm that your model is being used! Enjoy, John On Nov 28, 7:50 pm, Kerr wrote: > Sorry guys, please ignore, "though I

Re: Scaffold and table names

2009-11-28 Thread Dave
I apologize my mistake. var $uses = array('MODELNAME'); is for the controller. On Sat, Nov 28, 2009 at 12:50 PM, Kerr wrote: > Sorry guys, please ignore, "though I did not", in the first sentence > of my latest reply. :) > > On Nov 28, 11:49 am, Kerr wrote: > > I noted in my initial post that

Re: Scaffold and table names

2009-11-28 Thread Kerr
Sorry guys, please ignore, "though I did not", in the first sentence of my latest reply. :) On Nov 28, 11:49 am, Kerr wrote: > I noted in my initial post that I'd tried $useTable to no avail, > though I did not > > I don't see in the API where $uses is a valid option in this scenario, > however

Re: Scaffold and table names

2009-11-28 Thread Kerr
I noted in my initial post that I'd tried $useTable to no avail, though I did not I don't see in the API where $uses is a valid option in this scenario, however I do see $useTable. http://api.cakephp.org/class/model Looking at the source of /cake/libs/model.php, I see that $useTable is declared

Re: Scaffold and table names

2009-11-28 Thread Dave
its actually var $uses = array('TABLENAME'); On Sat, Nov 28, 2009 at 9:53 AM, John Andersen wrote: > Try specifying the tables name using: > > var $useTable = 'your tablename'; > > Enjoy, > John > > On Nov 28, 3:26 pm, Kerr wrote: > > @John > > > > * When the table is named invoice_statuses,

Re: Scaffold and table names

2009-11-28 Thread John Andersen
Try specifying the tables name using: var $useTable = 'your tablename'; Enjoy, John On Nov 28, 3:26 pm, Kerr wrote: > @John > > * When the table is named invoice_statuses, the error message reads, > "Error:  Database table invoicestatuses for model Invoicestatus was > not found." > > * Wh

Re: Scaffold and table names

2009-11-28 Thread Kerr
@John * When the table is named invoice_statuses, the error message reads, "Error: Database table invoicestatuses for model Invoicestatus was not found." * When the table is named invoicestatuses, the error message reads, "Error: Database table invoice_statuses for model InvoiceStatus was not f

Re: Scaffold and table names

2009-11-27 Thread Dave
It sounds like you are trying to create a HABTM join table, if so, I recommend reading the manual on how to do this through CakePHP. There should be no need to actually create a model for this table, and cake will handle all of the relationships for you =) http://book.cakephp.org/view/83/hasAndBe

Re: Scaffold and table names

2009-11-27 Thread John Andersen
Which table does CakePHP say it can't find? Is it "invoices_statuses" or "invoice_statusses"? Show the error and maybe also the model definition! Enjoy, John On Nov 25, 3:12 pm, Kerr wrote: > Hi folks, I'm using CakePHP for a new project, and I am having a great > time not having to do so muc

Re: scaffold

2009-03-23 Thread Alejandro Weintz Aguilar
Thank you guys, moving forward to Bake On Sat, 2009-03-21 at 06:43 -0700, BrianRehg wrote: > You can manually override the scaffolding by creating your own custom > actions(update, delete etc) within the controller. You can bake these > actions or you manually add them yourself. You will also be

Re: scaffold

2009-03-21 Thread BrianRehg
You can manually override the scaffolding by creating your own custom actions(update, delete etc) within the controller. You can bake these actions or you manually add them yourself. You will also be required to bake or manually create the views ,if you are overriding the dynamic scaffolding. I wo

Re: scaffold

2009-03-21 Thread Johnny
Scaffold is not supposed to be used in production environments. Use bake instead to physically create the model,view and controller files and edit those according to your needs. On Mar 20, 5:54 pm, Alejandro Weintz Aguilar wrote: > Hello, I am build a large proyect catalogs of product, like the

Re: Scaffold in RC3

2008-10-07 Thread Chen
sorry, I found that I used the old version dispather.php. And now is OK On Oct 7, 8:40 pm, Chen <[EMAIL PROTECTED]> wrote: > Hello there, >   Recently I upgrade my cake lib to 1.2rc3, then I can visit the > pages which don't exist exactly but inscaffoldname array like > 'index', 'edit' and so on.

Re: scaffold

2008-09-03 Thread fabio . sfuncia
Scaffold is wonderfuland cake is very flexible (gymnast :D) framework ;) I suggest to exclude field with beforeRender (controller) + array_diff: //example to exclude created & modified function beforeRender(){ if ($this->action=='index'){ $this->viewVars['sc

Re: scaffold

2008-09-02 Thread hydra12
The easiest way to do this is to bake your application and have bake create the default views for you. Then you can go in and edit those views any way you want. Otherwise, scaffolding is pretty much non- editable. I think you can edit the scaffold templates, but I don't know how to do that. On

Re: Scaffold Templates in 1.2 ?

2008-02-10 Thread Julio Protzek
Sorry Leo, I don't know :( 2008/2/9, Leo Brown <[EMAIL PROTECTED]>: > > > Julio > > Any idea what revision this was introduced in? > > Version 6000 didnt have it, but revision 6311 does. The reason i was > hoping to know is there there seem to be some session-related bugs in > 6311. > > Thanks guy

Re: Scaffold Templates in 1.2 ?

2008-02-09 Thread Leo Brown
Julio Any idea what revision this was introduced in? Version 6000 didnt have it, but revision 6311 does. The reason i was hoping to know is there there seem to be some session-related bugs in 6311. Thanks guys On Feb 7, 4:46 am, Julio Vinicius <[EMAIL PROTECTED]> wrote: > Hi Wood, i hope t

Re: Scaffold Templates in 1.2 ?

2008-02-06 Thread Julio Vinicius
Hi Wood, i hope this answer is not to late... The tempdos is wrong. They already changed on the svn and it will be online soon. So to customize a scaffolded view fo a specific controller they say you need to place you file here: /app/views/posts/scaffold/index.scaffold.ctp But rather, you need

Re: Scaffold Templates in 1.2 ?

2008-02-01 Thread the_woodsman
Ha ha, Nice one Chris, I probably deserved that. But listen, I did have a misnamed file in that drectory: previously called scaffold.index.ctp, now renamed, as per the tempdocs, to index.scaffold.ctp I've put this file in /app/views/scaffold, again as per the docs. I have a controller/model co

Re: Scaffold Templates in 1.2 ?

2008-02-01 Thread Chris Hartjes
On Feb 1, 2008 12:45 PM, the_woodsman <[EMAIL PROTECTED]> wrote: > > Please, don't tell me to RTFM (http://manual.cakephp.org/chapter/ > scaffolding), as that page has been wrong for yonks ( I think over a > year, even though this ticket is only a month old - > https://trac.cakephp.org/ticket/378

Re: scaffold error

2007-12-02 Thread Indian Baker
Hi, >From the look of it I'm assuming you are using a Has And Belongs To Many (HABTM) relation. For scaffolding to work properly your table names, and foreign key relations have to strictly follow the cake conventions, and your models need to have the correct relations put in Would you like to pa

Re: scaffold error

2007-11-30 Thread Luke
it outputs "app\controllers\orders_controller.php (line 41)" and an empty yellow box. I am on version 1.2.0.5875 pre-beta On Nov 30, 12:27 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > what version? > > Try debug($this->data) in beforeFilter; > > 2007/11/30, Luke <[EMAIL PROTECTED]>: > >

Re: scaffold error

2007-11-30 Thread Dardo Sordi Bogado
what version? Try debug($this->data) in beforeFilter; 2007/11/30, Luke <[EMAIL PROTECTED]>: > > I am not sure what I did, but for some reason the edit action isn't > working in any of my controllers. It keeps telling me "Invalid id for > Order::edit()". Why would it be doing that? Here is an exa

Re: scaffold Component : Scaffold::__scaffold

2007-10-15 Thread Gwoo
once you add var $scaffold you should not do anything else. --~--~-~--~~~---~--~~ 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 g

Re: scaffold ?

2007-08-27 Thread Geoff Ford
Download it, build a basic scaffolded system and see if it has what you want. Should only take about 15 mins if your are resonalbly profficient in oo php. >From memory, using your user hasMany items example, scaffolding will produce a users/view.ctp that list your items underneath the user detail

Re: Scaffold not working for belongsTo join with underscore in name

2007-07-27 Thread bingomanatee
I found the error myself -- a bad "name" value in the ItemType model class. sorry... --~--~-~--~~~---~--~~ 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 T

Re: scaffold in admin

2007-04-19 Thread hydra12
I'm not sure if I understand exactly what you want, but here goes: if you want to scaffold your admin_ views but not any of your other views, I don't think you can (officially). When you scaffold a controller, it scaffolds everything (I think). What you can do is use bake to create your basic co

Re: Scaffold & insert: session problem

2007-04-16 Thread bono
Solved, I had validate_empty in id field :) thanks John! PS. There is no way to edit own post titles here? Would be nice habit to put some status marks to them (Solved: Scaffold & insert: session problem) On Apr 17, 12:08 am, John David Anderson <[EMAIL PROTECTED]> wrote: > On Apr 16, 2007, at

Re: Scaffold & insert: session problem

2007-04-16 Thread John David Anderson
On Apr 16, 2007, at 1:59 PM, bono wrote: > > Lots of same kind of question but didn't find the answer. I have table > like this: > > CREATE TABLE 'users' ( > 'id' INT( 10 ) NOT NULL AUTO_INCREMENT , > 'username' VARCHAR( 40 ) NOT NULL , > 'password' VARCHAR( 40 ) NOT NULL , > 'email' VARCHAR( 25

Re: Scaffold with Cake-1.2.0.4798alpha

2007-04-09 Thread [EMAIL PROTECTED]
I realized that I had a default.ctp file that was not setup correctly. I removed it and the scaffold functionality worked perfectly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: scaffold view and edit actions not workign when var $uses is used

2007-02-14 Thread lynda
Hi, I finally got around of this by using find() instead of read(). function view($id){ $condition = "question_id = ".$id.""; $question = $this->Question->find($condition); $this->set('question', $question); } Therefore, the result will sho

Re: scaffold view and edit actions not workign when var $uses is used

2007-02-14 Thread lynda
Hi, I have the exactly same problem when I use $uses = array('Book', 'Question'); Index.thtml display the resulst, but not edit.thtml and view.thtml. For example function view($id){ $this->Question->question_id = $id; $question = $this->Question->read();

Re: Scaffold problems - inconsistent actions (add/create, edit/update)

2007-01-17 Thread the_woodsman
Ooop, my bad - this appears to be standard behaviour for scaffolding, and my real problem is that *all* redirects fail, something to do with trying to integrate cake's session into an exisitng PHP session. http://groups.google.com/group/cake-php/browse_thread/thread/bbf3ea95aeb88497?hl=en Ign

Re: Scaffold: A few more features

2006-10-31 Thread [EMAIL PROTECTED]
John David Anderson (_psychic_) wrote: > I think a feature like this would entice new users to use their > scaffolding more than is needed. > > If you'd like to start customizing what is shown, and how things are > presented, it's time to bake. > > -- John John, What about extensions to Bake? T

Re: Scaffold: A few more features

2006-10-31 Thread Jose da Silva
Ok, I agree with your scaffolf point of view, i think the bake feature is just fine for 99% of cases. regards jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: Scaffold: A few more features

2006-10-30 Thread Jeff Downton
Thanks phpnut, I understand the purpose of scaffolding better and thanks nate for the style suggestion, both are of great help. -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Re: Scaffold: A few more features

2006-10-30 Thread nate
Also, you are able to style the default scaffold templates to your heart's content, so I'm sure you could find a way to hide a field that way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: Scaffold: A few more features

2006-10-30 Thread Larry E. Masters aka PhpNut
Scaffold should not be used for production settings, I have said this since I added it to cake. If you want the automagicness that scaffold provides, use bake and edit the files that are created. I will not add any more functionality to scaffold that is not already there. You can already use metho

Re: Scaffold: A few more features

2006-10-30 Thread jdownton
I do like the idea of extending the ability of scaffolding. I use cake for work so anything that saves time lets me sleep more ;) Personally if one could put in the option to hide a field from scaffolding (like 'id') and format the rows and columns a little more cleanly it would mean I wouldn't

Re: Scaffold: A few more features

2006-10-30 Thread nate
What John said. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

Re: Scaffold: A few more features

2006-10-30 Thread John David Anderson (_psychic_)
On Oct 30, 2006, at 8:08 AM, Jose da Silva wrote: > > Hi there > > I've been playing with scaffold, and found come neat features that > could be usefull, i'd like to know what is the comunity feeling about. > > I agree with nate's opinion, expressed in many post on this newsgroup, > that scaffol

Re: Scaffold Error

2006-09-19 Thread Syl
Wow ! You guys are fast :-) Thanks !! That did it :-) S --~--~-~--~~~---~--~~ 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 g

Re: Scaffold Error

2006-09-19 Thread Brian French
nate beat me :-p nate wrote: > Try this: > > public $name = "HelpCategories"; > > Sorry if the "name" thing wasn't completely clear. > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: Scaffold Error

2006-09-19 Thread Brian French
it should be: class HelpCategoriesController extends AppController { public $name = "HelpCategories"; var $scaffold; var $useDbConfig = "wwa"; } where $name doesnt have 'Controller' in the string. it should be named: app/controllers/help_categories_controller.php Sy

Re: Scaffold Error

2006-09-19 Thread nate
Try this: public $name = "HelpCategories"; Sorry if the "name" thing wasn't completely clear. --~--~-~--~~~---~--~~ 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@googleg

Re: scaffold troubles with non conventional name

2006-07-06 Thread bracchetto
ok, i found... just look at the inflections.php under the app/config dir --~--~-~--~~~---~--~~ 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 unsubscrib

Re: scaffold troubles with non conventional name

2006-07-06 Thread Repsah
Hmm, speaking language... why use a plural for a model name when it should be singular? Isn't soggettus the singular for soggetti? So I would expect the model class to be Soggettus and the controller to be SoggettiContoller. I know, not a solution for your question, just... uno che ha fatto il lice

Re: Scaffold dropdown

2006-06-21 Thread Kit
Never mind I figured it out...of course right after I post the question. --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Scaffold vs. Baking

2006-05-29 Thread Larry E. Masters aka PhpNut
Latest version is 1.1.3.2967Released a few days ago.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ On 5/29/06, jgoforth <[EMAIL PROTECTED]> wrote: my version.txt says 1.0.1.2708 which as far as I know is the mostrecent

Re: Scaffold vs. Baking

2006-05-29 Thread AD7six
Might be worth your time looking again ;) http://cakeforge.org/frs/?group_id=23&release_id=96 AD7six --~--~-~--~~~---~--~~ 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@

Re: Scaffold vs. Baking

2006-05-29 Thread jgoforth
my version.txt says 1.0.1.2708 which as far as I know is the most recent released version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Scaffold vs. Baking

2006-05-26 Thread Larry E. Masters aka PhpNut
Are you using the latest version of Cake?-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ On 5/26/06, jgoforth <[EMAIL PROTECTED]> wrote: Maybe I have missed something along the way, but my initialunderstanding of what t

Re: Scaffold (prompt forms)

2006-05-23 Thread nate
Again, you can't. I will refer you to my reply from your previous scaffold-related post. Scaffold is for *prototyping*, not *building* applications. If you want to customize the scaffold view, bake it. --~--~-~--~~~---~--~~ You received this message because you

Re: scaffold validate erros

2006-05-22 Thread nate
from 71.232.44.107 by g10g2000cwb.googlegroups.com with HTTP; Mon, 22 May 2006 20:08:43 + (UTC) From: "nate" <[EMAIL PROTECTED]> To: "Cake PHP" Subject: Re: scaffold validate erros Date: Mon, 22 May 2006 20:08:43 - Message-ID: <[EMAIL PROTECTED]> In-Rep

Re: scaffold

2006-05-22 Thread nate
Also, make sure your table name is "states" (plural), and your model name should be "State" (singular). --~--~-~--~~~---~--~~ 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

Re: scaffold

2006-05-22 Thread davide
Fernando wrote: > > Hi, I have 2 tables.. > > students, and state... > > my table students has a field called state_id > > how to use scaffold to generate a with the states from my > table states? The easy way is in the state model, add the $hasMany = array("Student") and in the Student mode

Re: Scaffold problem

2006-05-12 Thread Samuel DeVore
Make sure the $hasMany and $belongsTo are capitalized correctly var $hasMany = "Product"; On 5/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have downloaded last nightly build cake_nightly_20.03.2006. > > My app has the model (this is different files) > > class Group extends AppMode

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-10 Thread Larry E. Masters aka PhpNut
Looks like some of your filed in app/* are older versions. Make sure you check to see is they are different-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut * @access  public*/On 5/10/06, Kotekar <[EMAIL PROTECTED]> wrote: Hey,I got this me

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-10 Thread Kotekar
Hey, I got this message: Warning: uses(CORE_PATHcake\libs\bake.php): failed to open stream: No such file or directory in E:\s ites\cakephp\cake\basics.php on line 393 Fatal error: uses(): Failed opening required 'CORE_PATHcake\libs\bake.php' (include_path='.;C:\php5\ pear') in E:\sites\cakephp\

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread clemos
hi it's not a problem with mysql itself (otherwise, it would return something like "unable to connect") I'm no expert (and all this depends on the way you 'upgraded' php4 to php5), but maybe it comes from a wrong setup of php5. in php.ini (the one for php5), in the extension (module) section I ha

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Spark
i tried it last night, and I got this message: _ _ ___ _ _ ___ ___ _ _ ||__| |_/ |___ |__] |__| |__]|__] |__| |_/ |___ |___ | | | \_ |___ || | | |__] | | | \_ |___ --- [M]odel [C]

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika
What response did you get? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTEC

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Kotekar
Hi Mika, It seems to be broken, it didn't worked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, sen

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika
sorry that was supposed to be bake.php was broken. --~--~-~--~~~---~--~~ 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, se

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika
Well if you're using the latest build (because build.php was pretty broken for a while) you can go to your /cake/scripts directory and run "php bake.php" from there. This is assuming that you have the path to your php.exe in your path environment variable. --~--~-~--~~~--

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Kotekar
Hey thanks, the links which you provided helps lot and i had small doubt with the tutorilas which i gone through. While creating the Controllers, they have used the command line like "php bake.php -app bakery" it ask some set of question builds fully created file with the functions. Can we run t

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-08 Thread Mika
Look at how category is done in this model: https://trac.cakephp.org/wiki/BuildingCakeBakery/Models --~--~-~--~~~---~--~~ 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@goo

Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-08 Thread John Zimmerman [gmail]
Will it work if you use 'categories_id' instead of 'parent_id'?Following the cake conventions this might make sense.On 5/8/06, Kotekar < [EMAIL PROTECTED]> wrote:categories TABLE- id- name- parent_id While Add New Category,  i need the SELECT OPTION to draw the values ofpresent Category List to cho

Re: Scaffold without standard conventions.

2006-04-11 Thread Gonçalo Marrafa
On Mon, 10 Apr 2006 21:47:43 -0700 "Mika" <[EMAIL PROTECTED]> wrote: > I'm sure it would help if you either set the table name in the Model > (useTable: > http://api.cakephp.org/class_model.html#699e150b922e2ef4bb51cf7d46fef0ea) Had already tried it with no luck. > or use the inflections.php f

Re: Scaffold without standard conventions.

2006-04-10 Thread Mika
I'm sure it would help if you either set the table name in the Model (useTable: http://api.cakephp.org/class_model.html#699e150b922e2ef4bb51cf7d46fef0ea) or use the inflections.php file in your app/config folder (http://api.cakephp.org/inflections_8php.html) --~--~-~--~~