Re: How can i export report in pdf format?

2012-09-20 Thread manish bajaj
use fpdf that is easy to use.. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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

word to pdf conversion

2012-02-04 Thread manish bajaj
I need to convert word file to pdf format during user uploading of word file and save it in pdf format..can anyone help me out??? -- 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: how to hide rewrite url in cakephp?

2011-03-27 Thread manish roshan
A production installation is a more flexible way to setup Cake. Using this method allows an entire domain to act as a single CakePHP application. This example will help you install Cake anywhere on your filesystem and make it available at http://www.example.com. Note that this installation may

Aggregate function on hasMany model field

2009-12-11 Thread Manish Pithwa
: SELECT SUM( `Task`.`estimated_hours` ) AS estimated_hour, `Project` . * , `Task`.`project_id` , `Project`.`id` FROM `projects` AS `Project` LEFT JOIN tasks AS Task ON ( Task.project_id = Project.id ) GROUP BY `Project`.`id` Thanks in advance! Manish Pithwa Check out the new CakePHP Questions

Re: Get natural SQL built by Model methods like find, save

2009-12-11 Thread Manish Pithwa
Hi all, I don't want all queries to print just which I want in my code. Thanks Manish Pithwa On Dec 8, 5:46 pm, Pablo Viojo pvi...@gmail.com wrote: If you change debug to 2 in core.php you can see all the queries made. Regards Pablo Viojo pvi...@gmail.comhttp://pviojo.net ¿Que

Get natural SQL built by Model methods like find, save

2009-12-08 Thread Manish Pithwa
(select * from..., update table set field='value'... etc.) . So Please reply if anybody has to solution to get SQL for find and save method against array parameters passed to these. Thanks in advance! Manish Pithwa Check out the new CakePHP Questions site http://cakeqs.org and help others

how to retrieve joined result from multiple tables in cakePHP

2009-04-30 Thread Manish Sharma
Hi, can anyone tell me, how to retrieve joined result from multiple tables in cakePHP from using cakePHP mvc architecture. For e.g., I've three tables to join (tbl_topics, tbl_items, tbl_votes. There relationship is defined as, a topic can have many items and an item can have many votes). Now I

CakePHP 1.2 Validation on Client Side

2008-02-25 Thread manish
Hi I am using jquery through pquery helper class for my AJAX calls to my forms. I want to apply validation to my form form fields. But I don't need to validate anything from the server side for my fields. So I am looking for some helper or so, through which I could call cakephp builtin

Re: Rendering only the view/element without layout

