Re: Dynamic views

2007-08-28 Thread Sonic Baker
On 8/25/07, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > The hard part is > deciding the format that you are going to use to store the field data. > > Sounds like it could be a very useful set of components/helpers and > would be a great addition to the Bakery. Hey Travis, Have a search for the E

Re: Dynamic views

2007-08-24 Thread Geoff Ford
What you are talking about is essentially a Form Builder. For the rendering of arbitrary fields have a look at the way scaffolding manages it. As for sorting out which fields to render - it sounds like you have the right approach for storing it in the database, and then it is just a matter of fi

Re: Dynamic views

2007-08-24 Thread Travis
Will do! Now I just need to figure out where to begin. On Aug 24, 12:25 pm, Travis Cline <[EMAIL PROTECTED]> wrote: > As far as I'm aware there aren't existing helpers/components that > would accomplish this. > It would require at least a helper and a component to make it work > smoothly -- it s

Re: Dynamic views

2007-08-24 Thread Travis Cline
As far as I'm aware there aren't existing helpers/components that would accomplish this. It would require at least a helper and a component to make it work smoothly -- it shouldn't be too hard to accomplish. Do share in a bakery article if you take this path. -- Travis --~--~-~--~~

Re: Dynamic views

2007-08-23 Thread McFadly
Travis, I don't have answer to your question. My advice is to build the simplest possible implementation of your idea and expand it as your knowledge and familiarity with cake increases. Good luck! --~--~-~--~~~---~--~~ You received this message because you are

Re: Dynamic views

2007-08-23 Thread Travis
I'm not sure if that would work, that seems more like a way to load configuration values. I am trying to design my application so that a user can create different attributes (ie. First Name, Last Name, Age, City, or any other attribute) and link those attributes to certain types (String, Integer,

Re: Dynamic views

2007-08-23 Thread McFadly
Hmmm... not sure I completely follow your question, but if I'm getting the right impression the ConfComponent: http://bakery.cakephp.org/articles/view/confcomponent-db-based-configuration-tutorial is what you're looking for. I use it extensively, its a great database based configuration tool. On

Dynamic views

2007-08-23 Thread Travis
I was wondering if there were any CakePHP based components that would allow me to build dynamic data entry views based on values in a database such that I can enter data and store it in a generic table. For example, if I have a table 'Attributes' that has an attribute name, and the type of attribu

Re: Dynamic Views

2006-05-10 Thread Armando Sosa
You could make different layouts, and switch it in the controller before the render depending if it's logged or not. Or maybe something like $this->set('is_logged',$this->Session->check(' user.id'))Or maybe some logic in the view wont hurt anybodyOn 5/10/06, Vortexmind <[EMAIL PROTECTED] > wrote:Hi

Dynamic Views

2006-05-10 Thread Vortexmind
Hi I have another question, but I think it's rather a MVC understanding problem than really a cakephp one... but I'm not sure. Problem: I am doing my website's template, and I have some common elements. For example, I have a three-column layout, and in the left column I have a little user box and