year only combobox

2011-01-22 Thread Miqdad Ali
i want a select box date type but it's don't display date and month display only year ??? Miqdad Ali http://www.miqdadalik.co.cc/ http://www.miqdadali.co.cc -- Our newest site for the community: CakePHP Video Tutorials

Re: Creating a Preview page

2011-01-22 Thread WhyNotSmile
Thank you, that's extremely helpful, exactly what I was looking for. I'll try it out... may be back with questions! Regards, Sharon On Jan 21, 9:01 pm, cricket zijn.digi...@gmail.com wrote: On Fri, Jan 21, 2011 at 9:05 AM, WhyNotSmile sharongilmor...@gmail.com wrote: In my admin area, I

Re: Using ReST API

2011-01-22 Thread John Maxim
I made my question clearer in this post: http://stackoverflow.com/questions/4767386/rest-how-to-convert-an-existing-php-library-file-so-it-can-be-used-in-a-cakephp Maybe it's better for someone to answer... Regards, John Maxim. On Jan 22, 3:28 am, John Maxim goog...@gmail.com wrote: Hi

Re: Creating a Preview page

2011-01-22 Thread WhyNotSmile
Ok, my first questions are: * Is it ok to comment out $.wymeditors(0).update(); - I'm using FCK Editor rather than wymeditor? * What does showIndicator do? Is that a jQuery command? It seems like the script is bailing out at this point. Thanks! -- Our newest site for the community: CakePHP

Re: Problem with copeied folder

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 2:07 AM, Gopinath T.M gopi4bre...@gmail.com wrote: i am working cakephp application. that folder name(application foldername) - sample This is orginal url of application - http://prog.appps.com/sample i like to maintain this application also another url -

Re: Creating a Preview page

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 9:32 AM, WhyNotSmile sharongilmor...@gmail.com wrote: Ok, my first questions are: * Is it ok to comment out $.wymeditors(0).update(); - I'm using FCK Editor rather than wymeditor? Yes. That's specific to WYMEditor. I haven't used FCK in a long time; if it's necessary

Re: Creating a Preview page

2011-01-22 Thread WhyNotSmile
Another question: what are 'pages_modal' and 'pages_modal_content'? Are those in the original window or the pop-up? Thanks. -- 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 others

Re: Creating a Preview page

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 9:37 AM, WhyNotSmile sharongilmor...@gmail.com wrote: Another question: what are 'pages_modal' and 'pages_modal_content'?  Are those in the original window or the pop-up? It's '#newsletter_modal'. That's a hidden div in the page that JQModal uses to create the pop-up

Re: Querying the database in a view

2011-01-22 Thread clearflysyst...@googlemail.com
But what about when it breaks and you or someone else has to fix it and you can't remember what you did and where? Conventions are there for a reason, frameworks are designed to help you code efficiently but only work efficiently when you follow those conventions. Helpers are View Helper Classes

Re: What are your personal conventions for Helper names and using helper classes?

2011-01-22 Thread clearflysyst...@googlemail.com
I have to agree $this-Helper. It makes more sense when reading your code that you're referencing a Helper Class and not a local variable you have set somewhere else in your code. Also i quite often have for loops where i'm building up a html string for output and $html would be the logical

Re: What are your personal conventions for Helper names and using helper classes?

2011-01-22 Thread euromark
with a little hack you can already disable $html for the object... http://www.dereuromark.de/2010/09/12/neccessary-core-hacks-cake-1-3/ On 22 Jan., 16:31, clearflysyst...@googlemail.com clearflysyst...@googlemail.com wrote: I have to agree $this-Helper. It makes more sense when reading your

Integration with SAP

2011-01-22 Thread Bapajan
Hi, I intend to use CakePHP for our internal application development to address the following. I would be grateful to hear your advise / feedback / guidance on the same. - extract information from SAP and display the same to a group of users only. Is there any known SAP connector which works with

Re: Check if a record has at least one relation with another model