2008-02-25 Thread manish
Hi Novice, If I understand your requirement correctly, I think this is a very common requirement with baking. What you have to do is to define a new layout with no headers, footers or so(means no other content than what you want to be displayed on the new opened window and in the body of this

Re: Are reflexive relation impossible with CakePHP ?

2008-02-22 Thread manish
But as much I know about findAllThreaded(), it is only used to find All data from tables joined to themselves. As written in API documentation for findAllThreaded; Special findAll variation for tables joined to themselves. The table needs the fields id and parent_id to work. Though I have not

Re: Applying CSS

2008-02-21 Thread manish
You can paas the name of the class in the attributes array like ?php echo $html-input('Post/title' , array('class' = 'test'))? Here second argument is the array for HTML elements. You can pass your html attributes including class name through this array. On Feb 22, 7:15 am, vj [EMAIL

Re: Changing the data and beforeValidate

2008-02-04 Thread manish
I think, The best way to do this stuff is in the controller itself. First you need to check whether the data is posted from the form. You can do so by doing something like: if(!empty($this-data['ModelName']['id'])) if it is so, you can check: if(empty($this-data['ModelName']['title']))

Re: How to update myprofile in more than one table at a time.

2008-01-31 Thread manish
It looks you are missing to set the id of the userprofile table in your data array $this-data, as you did above for $this-data['User']['id']; I mean try setting the id of your userprofile table i.e. $this-data['UserProfile']['id'] On Feb 1, 9:11 am, vinoth [EMAIL PROTECTED] wrote: Hi pals,

Help me with Associations

2008-01-30 Thread manish
I have defined association between Two of my models: /app/models/TasksList.php ?php class TasksList extends AppModel { var $useTable = 'tasks_lists'; var $uses=array('TasksPriority','TasksList'); var $belongsTo = array( 'TasksPriority' = array(

Re: Help me with Associations

2008-01-30 Thread manish
database schema here. Also, $uses() does absolutely nothing in a model. It's a controller variable. On Jan 30, 12:18 pm, manish [EMAIL PROTECTED] wrote: I have defined association between Two of my models: /app/models/TasksList.php ?php class TasksList extends AppModel { var $useTable

Re: Help me with Associations

2008-01-30 Thread manish
:39 pm, manish [EMAIL PROTECTED] wrote: Thanks for your reply, I have removed $uses from my models. I also tried your way as you pasted here, but still no answer. The SQL dump for two of my models is: Model : /app/models/TasksPriority.php CREATE TABLE `tasks_priorities` ( `id` int

Re: last created, last modified

2008-01-30 Thread manish
Yes, this is managed by Cake itself. Check: http://tempdocs.cakephp.org/#TOC62105 On Jan 31, 9:07 am, Raistlin Majere [EMAIL PROTECTED] wrote: I do not know how the last created date and the last modified date are passed to my database. I do not have a hidden created date input nor a hidden

Re: Help me with Associations

2008-01-30 Thread manish
Nothing seems to be working for me. I don't know why. Is there any we we could trace the associations On Jan 30, 5:49 pm, manish [EMAIL PROTECTED] wrote: I already tried that too. But for nothing. The SQL the Cake debugging shows is: 18 SELECT `TasksList`.`id`, `TasksList`.`task_name

Re: belongsTo not binding to Model - 1.2

2008-01-29 Thread manish
I am also facing a similar problem. I have created associations in Past successfully. But sometimes even though everything looks correct but we see no sign of association. I want to ask Is there any way of checking where we are going wrong? On Jan 30, 9:46 am, Mac65 [EMAIL PROTECTED] wrote:

Re: how to upload file?

2008-01-24 Thread manish
Can you tell, what is the enctype you gave for the form? On Jan 25, 11:17 am, Rgarg [EMAIL PROTECTED] wrote: please help me.. its not working. the value of $_FILES['filename']['tmp_name'] is not comming form my add.thtml page. what's the solution for this? On Jan 24, 9:13 pm, Novice

Re: retrieve data form two tables

2008-01-24 Thread manish
You have to create association between two tables by their respective Models and then you can use the notation: ModelName.FieldName in the Where condition On Jan 25, 11:48 am, Rgarg [EMAIL PROTECTED] wrote: Hi... i wants to display records form two tables(tickets,bookings) using cake php

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread manish
http://groups.google.com/group/cake-php/browse_thread/thread/996efa1f92415163/6c38e322189ec4ef?lnk=gstq=manish#6c38e322189ec4ef On Jan 22, 4:20 pm, RichardAtHome [EMAIL PROTECTED] wrote: Hi All I've just upgraded a project to the latest beta 1.2 (cake_1.2.0.6311- beta) and am struggling

Re: Default form data

2008-01-22 Thread manish
I have a way of doing it, while I am not sure how good it is in CakePHP terms, but it should work. Set a variable (Suppose $test) for default value i.e. 'Beavis' in your controller. But this should be set only in case when no data is posted which means the page loads for the first time. In your

Re: Default form data

2008-01-22 Thread manish
Yes , it looks better. Thanx 2dee for clearance On Jan 23, 11:52 am, 2dee [EMAIL PROTECTED] wrote: On Jan 23, 1:33 am, manish [EMAIL PROTECTED] wrote: I have a way of doing it, while I am not sure how good it is in CakePHP terms, but it should work. Set a variable (Suppose $test

Re: Help getting started...

2008-01-20 Thread manish
http://groups.google.com/group/cake-php/browse_thread/thread/d7c7d2bd6635a76f/e976e8d9cb6153d3?lnk=gstq=manish#e976e8d9cb6153d3 On Jan 21, 6:23 am, Dave Porter [EMAIL PROTECTED] wrote: Hi everyone, I have Apache installed on my machine ( WinXP Pro SP2 ) have a number of other php based

Re: generating a select statement for a user's country

2008-01-16 Thread manish
Write following in your DealersController class: $subdivisions = $this-Country-find(all,array('fields' = array('Country.id','Country.name') )); $result = Set::combine($subdivisions, '{n}.Country.id','{n}.Country.name'); $this-set('countrylist',$result); Before this don't forget to add Country

Re: generating a select statement for a user's country

2008-01-16 Thread manish
Well francky I did not know this. I will also give it a try. On Jan 16, 5:34 pm, francky06l [EMAIL PROTECTED] wrote: You can avoid mentionning the country in uses if you do $this-Dealer- Country-list() On Jan 16, 1:19 pm, Barry [EMAIL PROTECTED] wrote: aaah, yes. That works

Re: nested models

2008-01-16 Thread manish
http://tempdocs.cakephp.org/#TOC78863 On Jan 17, 7:09 am, Carl [EMAIL PROTECTED] wrote: I have a table of headings and a table of categories. Each heading hasMany categories, and each category belongsTo a heading. I need a view that lists each heading with its associated categories. I have

Where to call the form helper Save function in cakephp 1.2

2008-01-10 Thread manish
Hi All, I am relatively new to CakePHP and working with CakePHP 1.2 beta. What I have learned so far is that we use controllers to take input and models to actually save data. But the form helper Save function is working fine in my controller class and not in my model class. I want to ask that

Re: Where to call the form helper Save function in cakephp 1.2

2008-01-10 Thread manish
the data to the Model in order to validate the data to be saved. In the Model, you would place all of your data validation, and if the passed data passes the validation present in the Model, the Controller will go ahead and save the data to the database. On Jan 10, 2008 4:48 AM, manish [EMAIL

Re: Help..How to run cakephp in winxp?

2008-01-10 Thread manish
Hi, Go to app\config\core.php See Line number 59. It should be: //Configure::write('App.baseUrl', env('SCRIPT_NAME')); and commented. Uncomment this line and see the magic On Jan 11, 9:10 am, Nick [EMAIL PROTECTED] wrote: I can't run cakephp in XP. my localhost display CakePHP Rapid