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 <http://www.programmersvilla.com/cakephp2/cakephp-specific-fields-in-scaffolding-index-view/> . here you will find new customized scaffold file wi

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

2012-05-08 Thread Ludovic FERRE
at 4:37 PM, 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 wirtten apps on >> 2.1.2). It's working well however I am stuck with basic scaffold as >> described in th

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

2012-05-08 Thread vikram sharma
ver I am stuck with basic scaffold as described in > the books and online documentation. > > I am running MySQL 5.5 on Ubuntu Linux 12.04 amd64. > > The SQL table in my db is defined here: > > CREATE TABLE `books` ( > `id` int(11) DEFAULT NULL, > `isbn` varchar(10) NO

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

2012-05-08 Thread Ludovic FERRE
bsolutely 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 >

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, 20

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..

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

2012-05-08 Thread Andras Kende
ng 1.2 wirtten apps on 2.1.2). It's > working well however I am stuck with basic scaffold as described in the books > and online documentation. > > I am running MySQL 5.5 on Ubuntu Linux 12.04 amd64. > > The SQL table in my db is defined here: > > CREATE TABLE `boo

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

2012-05-08 Thread Ludovic Ferre
I am new to CakePHP and am following the Packt Publishing book to get used to the tool (and challenge myself following 1.2 wirtten apps on 2.1.2). It's working well however I am stuck with basic scaffold as described in the books and online documentation. I am running MySQL 5.5 on Ubuntu

Re: Scaffold Multi join tables

2012-03-05 Thread Rodrigo Rodrigues Moyle
) not null auto_increment, > banner_id int(11) not null, > div_id int(11) not null > > But what about a thre way join? > i need to join banners, divs and sources. > > How would that be the name for this kind of table? > > I'm using scaffold to test my db. &

Scaffold Multi join tables

2012-03-05 Thread Walter Raponi
table called banners_divs that has this fields: id int(11) not null auto_increment, banner_id int(11) not null, div_id int(11) not null But what about a thre way join? i need to join banners, divs and sources. How would that be the name for this kind of table? I'm using scaffold to test my

Re: $this->Auth->Allow('*') and scaffold problem

2011-12-21 Thread Sam Sherlock
Acl and scaffold don't play nice. Comment that comp for now add it later - S On 21 Dec 2011 12:47, "gloop" wrote: > Hello everybody, > > i cant believe it. I solved my last problem with Scaffold and now ive > a new one. > > I add in my AppController an Auth

$this->Auth->Allow('*') and scaffold problem