2011-01-22 Thread albertof
Hi Ernesto. Speaking about the issue that you commented, that function is provided by cakephp by means of 'Asocciations: Linking models together'. It's not what you want, but it could be useful. Check out the following link! http://book.cakephp.org/view/1039/Associations-Linking-Models-Together

Re: What are your personal conventions for Helper names and using helper classes?

2011-01-22 Thread David Kullmann
Connrs: It is best practice to use $this-Helper and I believe you may run into some issues if you don't do it with some helpers in Cake1.3.x. -DK On Jan 21, 9:53 am, connrs shu...@gmail.com wrote: Hi guys I suppose this is my first ever post on any CakePHP related forum/group so get the

Re: Creating a Preview page

2011-01-22 Thread SAGAR THORAT
NICE On Sat, Jan 22, 2011 at 6:53 AM, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 22, 2011 at 9:37 AM, WhyNotSmile sharongilmor...@gmail.com wrote: Another question: what are 'pages_modal' and 'pages_modal_content'? Are those in the original window or the pop-up? It's

repository modified just after clone

2011-01-22 Thread Tarcisio Sassara
after i clone the repository: git clone https://github.com/cakephp/cakephp.git myclone with a git status i see: modified: cake/console/cake.bat modified: cake/tests/test_app/plugins/test_plugin/config/load.php modified: cake/tests/test_app/plugins/test_plugin/config/ more.load.php Why?

Thinking about using Cake PHP to develop some sites

