Re: display enum values in dropdown

2006-09-15 Thread John Zimmerman
On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: John you didn't read my suggestion.  It was suggested that they shouldopen a ticket to complain that CakePHP should remove it since the generateList from enum wasn't part of the core it should be removedfrom the scafolding altogether.Sorry ab

Re: display enum values in dropdown

2006-09-15 Thread [EMAIL PROTECTED]
John you didn't read my suggestion. It was suggested that they should open a ticket to complain that CakePHP should remove it since the generateList from enum wasn't part of the core it should be removed from the scafolding altogether. --~--~-~--~~~---~--~~ You r

Re: email component for 1.2.x.x release

2006-09-15 Thread [EMAIL PROTECTED]
PHPNut! You are crazy! I cannot believe you are doing an emailer?!?!?!?! You are the most awesome coder ever. Everyone should shower your greatness with money to push you to create greater things for all of us ;) http://www.cakefoundation.org/pages/contribute In the meantime maestro, I have

Re: email component for 1.2.x.x release

2006-09-15 Thread Larry E. Masters aka PhpNut
Not yet, I have not finished it.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP

email component for 1.2.x.x release

2006-09-15 Thread maestro777
I would like to check out the new email component that will soon be released with the 1.2.x.x. Does anyone have any instructions or preferably examples on how to use this? That would be a great help for me. Thanks in advance. --~--~-~--~~~---~--~~ You received thi

Re: display enum values in dropdown

2006-09-15 Thread John Zimmerman
The "Baked ENUM's" snippet has been updated.http://cakeforge.org/snippet/download.php?type=snippet&id=242Here is also a link to one of the tickets submitted to trac with phpnut's explanation. https://trac.cakephp.org/ticket/1110 --~--~-~--~~~---~--~~ You received th

Re: display enum values in dropdown

2006-09-15 Thread John Zimmerman
On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I would submit it to trac.  Submit them to make CakePHP moregeneralized to support all databases the support for ENUM in the scaffolding needs to be removed to make it more consitent with the restof the code that is general for all databases.

Re: Web Application authentication

2006-09-15 Thread [EMAIL PROTECTED]
WoW! That software costs a lot of money. SourceGuardian does the same for a fraction of that cost. I guess it is a possibility that Zend's product is better than Source Guardian's. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: display enum values in dropdown

2006-09-15 Thread [EMAIL PROTECTED]
I would submit it to trac. Submit them to make CakePHP more generalized to support all databases the support for ENUM in the scaffolding needs to be removed to make it more consitent with the rest of the code that is general for all databases. That way you know to use ENUM (::hack, cough::) you

Re: Table without Model

2006-09-15 Thread [EMAIL PROTECTED]
Yes. You will find that CakePHP does a lot of things automatically you just have to know about them. Refer to the manual on models and you will find more information and an example. It could save you some time. I finally used the bake.php from command line and it was GREAT! --~--~-~-

Re: Browse by category

2006-09-15 Thread Hanzgroove
I'm still trying to get this hierarchy to work. Once I can get this solved I can move on to building out the rest of the site which should be a snap but I'm stuck for now until this core part of my app has a solid solution. Has anyone done anything similar to what I'm trying to accomplish? If you

Re: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
Hi, Good idea. It doesn't show any warnings, though. And it only shows one INSERT statements as being executed, yet 3 records are still created. 1 DESC `applicants` 32 32 0 2 DESC `divisions`2 2 0 3 DESC `statuses`

Re: Problem with $this->redirect()

2006-09-15 Thread John Zimmerman
On 9/15/06, kacperix <[EMAIL PROTECTED]> wrote: mod_rewrite is install on 100% and all .htaccess files are valid. But Ihave still this problem. PLEASE HELP.All caps don't really help.But  if you describe your environment someone can help you sort it out. What is your Operating System?How did you i

Re: Copying a db record

2006-09-15 Thread Sohei Okamoto
What is your debug level? Can you turn it to higher and see if there is any warning?I haven't discovered exact cause yet, but I had some problem with excuting same page twicewhen there is session warning about sending header. Just in case.Sohei --~--~-~--~~~---~--~~

Re: Problem with $this->redirect()

2006-09-15 Thread kacperix
mod_rewrite is install on 100% and all .htaccess files are valid. But I have still this problem. PLEASE HELP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to ca

Re: Session problem only with php v 4.x.x

2006-09-15 Thread John Zimmerman
On 9/15/06, Brian French <[EMAIL PROTECTED]> wrote: A long time ago i spent hours trying to figure out why i was gettingthis only to find out the i had a space outside of the php tags (spacehere ). This is the first thing i look for now when i get a session error like that. You may want to check to