2011-12-21 Thread gloop
Hello everybody, i cant believe it. I solved my last problem with Scaffold and now ive a new one. I add in my AppController an Auth and allow it to all my functions: class AppController extends Controller { var $components = array('Acl', '

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
Now i delete the file and add it new with the same code and now i get the correct redirect to the user login form ... On 19 Dez., 16:44, gloop wrote: > Hello, > > i try the last hour with a new generated project. And it works ... so > now i found the Problem: > > in my AppController i wrote this:

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread euromark
to refine thiago's 2. question: what is the displayField of the country model? if it is not title or name, you need to set displayField manually for bake and for scaffold forms On 19 Dez., 16:50, Thiago Belem wrote: >    1. The relation is defined on the models >    2. You have

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread Thiago Belem
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br 2011/12/19 Daniel Brandi > Dear all, > > I have a problem in cakephp 2.0.4 when use scaffold forms. The > situation is the following: > > I have two models, one (User)

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
Hello, i try the last hour with a new generated project. And it works ... so now i found the Problem: in my AppController i wrote this: array( 'authError' => 'Did you really think you are allowed to see that?'

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread AD7six
On Dec 19, 11:46 am, gloop wrote: > Same issue with Cakephp 2.0.3. Does anything in your application work? How are you checking if it works or not? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cak

Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread Daniel Brandi
Dear all, I have a problem in cakephp 2.0.4 when use scaffold forms. The situation is the following: I have two models, one (User) belongs to second one (Country). When go to view scaffold form of User, I can see the country info with a link to view that county. But when I go to add scaffold

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread Thiago Belem
gt; > > > On 19 Dez., 01:45, Thiago Belem wrote: > > > > > > > > > > > > > > > > > Based on documentation< > http://book.cakephp.org/2.0/en/controllers/scaffolding.html>, > > > you use just: > > > > > public $scaffold; > > &

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
gt; > > > Based on > > documentation<http://book.cakephp.org/2.0/en/controllers/scaffolding.html>, > > you use just: > > > public $scaffold; > > > If you give some value to it, cake will use this value as > > prefix<http://book.cakephp.org/2.0/en/controllers/

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread gloop
Sorry i tested something, but the problem is still excisting with public $scraffold; Blank page. Kind Regards On 19 Dez., 01:45, Thiago Belem wrote: > Based on > documentation<http://book.cakephp.org/2.0/en/controllers/scaffolding.html>, > you use just: > > public $scaf

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread Thiago Belem
Based on documentation<http://book.cakephp.org/2.0/en/controllers/scaffolding.html>, you use just: public $scaffold; If you give some value to it, cake will use this value as prefix<http://book.cakephp.org/2.0/en/controllers/scaffolding.html#creating-a-simple-admin-interface-with-sc

Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread gloop
Hello, i try to use Scaffold, but i get a blank page: try to open: http://localhost/domain/comments Something wrong? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

How to use custom id when using scaffold

2011-09-08 Thread Blaataap
Hi there, I want to set a custom id when using scaffold, i tried setting the var $primaryKey = 'custom_id' but im getting errors. Is it even possible to set a custom id when using scaffold? Thnx in advance1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.c

primaryKey for a scaffold model

2011-09-08 Thread Blaataap
Hi there, Im just figuring out cakephp and i like to make a couple of models using scaffold. Is it true that scaffold requires a id column? or should var $primaryKey = 'custom_id'; work when using scaffold? -- Our newest site for the community: CakePHP Video Tutorials http://tv.c

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-28 Thread Joshua Muheim
Ah, you mean this specific point! Well, I guess it would make sense. I just wonder why nobody has done it before and I fear that it has good reasons...? I don't know the patch/pull process yet, I will look at it next week if I find the time. On Fri, Jan 28, 2011 at 11:04 AM, AD7six wrote: > > >

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-28 Thread AD7six
On Jan 28, 11:01 am, Joshua Muheim wrote: > Should it? I guess this only works specifically for me and my > german-needs, and wouldn't be of any sense for the whole project? You see no point in submitting patches which correct __(sprintf( to translatable sprintf(__( ? AD -- Our newest sit

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-28 Thread Joshua Muheim
Should it? I guess this only works specifically for me and my german-needs, and wouldn't be of any sense for the whole project? On Fri, Jan 28, 2011 at 10:50 AM, AD7six wrote: > > > On Jan 27, 1:24 pm, Joshua Muheim wrote: >> Thank you, Ryan. I know the "problem" of the 3 different "the" in >> g

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-28 Thread AD7six
On Jan 27, 1:24 pm, Joshua Muheim wrote: > Thank you, Ryan. I know the "problem" of the 3 different "the" in > german. I'm from Switzerland... ;-) > > Anyway, there are some workarounds you can take... e.g. instead of > using "Der/die/das Buch wurde gespeichert." you can simply use "Buch > wurde

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-27 Thread Joshua Muheim
n 27, 2011, at 03:48, psybear83 wrote: > >> I want to translate the flash messages of $scaffold (I know, $scaffold >> shouldn't be used, don't tell me this ;-) ). >> >> I looked through the code to find the msg-strings, and for deletion, >> they look like

Re: Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-27 Thread Ryan Schmidt
On Jan 27, 2011, at 03:48, psybear83 wrote: > I want to translate the flash messages of $scaffold (I know, $scaffold > shouldn't be used, don't tell me this ;-) ). > > I looked through the code to find the msg-strings, and for deletion, > they look like this: > >

Translating the scaffold flashes - it nearly can't be done the way they are formatted?! --psybear

2011-01-27 Thread psybear83
Hey everybody I want to translate the flash messages of $scaffold (I know, $scaffold shouldn't be used, don't tell me this ;-) ). I looked through the code to find the msg-strings, and for deletion, they look like this: $message = __( sprintf('The %1$s with id: %2$d h

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

2010-12-02 Thread Joshua Muheim
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

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

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

2010-12-02 Thread psybear83
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 when on the index or view page? Thanks Josh Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rela

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

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

2010-12-01 Thread psybear83
ures. So I want to replace them using a scaffold view. (I know that $scaffold isn't usually the way to go, but in the specific application I guess it is a very useful solution.) So I removed the old view.ctp of my ContractsController and added $scaffold to the ContractsController, but then C

Scaffold: when doing tests with SimpleTest it directs to index (instead of view)!

2010-09-13 Thread psybear83
Hey everybody I have a weird problem... I have a scaffold, and as we all know, after creating or editing a scaffolded model one is directed to the object's view action. So far, so good. But I'm experiencing now, that when doing web tests using SimpleTest, I am directed to the home

Re: How to override the scaffold mainlayout

2010-05-27 Thread John Andersen
In your action, just try to set the controlles layout and see if it doesn't also change the scaffolds layout :) Enjoy, John On May 27, 12:59 pm, welja wrote: > Hi there, > > Just a quick question. > Is there way of changing the layout of the scaffold (which is set in

How to override the scaffold mainlayout

2010-05-27 Thread welja
Hi there, Just a quick question. Is there way of changing the layout of the scaffold (which is set in libs/controller/scaffold) It seems there are no hooks for doing this, maybe i need to override the scaffold class? I am using cake 1.3 Thx! Check out the new CakePHP Questions site http

Re: Auto-datetime fields (created_at and updated_at) and $scaffold

2010-04-23 Thread euromark
they are if you call them "created" and "modified" see the cookbook for details On 23 Apr., 22:09, Thomas Allen wrote: > In the scaffold create and edit views, I am presented with datetime > inputs for both "Created at" and "Updated at." Is this an

Auto-datetime fields (created_at and updated_at) and $scaffold

2010-04-23 Thread Thomas Allen
In the scaffold create and edit views, I am presented with datetime inputs for both "Created at" and "Updated at." Is this an indication that I have done something wrong? I thought that the values for these fields were handled internally. Here is the bare-bones table: cr

Re: scaffold isn't working

2010-03-24 Thread boobalan
author_id). > > > > > > > I've created models for authors and books: > > > > > > > > class Author extends AppModel { > > > > > > >    var $name = 'Author'; > > > > > > >    var $hasMany = 'Book

Re: scaffold isn't working

2010-01-27 Thread BrendonKoz
gt; > > I've created models for authors and books: > > > > > > > class Author extends AppModel { > > > > > >    var $name = 'Author'; > > > > > >    var $hasMany = 'Book'; > > > > > > } > &

Re: scaffold isn't working

2010-01-27 Thread BrendonKoz
; > I've created models for authors and books: > > > > > > class Author extends AppModel { > > > > >    var $name = 'Author'; > > > > >    var $hasMany = 'Book'; > > > > > } > > > > > > class Bo

Re: scaffold isn't working

2010-01-26 Thread euromark
;ve created models for authors and books: > > > > > class Author extends AppModel { > > > >    var $name = 'Author'; > > > >    var $hasMany = 'Book'; > > > > } > > > > > class Book extends AppModel { > &g

Re: scaffold isn't working

2010-01-26 Thread andrei.b
k extends AppModel { > > >    var $name = 'Book'; > > >    var $belongsTo = 'Author'; > > > } > > > > And the 2 controllers: > > > > class AuthorsController extends AppController{ > > >    var $name = 'Authors'

Re: scaffold isn't working

2010-01-26 Thread andrei.b
x27;; > > } > > > class Book extends AppModel { > >    var $name = 'Book'; > >    var $belongsTo = 'Author'; > > } > > > And the 2 controllers: > > > class AuthorsController extends AppController{ > >    var $name = 

Re: scaffold isn't working

2010-01-26 Thread andrei.b
ds AppModel { > >    var $name = 'Book'; > >    var $belongsTo = 'Author'; > > } > > > And the 2 controllers: > > > class AuthorsController extends AppController{ > >    var $name = 'Authors'; > >    var $scaffold; > > }

Re: scaffold isn't working

2010-01-26 Thread Jeremy Burns
t;var $name = 'Book'; >var $belongsTo = 'Author'; > } > > And the 2 controllers: > > class AuthorsController extends AppController{ >var $name = 'Authors'; >var $scaffold; > } > > class BooksController extends AppController { &g

scaffold isn't working

2010-01-26 Thread andrei.b
#x27;; var $belongsTo = 'Author'; } And the 2 controllers: class AuthorsController extends AppController{ var $name = 'Authors'; var $scaffold; } class BooksController extends AppController { var $name = 'Books'; var $scaffold; } When I run http://lo

Re: Scaffold and table names

2009-11-28 Thread Kerr
> > > > >         ); > > > > > > > } > > > > > > > @Dave - This is not a HABTM scenario, rather a simple lookup table > > > > > > with name and ID key pairs. > > > > > > > On Nov 27, 5:04 pm, Dave wrote: > &g

Re: Scaffold and table names

2009-11-28 Thread John Andersen
gt; > > > > > 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 m

Re: Scaffold and table names

2009-11-28 Thread Dave
t; On Nov 27, 5:04 pm, Dave wrote: > > > > > > > > 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 > > > > > > s

Re: Scaffold and table names

2009-11-28 Thread Kerr
n Nov 27, 5:04 pm, Dave wrote: > > > > > > 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 th

Re: Scaffold and table names

2009-11-28 Thread Kerr
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/hasAndBelon

Re: Scaffold and table names

2009-11-28 Thread Dave
<http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM> > > > > > On Fri, Nov 27, 2009 at 6:40 AM, John Andersen < > j.andersen...@gmail.com>wrote: > > > > > > Which table does CakePHP say it can't find? Is it "invoices_statuses" >

Re: Scaffold and table names

2009-11-28 Thread John Andersen
n Andersen > > wrote: > > > > 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 &g

Re: Scaffold and table names

2009-11-28 Thread Kerr
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 grea

Re: Scaffold and table names

2009-11-27 Thread Dave
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 much CRUD work! That said, I want to set up > > a simple $scaffo

Re: Scaffold and table names

2009-11-27 Thread John Andersen
great > time not having to do so much CRUD work!  That said, I want to set up > a simple $scaffold based model, and I'm having trouble reconciling a > table to a model.  My application handles client billing for a > business, and I have a model named Invoice, with all the convention &

Scaffold and table names

2009-11-25 Thread Kerr
Hi folks, I'm using CakePHP for a new project, and I am having a great time not having to do so much CRUD work! That said, I want to set up a simple $scaffold based model, and I'm having trouble reconciling a table to a model. My application handles client billing for a business, an

Re: No Listbox for HABTM Relationship using Scaffold

2009-09-24 Thread Choopong Choosamer
I have the same problem. I must downgrade it to 1.2.3. 1.2.5, 1.2.4, and 1.2.x.x nightly build also have the same problem. Cheers. On Sep 21, 7:59 am, josephusbrown wrote: > The issue appears to be with the current version of cakephp 1.2.5. I > went back to previous version and HABTM list box

Re: No Listbox for HABTM Relationship using Scaffold

2009-09-24 Thread mark_story
I don't have any issues with the habtm generation on either the git head of 1.2 or the 1.2.5 package. In fact there was an issue with habtm selectbox generation with 1.2.4 and earlier. See http://code.cakephp.org/cakephp/commits/view/2c9fd2a4 http://code.cakephp.org/tickets/view/48 -Mark On S

Re: No Listbox for HABTM Relationship using Scaffold

2009-09-20 Thread josephusbrown
The issue appears to be with the current version of cakephp 1.2.5. I went back to previous version and HABTM list boxes appear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, s

Re: cake 1.3 var $scaffold redirect

2009-09-02 Thread Alex Ciminian
I've got it working by overwriting the scaffold controller in the cake library with the controller from version 1.2.4. I did a diff on the two files and I noticed that the main difference is the use of $_validSession in the newer file. I'm new to CakePHP (this is my first project),

Re: cake 1.3 var $scaffold redirect

2009-09-02 Thread Alex Ciminian
lass ProductsController extends AppController { >    var $scaffold;} > > ?> > > core.php set to: > Configure::write('debug', 0); > > Thanks, > > Andras --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

cake 1.3 var $scaffold redirect

2009-08-30 Thread Andras Kende
Hello, is it possible that in cake 1.3 using var $scaffold wont redirect on save or edit ? I just get a blank page. core.php set to: Configure::write('debug', 0); Thanks, Andras --~--~-~--~~~---~--~~ You received this message because you are sub

Re: HABTM with additional data scaffold update problem.

2009-08-28 Thread fabiox
;> >> > The problem is that when I edit and update any record on first model, >> > it will delete and insert join table records and I loose my additional >> > data on join table. >> >> > How I solve it? I alread tried the HABTM 'with' tag and chan

Re: HABTM with additional data scaffold update problem.

2009-08-28 Thread fabiox
but no success. > > Kind regards, > > Franco > > > > -- View this message in context: http://n2.nabble.com/HABTM-with-additional-data-scaffold-update-problem-tp3263694p3534452.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~--

Re: HABTM with additional data scaffold update problem.

2009-08-28 Thread Defranco
ecord on first model, > > it will delete and insert join table records and I loose my additional > > data on join table. > > > How I solve it? I alread tried the HABTM 'with' tag and changed the > > 'unique' tag too, but no success. > > > Ki

No Listbox for HABTM Relationship using Scaffold

2009-08-24 Thread josephusbrown
vice'; var $hasAndBelongsToMany = array( 'Request'=>array('className'=>'Request', 'joinTable'=>'requests_services', 'with'=>'RequestsServices')

Re: Auth not redirecting for scaffold admin pages

2009-08-20 Thread Brendon Kozlowski (Realm)
If you were to search these google groups prior to posting, you *probably* would have found the answer. Scaffolding is typically a means for quick non-production deployment so that there is something to show your boss/stakeholders with regard to skeleton-level interaction and navigation. Once a

Re: Auth not redirecting for scaffold admin pages

2009-08-20 Thread Mathew
function startup(&$controller) { $isErrorOrTests = ( strtolower($controller->name) == 'cakeerror' || (strtolower($controller->name) == 'tests' && Configure::read() > 0) || !in_array($controller->params

Auth not redirecting for scaffold admin pages

2009-08-20 Thread Mathew
Hi, I have a major security problem with CakePHP. For some reason the Auth component is not redirecting the browser to the login page for admin pages when the page is rendered with scaffolding. Other admin pages for controller actions are being redirected. I am using CakePHP version 1.2.1.8004.

Re: HABTM with additional data scaffold update problem.

2009-08-01 Thread James Brown
maybe scaffolding changes the "unique" attribute on the fly On Jul 15, 4:52 pm, Defranco wrote: > Hi, > > Myjointableadditional data get lost when I update any of the 2 > models that has HABTM relation: > > I have 2 models that has HABTM relation and thejointablebetween > these has additional da

Re: Changing field type in scaffold form

2009-07-27 Thread Marcelo Andrade
2009/7/24 Antônio Marco : > > Hi, folks! > > FACTS: > > [1] I'm using scaffolding; > [2] I have a table wich contains a INT2 column named LEVEL. This > column accepts only values IN (0, 1, 2, 3, 4, 5, 6); > [3] When the scaffold form is shown, the LEVEL field i

Changing field type in scaffold form

2009-07-24 Thread Antônio Marco
Hi, folks! FACTS: [1] I'm using scaffolding; [2] I have a table wich contains a INT2 column named LEVEL. This column accepts only values IN (0, 1, 2, 3, 4, 5, 6); [3] When the scaffold form is shown, the LEVEL field is a simple * TEXT type * field. My question is: Would be possible to c

Re: HABTM with additional data scaffold update problem.

2009-07-21 Thread Defranco
Here follows my dirty solution I've created: app_controller.php: function _beforeScaffold($method) { $this->_HABTM_scaffold_preserve($method); return parent::_beforeScaffold($method); } function _HABTM_scaffold_preserve($method){

Re: HABTM with additional data scaffold update problem.

2009-07-18 Thread Defranco
no ideas? :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegr

Re: HABTM with additional data scaffold update problem.

2009-07-17 Thread Defranco
More details about the tables: columns -- id name columns_panels -- id column_id panel_id width <-- This is the additional join table data, that get lost when I edit any columns fields. panels -- id name The problem is that when I update column using scaff

Re: HABTM with additional data scaffold update problem.

2009-07-16 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroup

HABTM with additional data scaffold update problem.

2009-07-15 Thread Defranco
Hi, My join table additional data get lost when I update any of the 2 models that has HABTM relation: I have 2 models that has HABTM relation and the join table between these has additional data. The problem is that when I edit and update any record on first model, it will delete and insert joi

Re: modify created and modified fields in scaffold views

2009-06-11 Thread brian
On Thu, Jun 11, 2009 at 9:46 AM, JuergenRiemer wrote: > > Is there an elegant way to make the two fields "created" and > "modified" > visible/editable in scaffold views? thx > sorry for a repost but the first one seemed to have vanished somehow. You can change

modify created and modified fields in scaffold views

2009-06-11 Thread JuergenRiemer
Is there an elegant way to make the two fields "created" and "modified" visible/editable in scaffold views? thx sorry for a repost but the first one seemed to have vanished somehow. --~--~-~--~~~---~--~~ You received this message because you a

modify created and modified fields in scaffold views

2009-06-09 Thread JuergenRiemer
Is there a quick way to make the two fields "created" and "modified" visible/editable in scaffold views? thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: SQL query correct for HABTM, but no results in scaffold? [RESOLVED]

2009-06-05 Thread Miles J
I thought the $name was only required for controllers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, se

Re: SQL query correct for HABTM, but no results in scaffold? [RESOLVED]

2009-06-05 Thread bcm...@gmail.com
27;              => 'listings_tags', >                  'foreignKey'             => 'listing_id', >                 'associationForeignKey'  => 'tag_id', >                 'unique'                 => true, >                 'conditions'

SQL query correct for HABTM, but no results in scaffold?

2009-06-05 Thread bcm...@gmail.com
'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '',

Re: taking down the scaffold...

2009-06-02 Thread delocalizer
$scaffold doesn't really have anything to do with it. But you can hide SQL log by changing your debug setting (in /app/config/core.php) from 2 to 1 or less. On Jun 2, 4:52 am, cake_eater101 wrote: > When I delete the $scoffold variable from any given controller, I > still see th

taking down the scaffold...

2009-06-01 Thread cake_eater101
When I delete the $scoffold variable from any given controller, I still see the SQL query summary information at the bottom of my pages. Would anyone know how to turn off the SQL summary? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Scaffold problem

2009-04-24 Thread Mike
ourses var $scaffold; --- Look okay? (y/n) [y] > y When I build it this way (which I would think should be equivalent) I get errors: Would you like to build your controller interactively? Warning: Choosing no will over

Re: scaffold

2009-03-23 Thread Alejandro Weintz Aguilar
will also be required > to bake or manually create the views ,if you are overriding the > dynamic scaffolding. I would never use dynamic scaffolding in a > production environment. I don't use it in a dev environment - I bake > everything. > > On Mar 21, 5:46 am, Johnny wrote:

Re: scaffold

2009-03-21 Thread BrianRehg
would never use dynamic scaffolding in a production environment. I don't use it in a dev environment - I bake everything. On Mar 21, 5:46 am, Johnny wrote: > Scaffold is not supposed to be used in production environments. > Use bake instead to physically create the model,view and control

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

scaffold

2009-03-20 Thread Alejandro Weintz Aguilar
Hello, I am build a large proyect catalogs of product, like the scaffold feautures of Cake but need on UPDATE action to update a delete(varchar(1) field on the database not to delete the record. Also when it querys the record list to show all the record but the one with the delete field set to 1

Re: Cake bake controller scaffold..

2009-02-04 Thread RodrigoRM
Please, paste here the console output. On Feb 4, 2:54 am, Mech7 wrote: > I have not used cake for a while.. and now trying to pick it up > again,, but when I do.. > > #cake bake controller articles > > It works.. when i do.. > > #cake bake controller articles -scaffol

Cake bake controller scaffold..

2009-02-03 Thread Mech7
I have not used cake for a while.. and now trying to pick it up again,, but when I do.. #cake bake controller articles It works.. when i do.. #cake bake controller articles -scaffold It doesn't work it say it needs a model... but i already baked the model and with scaffold it works ok..

$scaffold and bake don't match up

2009-01-30 Thread lehmanjas
I am new to cakephp and I used the scaffolding and then decided to bake my views and controllers. I have some Associations setup that showed up in the views when using scaffolding but don't show up after baking the views. Did I do something wrong or is there not a way to generate the scaffolding

Re: cakephp scaffold

2008-11-18 Thread Hakan ÇELEBİ
I think you should update table name which is "categorys". cakes want like that :))) --~--~-~--~~~---~--~~ 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.co

  1   2   3   >