2011-01-22 Thread elija
The sites are potentially going to be busy with millions of page views a month (one has 1/2 million pages a month and is looking to expand), my question is how scalable is a site built using Cake? Thanks Elija -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Larry E. Masters
Very scalable. -- Larry E. Masters On Sat, Jan 22, 2011 at 9:25 AM, elija elijatheg...@gmail.com wrote: The sites are potentially going to be busy with millions of page views a month (one has 1/2 million pages a month and is looking to expand), my question is how scalable is a site built

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Jamie
Ahh, the weekly can Cake handle my X views/hits/visitors question. Yes it can. Now go develop. ;) - Jamie On Jan 22, 7:25 am, elija elijatheg...@gmail.com wrote: The sites are potentially going to be busy with millions of page views a month (one has 1/2 million pages a month and is looking to

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread elija
Sweet! Now, given that this is in a corporate environment and the development time is estimated to be several months, should I be thinking about 1.3.7 or should I skip to 2.0.0 and accept that some potential instability while it is being developed will give a more up to date framework when it is

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Larry E. Masters
Start with 1.3, write your code for PHP 5 though. And when 2.0 is released stable your upgrade will be easier. -- Larry E. Masters On Sat, Jan 22, 2011 at 10:44 AM, elija elijatheg...@gmail.com wrote: Sweet! Now, given that this is in a corporate environment and the development time is

Design templates

2011-01-22 Thread eldorado2768
I have been playing with Cakephp for about a month now (I just gave away that I am an extreme newbie!) and before that, RoR. Am I just imagining this or is it true that these web application development frameworks - RoR, Codeigniter, Cakephp, Symfony, etc. all have a common shortcoming with

Re: Design templates

2011-01-22 Thread Larry E. Masters
Ill equipped? You mean to say we do not include something in the core by default? There is nothing stopping you from creating your own view class that will allow you to us any bloated template engine you want. -- Larry E. Masters On Sat, Jan 22, 2011 at 12:17 PM, eldorado2768

Re: Querying the database in a view

2011-01-22 Thread Devario Johnson
I agree with Clear -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: CakePHP 1.3.7 released

2011-01-22 Thread Devario Johnson
looking forward to it -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Creating a Preview page

2011-01-22 Thread Devario Johnson
very nice -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Devario Johnson
Cake is a great framework and it is very scalable. May not be the best option for EVERY site, but it can get everything done within reason. -- 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

Re: Design templates

2011-01-22 Thread Devario Johnson
lol -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

See insert statements

2011-01-22 Thread opike
I'm trying to troubleshoot an add.ctp view and I'd like to be able to see the insert statement that cake is using. sql_dump() is not currently displaying the insert statement. Is there some way to configure sql_dump to do this or do I need to go into the log files? -- Our newest site for the

Re: Design templates

2011-01-22 Thread eldorado2768
That's a very good point. However, you do admit that you do have to write your own view class. I am just inherently lazy and like to avoid as much coding as possible. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: See insert statements

2011-01-22 Thread opike
Well I looked at the mysql logs and it doesn't look like cakephp is even getting to the point of issuing the insert statement. On Jan 22, 12:54 pm, opike hastapast...@gmail.com wrote: I'm trying to troubleshoot an add.ctp view and I'd like to be able to see the insert statement that cake is

Re: Setting up alternative email system

2011-01-22 Thread dtemes
If you are using the Email component you can specify smtp options to use a standard smtp account for sending. On 21 ene, 17:23, WhyNotSmile sharongilmor...@gmail.com wrote: A client has a site which is hosted on 1and1, and built with CakePHP. Emails from the site are being blocked by some

Getting recursive user data via Auth

2011-01-22 Thread Yaron
Hi, Suppose I a users table, a groups table, and every user belongs to a group. I'd like via the app_controller to get the group's name, in order to set it in the view. I've used the following code in app_controller.php: function beforeRender(){ $this-loadModel('Group'); $group =

Re: Getting recursive user data via Auth

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 3:53 PM, Yaron yaron.go...@gmail.com wrote: Hi, Suppose I a users table, a groups table, and every user belongs to a group. I'd like via the app_controller to get the group's name, in order to set it in the view. I've used the following code in app_controller.php:

Re: Design templates

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 3:14 PM, eldorado2768 davidbrotman2...@gmail.com wrote: That's a very good point. However, you do admit that you do have to write your own view class. I am just inherently lazy and like to avoid as much coding as possible. So use WordPress or Drupal. When you run up

Re: See insert statements

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 3:23 PM, opike hastapast...@gmail.com wrote: Well I looked at the mysql logs and it doesn't look like cakephp is even getting to the point of issuing the insert statement. On Jan 22, 12:54 pm, opike hastapast...@gmail.com wrote: I'm trying to troubleshoot an add.ctp

Re: Design templates

2011-01-22 Thread eldorado2768
Do you know where I can get my hands on some of this code that you mentioned? -- 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 others with their CakePHP related questions. To

Re: Design templates

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 4:52 PM, eldorado2768 davidbrotman2...@gmail.com wrote: Do you know where I can get my hands on some of this code that you mentioned? You might start here: http://lmgtfy.com/?q=cakephp+cms -- Our newest site for the community: CakePHP Video Tutorials

Re: See insert statements

2011-01-22 Thread opike
Debug is set to 2 and echo $this-validationErrors comes up blank. This is what debug($this-data) shows after submission: Array ( [Alert] = Array ( [id] = [frequency] = 2985 [limit_value] = .03 [limit_adjustment] = .01

Re: See insert statements

2011-01-22 Thread opike
Sorry, meant to type debug($this-validationErrors) and incidentally it is showing this now: Array ( [Alert] = Array ( [id] = numeric ) ) Does that mean cake is expecting a value to be submitted for the id field? id is set to auto-increment. On Jan 22, 5:19 pm,

Re: See insert statements

2011-01-22 Thread euromark
you submit an empty string as id just omit the id key altogether and it will work On 23 Jan., 01:22, opike hastapast...@gmail.com wrote: Sorry, meant to type debug($this-validationErrors) and incidentally it is showing this now: Array (     [Alert] = Array         (             [id] =

Plain SQL query in Pagination

2011-01-22 Thread mmamedov
I need to run this query in $this-paginate(). 99 is an arbitrary user id number that is externally provided. I read this, http:book.cakephp.org/view/249/Custom-Query-Pagination, but it didn't help. I did also read this http:www.littlehart.net/

Re: See insert statements

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 7:22 PM, opike hastapast...@gmail.com wrote: Sorry, meant to type debug($this-validationErrors) and incidentally it is showing this now: Array (    [Alert] = Array        (            [id] = numeric        ) ) Does that mean cake is expecting a value to be

Re: See insert statements

2011-01-22 Thread opike
Removing the id key fixed it. Thanks for the help guys. On Jan 22, 6:07 pm, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 22, 2011 at 7:22 PM, opike hastapast...@gmail.com wrote: Sorry, meant to type debug($this-validationErrors) and incidentally it is showing this now: Array (  

Re: Hashed password displaying

2011-01-22 Thread Devario Johnson
personally I think u should just blank out the password field from the view so that the hashed one is not shown. that would save you from hashing a hash... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Plain SQL query in Pagination

2011-01-22 Thread cricket
On Sat, Jan 22, 2011 at 7:47 PM, mmamedov mmame...@gmail.com wrote: I need to run this query in $this-paginate(). 99 is an arbitrary user id number that is externally provided. I read this, http:book.cakephp.org/view/249/Custom-Query-Pagination, but it didn't help. I did also read this

Re: Plain SQL query in Pagination

2011-01-22 Thread mmamedov
Could you elaborate on that. I tried a few things with no luck. On Jan 22, 7:30 pm, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 22, 2011 at 7:47 PM, mmamedov mmame...@gmail.com wrote: I need to run this query in $this-paginate(). 99 is an arbitrary user id number that is externally

Proper MVC structure in CakePHP

2011-01-22 Thread websurfshop
Wondering if anyone cares to enlighten me about the proper cakePHP MVC theory for my project. I have numerous authoritative books. Each book is stored in a separate database table with each paragraph in the book as a separate record. Like so. id int, bookname varchar chapternumber tinyint

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Anatoliy Dimitrov
If you really intend to have millions of visitors then you might check other frameworks too (yii, zend and others). There are numerous sites with comparison between CakePHP and other frameworks which can give you details. Though, again it really depends on your code and server configuration.

Re: Plain SQL query in Pagination

2011-01-22 Thread mmamedov
OK I did it. On Jan 22, 9:00 pm, mmamedov mmame...@gmail.com wrote: Could you elaborate on that. I tried a few things with no luck. On Jan 22, 7:30 pm, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 22, 2011 at 7:47 PM, mmamedov mmame...@gmail.com wrote: I need to run this query in

Re: Proper MVC structure in CakePHP

2011-01-22 Thread Ryan Schmidt
On Jan 22, 2011, at 22:42, websurfshop wrote: I have numerous authoritative books. Each book is stored in a separate database table with each paragraph in the book as a separate record. Like so. id int, bookname varchar chapternumber tinyint paragraphnumber tinyint paragraphtext text

Re: Problem with copeied folder

2011-01-22 Thread Dr. Loboto
You must clear caches on copying. On 22 янв, 13:07, Gopinath T.M gopi4bre...@gmail.com wrote: i am working cakephp application. that folder name(application foldername) - sample This is orginal url of application -http://prog.appps.com/sample i like to maintain this application also

Re: Proper MVC structure in CakePHP

2011-01-22 Thread Ryan Schmidt
On Jan 23, 2011, at 00:21, Ryan Schmidt wrote: Actually, perhaps you want to have a table books as above, then a table chapters with columns id (the chapter id), order (the order of this chapter in the book; what you were calling chapternumber), and maybe name (the chapter name or title)

Re: Proper MVC structure in CakePHP

2011-01-22 Thread Sam Sherlock
I would rethink having each book in a table of its own; but Ryans pointed that out already the helper would be something like $this-BookQuotation-display($id); although: 1) I assume that $id being passed to the helper method is the id of quotation - but if you are looping through the quotations