Re: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
I tried findById, with the same results. Here's the var_dump of $this->data using either method (read or findById): array(7) { ["Applicant"]=> array(32) { ["id"]=> string(0) "" ["schoolyear_id"]=> int(15) ["lastname"]=> string(6) "Zoposc" ["firstname"]=> strin

Re: pages_controller

2006-09-15 Thread John Zimmerman
On 9/15/06, Chris Lamb <[EMAIL PROTECTED]> wrote: On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote:> I have modified the default pages controller to add a few tweaks by> first copying it to my app directory.  I then renamed it to> static_controller.php, modifying the code and the views dir

Re: Copying a db record

2006-09-15 Thread Brian French
what is in the $this->data variable in the copytest function? Is it recursive? I cant remember off the top of my head... does read() return a recursive array? Would using something else like $this->Applicant->findById() possibly fix this? [EMAIL PROTECTED] wrote: > Thanks for keeping at it! >

Re: Session problem only with php v 4.x.x

2006-09-15 Thread Brian French
A long time ago i spent hours trying to figure out why i was getting this only to find out the i had a space outside of the php tags (space here ). This is the first thing i look for now when i get a session error like that. You may want to check to see if you have this too. :-p Brian French

Session problem only with php v 4.x.x

2006-09-15 Thread zipman
I am on a project and all this time I was developing using php 5.1.4. I haven't used any php 4.x.x incompatible code. The problem is that I recently learned that the hosted enviroment provided only php 4.x.x and I tried to switch ,as I know cakephp is compatible with both php 4 and 5. The problem

Re: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
Thanks for keeping at it! This option: $this->Applicant->save(array('Applicant',$this->data['Applicant'])); didn't make any changes to the database. This option: $this->Applicant->save($this->data); produced the same results as before, 1 good copy of the record, sandwiched between 2 new empty re

Re: Re: Copying a db record

