Re: spanning a form

2008-03-05 Thread bob
so in my add1 controller, i serialize the data. But how do i pass this to the second form as a hidden field? Would I need to append this to the URL as a parameter? Or would i need to dynamically create the second form from my add1 controller? On Wed, Mar 5, 2008 at 12:38 PM, Samuel DeVore <[EMAIL

RE: plugin overwrites cakephp app-controller with plugin app-controller.

2008-03-05 Thread websta*
everything the the main app-controller is doing. > > How do I inherit the main app-controller into my plugin? > > > __ NOD32 2922 (20080305) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --~--~-~--~~---

Re: Baking Cake with EasyPHP

2008-03-05 Thread Stephen Orr
Well, it could also be that EasyPHP just isn't very good. So far, my recommended WAMP setups are either XAMPP or Wampserver. I've had problems with several others, including Bitnami WampStack and EasyPHP. Steve On Mar 5, 9:15 pm, "Juan Luis Baptiste" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 5,

Re: How to develop an API

2008-03-05 Thread Dr. Tarique Sani
On Thu, Mar 6, 2008 at 11:27 AM, bingo <[EMAIL PROTECTED]> wrote: > For REST it will be simple as we can directly call > http://siteurl/controller/action > and send parameters either by GET or post. But how to determine The above warning is asking you to use Router::parseExtensions() so if

Re: How to develop an API

2008-03-05 Thread bingo
hi Tarique, I know how to create RSS feed using CakePHP and those are working pretty good..but still not able to understand the concept of API. As I understand, for SOAP you have a central controller from which you will need to find appropriate controller or model and call their function. Is tha

Re: How to develop an API

2008-03-05 Thread Dr. Tarique Sani
On Thu, Mar 6, 2008 at 11:09 AM, bingo <[EMAIL PROTECTED]> wrote: > > if (Configure::read('Routing.webservices') == 'on') { > trigger_error('Deprecated: webservices routes are > deprecated and > will not be supported in future versions. Use > Router::par

Re: How to develop an API

2008-03-05 Thread bingo
hi all, I am also looking on providing an API for my application. It seems, CakePHP does has some support for REST, SOAP. Just doing simple search on cake library, I found that this code in router.php file if (Configure::read('Routing.webservices') == 'on') {

Re: How to develop an API

2008-03-05 Thread leveille
Sonic these are excellent questions you've asked, and questions I have asked myself when thinking about this very topic. I would love to see feedback from someone who has experience constructing APIs, and who has asked and worked with these very questions. On Mar 5, 3:08 pm, "Sonic Baker" <[EMAI

Unit Testing Controller using fixture in test_suit config

2008-03-05 Thread Micro
Does anyone know how to test controller in CakePhp 1.2 using the test_suit controller? I am using the testAction function to test my controller. However, it goes to the non-test_suit database. Any idea? --~--~-~--~~~---~--~~ You received this message because you

Re: How to develop an API

2008-03-05 Thread Pablo Viojo
My 2 cents, try keeping your models as fat as possible. This way your models can be used from your controllers or opened to third party (just creating an ApiController for example) reusing the logic. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Wed, Mar 5, 2008 at 5:08 PM, S

Re: Model associations to generate a history

2008-03-05 Thread nate
http://cakeforge.org/projects/version/ You mean like that? On Mar 5, 5:51 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > I've been thinking about this recently, and I was thinking I would > >  have a separate model to store the history, I was thinking > > >  id > >  model > >  foreign_key > >

Re: Model associations to generate a history

2008-03-05 Thread Jon Bennett
> I've been thinking about this recently, and I was thinking I would > have a separate model to store the history, I was thinking > > id > model > foreign_key > user_id > type enum(new,update) > > you would then connect all your models to this one model using the > foreign key, and only ha

Re: Model associations to generate a history

2008-03-05 Thread Jon Bennett
> I'm trying to generate a Facebook-style Mini-feed about my users, so > that a profile page will have the general user information and also a > history of recent activity, which could be new favourites, new notes > about the user, etc. > > How best to accomplish this? I've been thinking abo

Re: craigslist email feature in cake

2008-03-05 Thread Adam Royle
You should be able to setup an email address to pipe directly to a php script. I know cpanel lets you do this. In your php script you would then grab whatever info you need from the email, validate against your database, and send a new email. Cheers, Adam bob wrote: > i wanted to create a craigs

Re: CakePHP bleading hedge... relayability

2008-03-05 Thread Baz
Use the pre-beta if you're worried about stability. On Wed, Mar 5, 2008 at 4:04 PM, cakeFreak <[EMAIL PROTECTED]> wrote: > > Hey guys, I'm currently using an intermidiate release in between > CakePHP 1.2-alpha and CakePHP 1.2.pre-beta. > > What about the latest version from the 1.2xxx branch

Re: Paginate for array (not a model?)

2008-03-05 Thread Mech7
Thanks but doesnt this override it for all ? The article controller has a basic pagination on the index, and the index for the admin.. but for the view for one article i need to change it for pagebreaks within one article. On Mar 5, 5:35 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Wed, Ma

Re: large javascript file corrupted, v1.2

2008-03-05 Thread Adam Royle
Hi ros, Looks like your javascript file (bad.txt) was corrupted somehow... looking at the source on line 32 you can see it starts to define Ext={version:"2.0.1"}; again. Just replace the current javascript file you've got with the working version. I'd be interested to find out how this occurred

Model associations to generate a history

2008-03-05 Thread martinp
I'm trying to generate a Facebook-style Mini-feed about my users, so that a profile page will have the general user information and also a history of recent activity, which could be new favourites, new notes about the user, etc. How best to accomplish this? Notes, favourites etc will be stored i

CakePHP bleading hedge... relayability

2008-03-05 Thread cakeFreak
Hey guys, I'm currently using an intermidiate release in between CakePHP 1.2-alpha and CakePHP 1.2.pre-beta. What about the latest version from the 1.2xxx branch (revision 6508)? Does anyone can suggest it in terms of functionalities/stability? I know it's a triky question expecially regarding

Re: TiramisuPHP

2008-03-05 Thread cakeFreak
The concept I'm interested about TirmisuPHP isn't the templating enjne, but rather its declared capacity of "polymorfism". Namely the capacity to easily associate the same thing to several models. Right, you can achieve this by default using the "condition" in the association array, a bit like in

Re: Baking Cake with EasyPHP

2008-03-05 Thread Juan Luis Baptiste
On Wed, Mar 5, 2008 at 2:17 PM, fahad19 <[EMAIL PROTECTED]> wrote: > > i just set up a basic model, and a 'scaffold' controller. > instead of loading the model, all the content of the 'model php file' > is shown in the 'html output' of cake. > Probably you don't have php support configured on

http authentication with php running under cgi

2008-03-05 Thread Sebastian
Hi y'all, I just deployed a cakePHP application to a client's fatcow webspace. However, now the admin route's http authentication stopped working. In the beforeFilter of the AppController I have: if (isset($this->params['admin'])) { $this->Security->requireLogin( '*',

craigslist email feature in cake

2008-03-05 Thread bob
i wanted to create a craigslist like email forwarding component for cake, where the component can dynamically create (and delete) an email address that forwards to the user's real email. anyone know any cake components to do this? or what would be the steps I need to do? thanks --~--~-~--~

Re: spanning a form

2008-03-05 Thread Samuel DeVore
http://us3.php.net/serialize On Wed, Mar 5, 2008 at 1:34 PM, bob <[EMAIL PROTECTED]> wrote: > how do you serialize data? thanks. > > > > > On Wed, Mar 5, 2008 at 3:30 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]> > wrote: > > > > > You can use Session or an hidden field in the form with the serializ

Re: spanning a form

2008-03-05 Thread bob
how do you serialize data? thanks. On Wed, Mar 5, 2008 at 3:30 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]> wrote: > > You can use Session or an hidden field in the form with the serialized > data, then in add2 unserialize it. > > On Wed, Mar 5, 2008 at 9:10 AM, bob <[EMAIL PROTECTED]> wrote: > > I

Re: Problem posting form data (disregard previous post.. I hit enter on accident)

2008-03-05 Thread Manu0310
Yeah thats was it.. thanks a lot! I cant believe I overlooked that . On Mar 5, 3:01 pm, "b logica" <[EMAIL PROTECTED]> wrote: > You want $this->data not $this->User->data. The data hasn't been > handed to the User model at that point. Try this and you'll see how > the data comes in to the contr

Re: large javascript file corrupted, v1.2

2008-03-05 Thread b logica
I'm not familiar with ext.js so I can't really say what's going on for sure, but is that error being thrown from ext_custom.js, itself, or another file? I think your first link should be: echo $javascript->link('ext-2.0.1/ext-custom.js'); Note there's no leading slash. On Wed, Mar 5, 2008 at 9:

Re: How to develop an API

2008-03-05 Thread Sonic Baker
On Tue, Mar 4, 2008 at 2:16 AM, mbavio <[EMAIL PROTECTED]> wrote: > > > > this is a good place to > starthttp://particletree.com/features/how-to-add-an-api-to-your-web-service/ > > > > look at the additional reading section at the end > > > > Sam D > I was actually thinking and discussing this to

Re: Problem posting form data (disregard previous post.. I hit enter on accident)

2008-03-05 Thread b logica
You want $this->data not $this->User->data. The data hasn't been handed to the User model at that point. Try this and you'll see how the data comes in to the controller: function submit() { debug($this->data);exit; ... } On Wed, Mar 5, 2008 at 2:12 PM, Manu0310 <[EMAIL PROTECTED]> wrote: > >

Re: ImagePNG() in element/requestAction()

2008-03-05 Thread [EMAIL PROTECTED]
I'm an idiot, in that pointing this to a requestAction is obviously not going to work. I figured that out soon enough, and have the src attribute pointing at the controller's action, which calls the component method to create the PNG image. I'm still getting the same error, though. I used wget to

Baking Cake with EasyPHP

2008-03-05 Thread fahad19
hello, i have been using EasyPHP1.8 for years. after i tried cake1.2, i noticed that apache crashed. since i had no choice, i upgraded from EasyPHP1.8 to EasyPHP2 now i am facing another problem. its fine with the default page (welcome page saying if database connection is set up) but when i go t

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

2008-03-05 Thread teknoid
Yep, I've seen and tried that before, but I can't get it to work with multiple tables/models. On Mar 5, 2:00 pm, Baz <[EMAIL PROTECTED]> wrote: > Check the thread that I included before > > > > On Wed, Mar 5, 2008 at 10:55 AM, teknoid <[EMAIL PROTECTED]> wrote: > > >  Oh boy :( > > >  Thank you f

Problem posting form data (disregard previous post.. I hit enter on accident)

2008-03-05 Thread Manu0310
Hi I have a controller which makes use of a model var $uses = array('User','User_posts'); In my controller I have a function called submit which is used for a form where users can post data to. looks like this: (I abbreviated it but thats the idea) function submit() { if (!empty($this->

Problem posting form data

2008-03-05 Thread Manu0310
Hi I have a controller which makes use of a model var $uses = array('User','User_posts'); In my controller I have a function called submit which is used for a form where users can post data to. looks like this: (I abbreviated it but thats the idea) function submit() { if (!empty($this->

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

2008-03-05 Thread Baz
Check the thread that I included before On Wed, Mar 5, 2008 at 10:55 AM, teknoid <[EMAIL PROTECTED]> wrote: > > Oh boy :( > > Thank you for the encouragment, however. > Would you mind pasting some code/pseudo code that works for you? > (Hopefully if you have one with chained tables) > > Do y

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

2008-03-05 Thread teknoid
Oh boy :( Thank you for the encouragment, however. Would you mind pasting some code/pseudo code that works for you? (Hopefully if you have one with chained tables) Do you also use bindable? On Mar 5, 11:19 am, Baz <[EMAIL PROTECTED]> wrote: > Trust me, revisit the hasOne. > > I've been trying t

Unexpected error with cake console

2008-03-05 Thread Fran Iglesias
Hi, I'm trying to use cake to bake some stuff and to extract POT files for my apps with the i18n shell. Shells start OK and both show their menus, but when I choose an option I get an error like: Fatal error: Call to a member function on a non-object in / Applications/MAMP/htdocs/virtualba

large javascript file corrupted, v1.2

2008-03-05 Thread ros
Hi! Just started with CakePHP 1.2 and trying to make working the tree example: http://blogs.bigfish.tv/adam/examples/tut01-extjs-cakephp/employees/ Can not insert link to javascript file in to the default.ctp head section //ExtJS library echo $html->css('/js/ext-2

Re: One component for every element? Is this right?

2008-03-05 Thread jonknee
That seems pretty reasonable if you want to keep things really modular. I say go for it. On Mar 4, 8:46 pm, Chris <[EMAIL PROTECTED]> wrote: > 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.sporting

Two locales in the same view

2008-03-05 Thread [EMAIL PROTECTED]
HI, I'm trying to get two locales at the same view (static content with __() function ). I have try using code like this: uses('L10n'); $this->L10n = new L10n(); and then $this->L10n->get($language); to switch, but it doesn't work. I don't know if is possible. (I have manage to get dinamic c

Re: plugin overwrites cakephp app-controller with plugin app-controller.

2008-03-05 Thread Dardo Sordi Bogado
Try (not sure) importing it (App::import) , then inherit from PluginAppController from AppController. On Wed, Mar 5, 2008 at 2:46 PM, vince <[EMAIL PROTECTED]> wrote: > > I'm having issues with this. > I need something to follow through my whole website, including my > plugins as the cms softw

plugin overwrites cakephp app-controller with plugin app-controller.

2008-03-05 Thread vince
I'm having issues with this. I need something to follow through my whole website, including my plugins as the cms software is plugin driven. However the app-controller in my authake plugin is overwriting everything the the main app-controller is doing. How do I inherit the main app-controller int

Re: Paginate for array (not a model?)

2008-03-05 Thread Chris Hartjes
On Wed, Mar 5, 2008 at 11:22 AM, Mech7 <[EMAIL PROTECTED]> wrote: > > Is it possible to use the paginate for an array? Basically hi have an > article which contains pagebreaks, which i just put in an explode so > it's an array.. but can i utilize the paginate function from cake for > this? Ye

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

2008-03-05 Thread Baz
Trust me, revisit the hasOne. I've been trying to do this for months (include the ugly step through hack). The hasOne works for me. On Wed, Mar 5, 2008 at 9:17 AM, teknoid <[EMAIL PROTECTED]> wrote: > > I've tried the hasOne trick, but it doesn't seem to do the job I > need. > Basically becau

Re: TiramisuPHP

2008-03-05 Thread aranworld
I have to admit some skepticism when I see a line like this: "TiramisuPHP provides a way to keep your views as clean as possible, using the powerful Smarty template engine in the main view class." One of CakePHP's biggest assets, in my mind, is it's lack of a custom templating system. I like us

Paginate for array (not a model?)

2008-03-05 Thread Mech7
Is it possible to use the paginate for an array? Basically hi have an article which contains pagebreaks, which i just put in an explode so it's an array.. but can i utilize the paginate function from cake for this? --~--~-~--~~~---~--~~ You received this message bec

I'm speaking tonight

2008-03-05 Thread nate
Hey everybody, I'm speaking tonight in Columbia, MD, so clear your schedules. I'll be giving an encore of my REST talk from CakeFest, and maybe some other stuff as well. For details, and/or to sign up, see here: http://php.meetup.com/372/ --~--~-~--~~~---~--~~ You

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

2008-03-05 Thread teknoid
I've tried the hasOne trick, but it doesn't seem to do the job I need. Basically because I have a chain of a few tables I would like to apply some condition to each one of the tables and get the relevant result. While in this case all the conditions get applied properly, the end result comes with

Re: Cakephp query have all conditions in join

2008-03-05 Thread c3k
On 5 Mar, 13:32, AD7six <[EMAIL PROTECTED]> wrote: > Based on what logic would you like cake to ignore the conditions you > are explicitly telling it to restrict your results on. I expect that my conditions are used in the where, why they are used in the where AND in the join??? Which are the

CakePHP + Bake + phpDocumentor - 1.2.x.x Branch

2008-03-05 Thread Dérico Filho
Hello all, I've posted a patch for CakePHP 1.2.x.x branch (https:// trac.cakephp.org/ticket/4276), which patches bake.php to produce phpDocumentor tags together php code output. Bye, Dérico Filho - http://dbdesigner2cake.cirello.org --~--~-~--~~~---~--~~ Yo

Re: mass email component for cakephp

2008-03-05 Thread kiang
If you don't have to insist using CakePHP, try phplist: http://www.phplist.com kiang On Mar 4, 6:37 pm, 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 well to send >

$this->create() //confusion

2008-03-05 Thread bingo
hi all, Can someone explain me when to use create() function. I believe it make sense to use it when adding a record. But should it be used before saving a particular field. It seems if you use create function before saveField, CakePHP update all the fields with default values. Is this an expect

'object_map' entry in core Cake caches

2008-03-05 Thread Dave J
Hi everyone, just a little curious thing I noticed today while looking at the cache entries. One of them is called 'object_map', which is created by the Configure class and seems to contain an array with the entire list of Controllers in the project. It seems like this entry is being written to

Re: TiramisuPHP

2008-03-05 Thread Chris Hartjes
On Wed, Mar 5, 2008 at 9:15 AM, cakeFreak <[EMAIL PROTECTED]> wrote: > > Hey guys, > > does anyone has any news or any clue about this project: TiramisuPHP? > > see it here: http://www.nuvole.org There was a presentation about it at CakeFest in Orlando... -- Chris Hartjes Internet Loudmouth

TiramisuPHP

2008-03-05 Thread cakeFreak
Hey guys, does anyone has any news or any clue about this project: TiramisuPHP? see it here: http://www.nuvole.org Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Re: Multiple instances of components

2008-03-05 Thread AD7six
On Mar 5, 1:53 pm, danomite <[EMAIL PROTECTED]> wrote: > To initialize different instance of the same components with different > data. None-answers are so enlightening. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Translate behaviour search problem

2008-03-05 Thread NRGBilly
Hi, does anyone know how to search a field that is translated? TranslateBehaviour doesnt seem to support this feature. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

ajax->link update with condition

2008-03-05 Thread schneimi
I am working with the latest beta of cake and have an ajax->link with following options: $options = array('update'=> 'div_id', 'position' => 'Bottom', 'condition' => "!$('element_id')" ); The link should update a div onl

Re: Multiple instances of components

2008-03-05 Thread danomite
To initialize different instance of the same components with different data. On Mar 4, 1:46 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote: > Why would you have the Controller have different instances of the same > Component? > > -Original Message- > From: cake-php@googlegroups.com [m

Re: Cakephp query have all conditions in join

2008-03-05 Thread AD7six
On Mar 5, 12:35 pm, c3k <[EMAIL PROTECTED]> wrote: > Someone can explain me why cakephp when make joins use all the > condition passed for the query? Based on what logic would you like cake to ignore the conditions you are explicitly telling it to restrict your results on. > > I've see this be

Re: mass email component for cakephp

2008-03-05 Thread mbavio
I am creating a plugin for newsletter in my application. There you have the two links that you will need: http://www.phpclasses.org/browse/package/4303/download/zip.html http://www.ibm.com/developerworks/library/os-php-fwk5/index.html?S_TACT=105AGX44&S_CMP=ART The first is a PHP Class to "queue

__call, route regular expressions, etc

2008-03-05 Thread Gökçe Yalçın
Hello everyone. I'm studing cake for a couple of days. I am new to MVC design pattern, so i done 1-2 workarround for what i meaning to, but not sure im following the right way. 1) I need access control objects with types, every firm might have multiple module users, if i use ACL, seems i must a

Cakephp query have all conditions in join

2008-03-05 Thread c3k
Someone can explain me why cakephp when make joins use all the condition passed for the query? I've see this behavior from the beginning and i didn't worry about it, but today i've found a query on a big table that is slowing down my app because of the join condition. I'd like to know more about

acl and class overload functions

2008-03-05 Thread Gökçe Yalçın
Hello everyone. I'm studing cake for a couple of days. I am new to MVC design pattern, so i done 1-2 workarround for what i meaning to, but not sure im following the right way. 1) I need access control objects with types, every firm might have multiple module users, if i use ACL, seems i must a

Login Redirected differently if coming from different forms

2008-03-05 Thread Valentin Ceaprazaru
Hola I have a question about a login action. If i use the default form on the login page everything works fine and the users are directed to their home pages. But if i use another form, that i have on another page (that has the same input names) i get redirected to the regular login form. The stu

Re: try implementing schema?

2008-03-05 Thread ullumski
Thanks to a hint from AngelDeLaNoche (in the irc) i found the php- function "var_export" ( http://de3.php.net/manual/en/function.var-export.php ) very helpful in this issue (i had a huge model 8 ) ). So instead of pr($this->Model->schema()); try var_export($this- >Profile->schema()) ... it'll

Ajax Update HABTM?

2008-03-05 Thread Doug
I've built the scaffold which works fine at updating my HABTM record from the edit screen. However, in my app I want to be able to update my HABTM record via the view using an Ajax call. For example: Customer >- -< Product I want to be able to view my customer with a select box (or checkboxes)

Re: Multiple instances of components

2008-03-05 Thread danomite
Check out some books on OOP ... it's pretty cool ;) On Mar 4, 1:46 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote: > Why would you have the Controller have different instances of the same > Component? > > -Original Message- > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] O

Re: enum

2008-03-05 Thread Dardo Sordi Bogado
In the Controller, calls to your models should go in your controllers. On Wed, Mar 5, 2008 at 2:34 AM, George C <[EMAIL PROTECTED]> wrote: > > > > 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

Re: What am I doing wrong???

2008-03-05 Thread Dardo Sordi Bogado
Oh, I forgot: This are other important sources of information: http://book.cakephp.org (CakePHP 1.2 Manual, start by the blog tutorial) http://manual.cakephp.org (CakePHP 1.2 Manual, start by the blog tutorial) Ibm tutorial (5 part series, requieres free registration): http://www.ibm.com/develo

Re: What am I doing wrong???

2008-03-05 Thread Dardo Sordi Bogado
Ok, fist welcome to CakePHP ;) You seem to have installed cake properly, that's good. Now, if you don't show us what you have (models, controllers, database) and where (cake version also) we can do nothig for you. Anyway, from reading the pdf, you should point your browser to: http://localhost/i

Re: spanning a form

2008-03-05 Thread Dardo Sordi Bogado
You can use Session or an hidden field in the form with the serialized data, then in add2 unserialize it. On Wed, Mar 5, 2008 at 9:10 AM, bob <[EMAIL PROTECTED]> wrote: > In cakephp 1.2, if i submit a form from the view to the controller, the data > will be stored in $this->data. But If I will to

Re: Which CakePHP version should I use?

2008-03-05 Thread bob
if you just starting to learn cake, better to jump in right away with cakephp 1.2. this is what i did. i started with 1.1, but quickly learned that going to 1.2 would be a pain. so if u are just starting, might as well go to 1.2 On Wed, Mar 5, 2008 at 2:36 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]

spanning a form

2008-03-05 Thread bob
In cakephp 1.2, if i submit a form from the view to the controller, the data will be stored in $this->data. But If I will to span the form across 2 views, how would I keep the form data from the first view? For example, if I have controller A and add1 and add2 as the actions. I want to set it up s

Re: How to load helpers for elements?

2008-03-05 Thread Dardo Sordi Bogado
To load the SuperHelper: $super =& ClassRegistry::init('Super', 'helper'); echo 'CakePHP is ' . $super->cool(); On Wed, Mar 5, 2008 at 4:34 AM, Mech7 <[EMAIL PROTECTED]> wrote: > > But what if i use them on the home page? > > > > On Mar 4, 11:58 pm, jonknee <[EMAIL PROTECTED]> wrote: > > For

Re: design guidance with respect to cakephp's automagic

2008-03-05 Thread Dardo Sordi Bogado
No, it does not take away CakePHP automagic (CakePHP is so good). Setup your associations to include the condition. class Counsellor extends AppModel { var $name = 'Counsellor'; var $hasMany = array( 'Agency' => array( 'className' => 'Agency', 'conditions' => 'A

Re: Which CakePHP version should I use?

2008-03-05 Thread Dardo Sordi Bogado
Oh I forget about: * Improved models validation * Localization and Internationalization * New Shells On Wed, Mar 5, 2008 at 8:34 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]> wrote: > A short list of what I remember: > > * Pagintaion > * Integrated Auth (Auth component) > * Email Component > *

Re: Which CakePHP version should I use?

2008-03-05 Thread Dardo Sordi Bogado
A short list of what I remember: * Pagintaion * Integrated Auth (Auth component) * Email Component * Model Behaviors (Models) * Improved plugins * Better SQL generated in models (Models) * "With" Associations (models) * Web services (Router) * Extensions (Router) * Sweet FormHelper * Improved per

Re: Checkbox with array ( Cakephp 1.2 )

2008-03-05 Thread francky06l
echo $form->input('p_fids', array('type' => 'select', 'multiple'=> 'checkbox', 'options' => 'youroptions', ), ); Works for me, however I also get blackholed by Security component (I also have

Re: model instance to form helper

2008-03-05 Thread gbk *
you're right, thanks for the help ! On márc. 4, 17:28, "Christian Winther" <[EMAIL PROTECTED]> wrote: > 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 au

Re: Which CakePHP version should I use?

2008-03-05 Thread Wisnu Manupraba
is there anybody can review the advantages 1.2 than 1.1? thanks, On Wed, Mar 5, 2008 at 6:09 AM, jonknee <[EMAIL PROTECTED]> wrote: > > 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, an

What am I doing wrong???

2008-03-05 Thread damo
I'm a complete newbie to CakePHP, and also have very limited experience of this kind of thing... but I'm giving it a shot! So, I have MySQL, Apache and CakePHP all installed and seemingly working correctly. I built a simple database and some PHP scripts and that all worked fine. So cake is insta

Re: error of memory???

2008-03-05 Thread sabkaraja
Last time I saw this error was when I ran an incorrect loop. please check your code. especially the loop condition. (and if possible paste them here for help) cheers On Mar 5, 12:51 am, Baz <[EMAIL PROTECTED]> wrote: > Isn't this a PHP error? Why are we talking bout wording the error message?

Re: Form->select() and Form->input() inconsistency

2008-03-05 Thread [EMAIL PROTECTED]
Ok. I think you explanation sounds good to me. I didn't know that input() is a "helper of helpers" and I should have used text() instead to do input type of text. Otherwise I really did expect both input() and select() or any other FormHelper functions to behave similarly. Thank you. On Mar 3, 4:

Re: view caching problem

2008-03-05 Thread Claudia
That sounds good - thank you. Claudia On Mar 4, 6:34 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote: > 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.cakep