2006-09-15 Thread Samuel DeVore
save takes the associated array either $this->Applicant->save($this->data); or $this->Applicant->save(array('Applicant',$this->data['Applicant')); On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks - it has been pasted. > > http://www.cakephp.org/pastes/show/d2e1f32e5bcb2e920a6

Problem with $this->set() data in Cached Views?

2006-09-15 Thread [EMAIL PROTECTED]
Hey All, Just started a couple months ago on cake, so still pretty green. Wanted to run this by you guys to make sure I'm not missing the boat here. I have view caching with the cache helper working with simple pages. The problem starts when the tags are added into the view. If I wrap tags ar

Re: Table without Model

2006-09-15 Thread codecowboy
Do you call the generateList function on a model: $this->model->generateList(...)? If so, i have been wasting a lot of time do it another way --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: date format

2006-09-15 Thread M
I solved the problem, I set all the date fields as readonly, and i plugged in Tigra Calendar. Works perfectly, as the user now inserts data in the format used by MySQL with the Tigra tool. Many thanks for the help. --M --~--~-~--~~~---~--~~ You received this mes

Re: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
Thanks - it has been pasted. http://www.cakephp.org/pastes/show/d2e1f32e5bcb2e920a6b1f377027a6a7 --~--~-~--~~~---~--~~ 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@googl

Re: Copying a db record

2006-09-15 Thread nate
Sounds like something else is going wrong. Try pasting your full controller code along with a schema dump of the relevant tables to http://cakephp.org/pastes/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

Re: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
Again, thanks for the replies guys. I do appreciate the help! Unfortunately, neither strategy worked, although they did show interesting results. Brian's method threw me errors. But Samuel's solution made the following happen: Record 1 remains unchanged. Record 2 created, with the new schoolyear

Re: Copying a db record

2006-09-15 Thread Brian French
After you get the record, unset $this->Applicant->id: function copytest($id) { $this->Applicant->id = $id; $this->data = "" unset($this->data['Applicant']['id']); unset($this->Applicant->id = $id;); $this->data['Applicant']['schoolyear_id'] = 16; $this->Applicant->save($this->data[

Re: Re: Copying a db record

2006-09-15 Thread Samuel DeVore
try function copytest($id) { $this->Applicant->id = $id; $this->data = $this->Applicant->read(); $this->Applicant->id = null; unset($this->data['Applicant']['id']); $this->data['Applicant']['schoolyear_id'] = 16;

Re: display enum values in dropdown

2006-09-15 Thread nate
Oh, and I just re-read your post, and the reason you're getting errors is because you're putting app_model.php in app/models. It should be in app/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: display enum values in dropdown

2006-09-15 Thread nate
Sorry, the method call above should have been fullTableName(), not getFullTableName(). --~--~-~--~~~---~--~~ 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

Re: display enum values in dropdown

2006-09-15 Thread nate
[EMAIL PROTECTED] wrote: > To be honest, I don't think either are great solutions, because: > > - if we put the code in our data model, then only that model can access > that function, we'd have to duplicate the code for other models that > might want to use an enum field. So abstract just the p

Re: Pear (Re: wiki parser)

2006-09-15 Thread codecowboy
Can we get back to the original question please??? --~--~-~--~~~---~--~~ 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: Copying a db record

2006-09-15 Thread [EMAIL PROTECTED]
Thanks for the reply. I tried unsetting the 'id' value, but most strangely, the result is that it changes the original record anyway! I've tried it a dozen times, just to make sure, but that is indeed what is happening. function copytest($id) { $this->Applicant->id = $id;

Re: HowTo Change view template?

2006-09-15 Thread [EMAIL PROTECTED]
Oh! I knew it was something simple! Thanks. --~--~-~--~~~---~--~~ 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

Re: display enum values in dropdown

2006-09-15 Thread [EMAIL PROTECTED]
To be honest, I don't think either are great solutions, because: - if we put the code in our data model, then only that model can access that function, we'd have to duplicate the code for other models that might want to use an enum field. - that snippet doesnt work with tables with underscores,

Re: pages_controller

2006-09-15 Thread [EMAIL PROTECTED]
Chris Lamb: Nice. It worked when I modified the roues.php :) it was not necessary to call the display function in test function. I had problems passing variables through the url, so I discarded the idea of modifying the original pages controller, and did it the same way as John did. John Zimmerma

Re: Web Application authentication

2006-09-15 Thread Darian Anthony Patrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zend has a small business discount program that covers Zend Guard: http://www.zend.com/store/software/zend_small_business_program Jon Bennett wrote: >> First post! > > welcome! > >> Okay, what about this: >> Make a key file on the client server wit

Re: View what scaffolding does?

2006-09-15 Thread nate
Also, check these out: http://cakephp.org/screencasts Some great examples of Bake usage. --~--~-~--~~~---~--~~ 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: Web Application authentication

2006-09-15 Thread Jon Bennett
> First post! welcome! > Okay, what about this: > Make a key file on the client server with an expiration date encoded in the > key. > Have your program check the key's expiration date every time it runs > When the key expires, call a page on your site to get a new key with a new > expiration da

Re: View what scaffolding does?

2006-09-15 Thread John David Anderson (_psychic_)
On Sep 15, 2006, at 8:37 AM, TWIOF wrote: > > If you go to: > > your_server\htdocs\cake_root_dir\cake\scripts\ > > using command prompt (win) or the shell on linux (i think) and run > cake.php you can get it to build the same output as the scaffold, it > inserts the controller and view in the ap

Re: View what scaffolding does?

2006-09-15 Thread TWIOF
If you go to: your_server\htdocs\cake_root_dir\cake\scripts\ using command prompt (win) or the shell on linux (i think) and run cake.php you can get it to build the same output as the scaffold, it inserts the controller and view in the appropriate directories. Hope that's what you meant. TWIOF

Re: Table without Model

2006-09-15 Thread [EMAIL PROTECTED]
Was just wondering if I could, so I wouldn't have to setup models for them. No problem! --~--~-~--~~~---~--~~ 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.co

Re: Table without Model

2006-09-15 Thread [EMAIL PROTECTED]
Why would you want to do that? If you went ahead and gave them models and controllers then you could use generateList from CakePHP to quickly make your selectTags for counties and countries. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Help needed with implementing a datagrid

2006-09-15 Thread [EMAIL PROTECTED]
To make sure it degrades build your entire application in HTML first. Make sure that works. Then, worry about adding in AJAX. So, then you make sure that you add in AJAX to fit the model of HTML working. So, things like it will send the requests directly and return the method whereas in HTML it

Re: Web Application authentication

2006-09-15 Thread [EMAIL PROTECTED]
I like it. --~--~-~--~~~---~--~~ 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 more op

View what scaffolding does?

2006-09-15 Thread [EMAIL PROTECTED]
Hi, I've rendered some pages with the $scaffold commands but I would like to view what Cake has output has code...how can I? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Table without Model

2006-09-15 Thread [EMAIL PROTECTED]
Hi all, I have 2 tables in my database which hold lists of counties and countries. How can I use these in my controllers without creating models for them?? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: ADMIN route and password-protection with http authentification

2006-09-15 Thread purepear
Thanks nate. I did similar thing with Sd_Auth but HTTP authentication sounds better.. i'll try this one. I think this is as simple as protecting /admin folder through host's ControlPanel or .htaccess file. So this topic might help people who want simple(no database) single user(admin) protection

Re: Save function executes before it should

2006-09-15 Thread AD7six
Only you have the power for that zipman, there doesn´t appear to be anything inherantly wrong with your code Disable js - do you still see 2 updates? if so put something like log (debug_backtrace()); in your method and see where you are calling it twice. HTH, AD7six --~--~-~--~~-

Re: pages_controller

2006-09-15 Thread Chris Lamb
Afternoon. On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote: > I have modified the default pages controller to add a few tweaks by > first copying it to my app directory. I then renamed it to > static_controller.php, modifying the code and the views directory > appropriately. Did you

Re: Save function executes before it should

2006-09-15 Thread zipman
Do you see any problem? --~--~-~--~~~---~--~~ 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

Re: what's the matter of include?

2006-09-15 Thread RosSoft
thtml == html if you don't put any tags JitZhang ha escrito: > but some page is html ,no all is thtml! > > http://etrade.webcrew.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Req HRMgr/SAP/SalesMktgIT/PHPProg/S/wEngg/CallCenterExec/UnixProg/DevVB&Orc/MainfrmProf/BussAnalyst/BOAdmin....

2006-09-15 Thread cute.itgirl
  Hi Dear Members,   FOLLOWING R THE NEW JOBS POSTED THIS WEEK (WEEKLY NEWSLETTER) :   Job Title Job Posted By HR Manager Global Talent Search & Consult sap-bw consultant iGen consulting Sales and Marketing

Re: Browse by category

2006-09-15 Thread Jon Bennett
> > /browse/computers/web/programming/php you could also try using something other than / between each item, which you could explode in the controller method, eg: /browse/computers-web-programming-php that way you don't need to mess about with routes... jb -- jon bennett t: +44 (0) 1225 34

Re: going deeper to a generate list..

2006-09-15 Thread nate
generateList really won't do what you want. A good place to start is here: http://wiki.cakephp.org/docs:understanding_associations You can learn about how to specify conditions to filter associated models. You can also go here: http://manual.cakephp.org/chapter/models and read about $recursive

Re: populating model data

2006-09-15 Thread Evan
AD7six: I think it would be really careless on the programmer's part to give an association the same name as a field in a particular model. I can't figure why on earth would you want to have a Comments association and a comments field at the same time... And I don't understand the problem with m

going deeper to a generate list..

2006-09-15 Thread symfony
Following problem: I want to create an filter for ouputting me choosen data.. For example: I have an customer, every customer has many contact persons and every contact person has many special functions.. Ok, lets look at the tables, which are: customer, contacts and functions. The relations are c

Re: Help needed with implementing a datagrid

2006-09-15 Thread green-mamba
Thanks for the feedback, I will look into it. Just one question - all these javascript actions are very nice, but how does one make it degrade gracefully if Javascript is switched off? I mean, if I make the whole 'create a new row' in my table dependent on Javascript what is going to happen with

Re: Re: HowTo Change view template?

2006-09-15 Thread Andreas Waidelich
Did you have a look at elements? (http://manual.cakephp.org/chapter/views) 2006/9/15, nate <[EMAIL PROTECTED]>: > > // Controller: > > function view ( ) { > $this->render("view_std"); > } > > > > > -- e> [EMAIL PROTECTED] w> http://andreas-waidelich.de m> +49.177.423 09 48 --~--~

Re: HowTo Change view template?

2006-09-15 Thread nate
// Controller: function view ( ) { $this->render("view_std"); } --~--~-~--~~~---~--~~ 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 fr

HowTo Change view template?

2006-09-15 Thread [EMAIL PROTECTED]
Gurus, I have what would seem to be very simple question. How do I change the template that gets used for an action? Instead of the view.thtml template for the view action, I want to use view_std.thtml, view_long.thtml, or view_short.thtml depending on some logic. How do I do this in cakePHP? T

Re: Copying a db record

2006-09-15 Thread John Zimmerman
On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: .clippedWhat I want to do is simple - take the original Applicant record (schoolyear = 16) and copy them to a new record, with all the samedata, except that the schoolyear = 15.$this->Applicant->id = $id;  

Re: Browse by category

2006-09-15 Thread John Zimmerman
On 9/14/06, Hanzgroove <[EMAIL PROTECTED]> wrote: One more thing you might know off the top pf your head. Does cakeprovide a mechanism for examining the url?For example:/browse/computers/web/programming/phpInside of your controller you can do a  pr($this->params);  to see the contents of the params

Re: pages_controller

2006-09-15 Thread John Zimmerman
I think you might be happier if you split the functionality into two different controllers.I have modified the default pages controller to add a few tweaks by first copying it to my app directory.  I then renamed it to static_controller.php, modifying the code and the views directory appropriately.