How can i hide the cakephp .ctp extension

2011-01-27 Thread Narendra Padala
Hi...Flocks Problem: I have the following URLs for my website: www.example.com/services.ctp However, i would like to hide file extensions from the end users, and allow them to access to the files using the following URLs: www.example.com/services Can u please explain me, how can i do this.

Re: How can i hide the cakephp .ctp extension

2011-01-27 Thread Narendra Padala
://book.cakephp.org/view/1078/Views Have fun! On Thu, Jan 27, 2011 at 10:32 AM, Narendra Padala crazycake...@gmail.com wrote: Hi...Flocks Problem: I have the following URLs for my website: www.example.com/services.ctp However, i would like to hide file extensions from the end

Re: compleax query

2010-06-22 Thread Narendra Padala
Hi flocks, I am also new to cakephp ..is there any mistake excuse, try like this, $campaign_store_dates = $this-CampaignStoreDate-find('all', array('joins' = array(array( 'table' = 'stores',

Internationalizing the Application

2010-06-21 Thread Narendra Padala
Hi all, I am new to cakephp. But have implemented so many cakephp concepts. Now I want to implement internationalization to my application. I dont know wat to use. i18n, p28n or l10n. I even dont the difference between them. I was read the below articles but i didn't get,

Re: i was defined one global variable in core.php how can i use that variable in my app controller

2010-06-18 Thread Narendra Padala
wrote: On Jun 15, 8:11 am, Narendra Padala crazycake...@gmail.com wrote: Hi all I am new to cake php, I am created some themes like red, green blue etc. i have to use these themes in my appliaction. so i defined in my app controller like this var $view = 'Theme'; var

i was defined one global variable in core.php how can i use that variable in my app controller

2010-06-15 Thread Narendra Padala
Hi all I am new to cake php, I am created some themes like red, green blue etc. i have to use these themes in my appliaction. so i defined in my app controller like this var $view = 'Theme'; var $theme = 'black'; // here i need global value. this value i have to set in the core .php

Re: problem in auth component when i was creating a login controller.

2010-06-09 Thread Narendra Padala
Thanks sir, its working fine.! On Tue, Jun 8, 2010 at 8:40 PM, calvin cal...@rottenrecords.com wrote: Don't post the same question twice, please. You already had people helping you with this in the other thread. On Jun 8, 4:16 am, Narendra Padala crazycake...@gmail.com wrote: Hi i am

How to create login page using app_controller.php

2010-06-08 Thread Narendra Padala
Hi am new to cakephp, i am using postgress sql database this is an existing database here i am not having permissions to change any thing in database. but i have to wrote user authentication using app_controller.php so tried to wrote code like this but it was not working properly please any one

Re: How to create login page using app_controller.php

2010-06-08 Thread Narendra Padala
, Narendra Padala wrote: Hi am new to cakephp, i am using postgress sql database this is an existing database here i am not having permissions to change any thing in database. but i have to wrote user authentication using app_controller.php so tried to wrote code like this but it was not working

Re: How to create login page using app_controller.php

2010-06-08 Thread Narendra Padala
I was changed some changes in my app controller after that i got this error message this is code what i am wrote -- app_controller.php --- ?php class AppController extends Controller { var $components = array('Auth',

problem in auth component when i was creating a login controller.

2010-06-08 Thread Narendra Padala
Hi i am new to cake php, when i am creating a login authentication using app controller the following error was showed so please help me out. here data base i am using postgress sql, here i dont have permission to chanage the databse. this is app_controller.php

How to Add/Remove records dyanmically...

2010-06-04 Thread Narendra Padala
Hi i am new to cakephp, here i attached the screen shot off my application please see that attachment, any one having the related sample code please help me out. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: How to pass array value from one ctp file to another ctp file

2010-06-03 Thread Narendra Padala
can u please send any working example... On Wed, Jun 2, 2010 at 6:56 PM, Shaz shazam...@gmail.com wrote: Use elements, you can pass values between them: $this-element('whatever', $valuetobepassed); On 2 June, 13:16, Narendra Padala crazycake...@gmail.com wrote: Hi flocks, I am, new

How to pass array value from one ctp file to another ctp file

2010-06-02 Thread Narendra Padala
Hi flocks, I am, new to cake php actually i want display one report, in the down i put the link download link for Excel. For that purpose , i have to display same content for report and excel, so i was set the query results in one variable rows, using that variable i was displayed the records

Re: how i call function in cake link

2010-06-02 Thread Narendra Padala
?php echo $html-link('edit', array('controller'='dashboards', 'action'=' 'partner/'.$data[$i]['Partner']['id']')); ? On Wed, Jun 2, 2010 at 5:49 PM, mike karthauser mi...@brightstorm.co.ukwrote: On 2 Jun 2010, at 12:21, Dilip Godhani

Re: how i apply css on $html-link

2010-05-26 Thread Narendra Padala
?php echo $html-link('Add', 'add',array('class'='footer-link')); ? On Wed, May 26, 2010 at 12:30 PM, Ed Propsner crotchf...@gmail.com wrote: I would use: $html-div('current',

Re: how i apply css on $html-link

2010-05-26 Thread Narendra Padala
?php echo $html-link('Add', array('controller'= $this-params['controller'], 'action'='view'), array('class'='footer-link')); ? On Wed, May 26, 2010 at 2:19 PM, Narendra Padala crazycake...@gmail.comwrote

Re: Creating custom report

2010-05-25 Thread Narendra Padala
put code to ur controller -- $createdValue='12.34.00'; $authakeUserQuery=$this-authakeUser-find('all', array('conditions'=array('authakeUser.created'=$createdValue))); $$this-set('authakeUsers',$authakeUserQuery); --.ctp file table tr tdlogin/td tdpassword/td tdemail/td

Re: Creating custom report

2010-05-25 Thread Narendra Padala
, Narendra Padala crazycake...@gmail.comwrote: put code to ur controller -- $createdValue='12.34.00'; $authakeUserQuery=$this-authakeUser-find('all', array('conditions'=array('authakeUser.created'=$createdValue))); $$this-set('authakeUsers',$authakeUserQuery); --.ctp

Re: Can Any one Helllp me?

2010-05-25 Thread Narendra Padala
$suppliers = $this-Supplier-find('all', array( 'conditions' = array('AND',array('supplier_name'='narendra', 'supplier_id' =

Re: How to join 2 tables in the controller

2010-05-25 Thread Narendra Padala
$storeDivisions = $this-Store-find('all', array('joins' = array( array('table' = 'divisions', 'alias' = 'd', 'type' = 'left',

Re: How to join 2 tables in the controller

2010-05-25 Thread Narendra Padala
thanks ... for giving good suggestion On Tue, May 25, 2010 at 6:58 PM, Dilip Godhani dilip.godh...@gmail.comwrote: cakephp support relation u create one model in model folder and give relationship of two table cake automatic join that two table On Tue, May 25, 2010 at 6:57 PM, Narendra

How create model in cakephp [Naming conventions Problem]

2010-05-20 Thread Narendra Padala
Hi...All i am new to cakephp, i have problem in creating model please help me out...! My table names like this Table one : stores Table two : test_stores For one i create like this. File name: store.php ?php class Stores extends AppModel { var $name = 'Store';

Name Convention Problem in creating model please help me out

2010-05-20 Thread Narendra Padala
Hi...All i am new to cakephp, i have problem in creating model please help me out...! My table names like this Table one : stores Table two : test_stores For one i create like this. File name: store.php ?php class Stores extends AppModel { var $name = 'Store';

Re: How create model in cakephp [Naming conventions Problem]

2010-05-20 Thread Narendra Padala
models are: Table stores: store.php, model class Store Table test_stores: test_store.php, model class TestStores Jeremy Burns jeremybu...@me.com jeremybu...@mac.com (Skype) +44 208 123 3822 (jeremy_burns) (m) +44 7973 481949 (h) +44 208 530 7573 On 20 May 2010, at 13:54, Narendra Padala

Re: How create model in cakephp [Naming conventions Problem]

2010-05-20 Thread Narendra Padala
thanq On Thu, May 20, 2010 at 6:44 PM, Narendra Padala crazycake...@gmail.comwrote: hi here model class name Table test_stores: test_store.php, model class TestStores TestStores or TestStore. i have doubt let me clarify please var $name=TestStores; or var $name=TestStore On Thu, May

please any one can help me to convert this complex query in to cakephp

2010-05-20 Thread Narendra Padala
` = '3' Thanks in adavance On Thu, May 20, 2010 at 6:45 PM, Jeremy Burns jeremybu...@me.com wrote: It's TestStore - I just posted a correction. Jeremy Burns jeremybu...@me.com jeremybu...@mac.com On 20 May 2010, at 14:14, Narendra Padala wrote: hi here model class name Table test_stores

How to display the joins table data in cake php

2010-05-19 Thread Narendra Padala
Hi...All ! i am new to cake php i am writting query like this , i am using left join i wrote the query like below, but i dont know how to display that fileds data please help me out $storeDivisions = $this-Store-find('all', array('joins' =

How write where condition in cakephp

2010-05-19 Thread Narendra Padala
Hi ...All I am new to cake php, I need to write where conditions like this please any one can help me out WHERE ((c.start_date = '2010-05-19' AND c.start_date = '2010-06-30') OR (c.end_date = '2010-05-19' AND c.end_date = '2010-06-30')

Re: How to display the joins table data in cake php

2010-05-19 Thread Narendra Padala
, at 13:54, Narendra Padala wrote: Hi...All ! i am new to cake php i am writting query like this , i am using left join i wrote the query like below, but i dont know how to display that fileds data please help me out $storeDivisions = $this-Store-find('all

Re: How write where condition for this ('2010-05-19' = c.start_date AND '2010-05-19' = c.end_date) in cake php

2010-05-19 Thread Narendra Padala
: http://book.cakephp.org/view/1030/Complex-Find-Conditions Jeremy Burns jeremybu...@me.com jeremybu...@mac.com On 19 May 2010, at 14:06, Narendra Padala wrote: Hi ...All I am new to cake php, I need to write where conditions like this please any one can help me out

How write joins in cakephp please help me out

2010-05-18 Thread Narendra Padala
Hi..All, I am new to cakephp, If any one can help me how to write left joins in cake php. please conver below query in cakephp $sql = SELECT `c`.`campaign_id`, `c`.`supplier_id`, `c`.`brand`, `c`.`start_date`, `c`.`end_date` FROM `campaigns` as `c` LEFT JOIN

How write joins in cakephp please help me out

2010-05-18 Thread Narendra Padala
I am new to cakephp, If any one can help me how to write left joins in cake php. please conver below query in cakephp $sql = SELECT `c`.`campaign_id`, `c`.`supplier_id`, `c`.`brand`, `c`.`start_date`, `c`.`end_date` FROM `campaigns` as `c` LEFT JOIN

how write update query in cakephp

2010-05-13 Thread Narendra Padala
Hi...All!, I am new to cake php,I am suing postgreSql i need to update some fields in my database. In my controller my code like thishere i need convert these update command to cake, Please anyone can help me out how to convert this in to cake. function fun() {

Re: how write update query in cakephp

2010-05-13 Thread Narendra Padala
Burns jeremybu...@me.com On 13 May 2010, at 11:00, Narendra Padala wrote: Hi...All!, I am new to cake php,I am suing postgreSql i need to update some fields in my database. In my controller my code like thishere i need convert these update command to cake, Please anyone can help me

Re: how write update query in cakephp

2010-05-13 Thread Narendra Padala
' ) ) On Thu, May 13, 2010 at 3:52 PM, Narendra Padala crazycake...@gmail.comwrote: Sir, looked at sir, but i am not getting properly, can u write one example for my above code..please help me out sir On Thu, May 13, 2010 at 3:31 PM, Jeremy Burns jeremybu...@me.com wrote: Have you even looked

Re: how write update query in cakephp

2010-05-13 Thread Narendra Padala
); Jeremy Burns jeremybu...@me.com jeremybu...@mac.com On 13 May 2010, at 13:36, Narendra Padala wrote: when i am tried above like that, i got this error message *Warning* (2): pg_query() [function.pg-query http://php.net/function.pg-query]: Query failed: ERROR: null value in column

Re: how write update query in cakephp

2010-05-13 Thread Narendra Padala
message? Jeremy Burns jeremybu...@me.com jeremybu...@mac.com On 13 May 2010, at 13:53, Narendra Padala wrote: hi sir, i did that one now i got this error sir please help me out sir *Warning* (2): pg_query() [function.pg-query http://php.net/function.pg-query]: Query failed: ERROR

when i am trying to insert a data in to database the following error shows please help me out

2010-05-12 Thread Narendra Padala
Hi..!, I am new to cake php,usuing PostgreSql,When i am inserting a record its shows the follwoing error any one please help me out. Error: - Warning (2):pg_query() [function.pg-query]: Query failed: ERROR: relation tblcdlog_id_seq does not exist [CORE/cake/libs/model/

How to insert data in postgesql using cakephp

2010-05-10 Thread Narendra Padala
Hi i am new to cake php, how to insert data in to cakephp, i am using PostgreSql please help me out. $strDate=12-12-2010; $IngCDLog_Type=.gif; pg_exec($conn,INSERT INTO tblcdlog(dtmcreated, strcdno, lngcdlog_type, blnsuccess) VALUES ('$strDate', 'Unknown CD', $lngCDLog_Type, '0')); please any

Re: email sending

2010-05-09 Thread Narendra Padala
Hi..! , i am new to cakephp , i found this link for sending emails , i hope you it will helpful for you http://edwardawebb.com/web-development/cakephp/simple-email-component-cakephp On Mon, May 10, 2010 at 4:42 AM, Renato de Freitas Freire renat...@gmail.com wrote: i never could get smtp

how to display the particular month wise and partuclar day wise recods

2010-05-07 Thread Narendra Padala
Hi..! I am new to cakephp, how to display the particular month wise and partuclar day wise recods. I was stored date database table $date = date('Y-d-m'); format. $id=$user_id; $day=date(d); $month=date(m); Ex: select * from timesheets where user_id='$id' AND 'date'='month'; ^

Re: how to display the particular month wise and partuclar day wise recods

2010-05-07 Thread Narendra Padala
i got it like this, $timesheet = $this-Timesheet-find('all', array('conditions' = array( 'user_id' = $id,'MONTH(`date`)'=$currentMonth))); On Fri, May 7, 2010 at 11:42 AM, heh

how write update query in cakephp

2010-05-06 Thread Narendra Padala
Hi..! I am new to cakephp,how to conver the following qyery in to cakephp please any can help me out. $timem _out = date('H:i:s'); $date = date('Y-d-m'); UPDATE Timesheets SET time_out = '$time_out' WHERE id = '2' AND date = '$date'; thanks in advance...! Actually this is my for data.

how to convert postgresql $intCDLogCnt = pg_numrows($rsCDLog); function into cake

2010-04-30 Thread Narendra Padala
Hi...Everyone! I am new to cakephp , I am using postgres sql, i have problem like this i am able to convert this psql query to cake but pg_numrows() is i am not able convert. so please any one can help me out. $rsCDLog = pg_exec($conn, SELECT dtmcreated FROM tblcdlog WHERE blnsuccess = '1');

Re: plz help me out

2010-04-30 Thread Narendra Padala
$intProfileCnt = pg_numrows($rsProfile); var $intCDLogCnt = $this-Tblcdlog-find( 'count', array( 'conditions' = array( 'Tblcdlog.blnsuccess' = 1 ), 'fields' = array(

Re: plz help me out

2010-04-30 Thread Narendra Padala
), 'fields' = array( 'Tblcdlog.dtmcreated' ) ) ); On Fri, Apr 30, 2010 at 4:13 PM, Narendra Padala crazycake...@gmail.comwrote: $intProfileCnt = pg_numrows($rsProfile); var $intCDLogCnt

I have a problem when i am creating user login authentication

2010-04-29 Thread Narendra Padala
Hi..Every one , i am using postgresql database for cake when i am creating the user authentication its show errors, hope u i wrote properly but it shows Error, i wrote code like this please any one can help me out. My Database Table Name tbluser --

Re: I have a problem when i am creating user login authentication

2010-04-29 Thread Narendra Padala
table should be pluralized: users Also, why do you use tbl before you table names? On Thu, Apr 29, 2010 at 10:11 AM, Narendra Padala crazycake...@gmail.comwrote: Hi..Every one , i am using postgresql database for cake when i am creating the user authentication its show errors, hope u i

How to write to_char() function in cakephp

2010-04-26 Thread Narendra Padala
Hi all, I am new to cakephp i have problem like this please help me out sir $currentday = date(w); $rsStoreTime = pg_exec($conn, SELECT intdaynumber,to_char(dtmopeningtime,'HH24:mi') AS dtmopeningtime,to_char(dtmclosingtime,'HH24:mi') AS dtmclosingtime FROM tblstorehours where intdaynumber =

Re: How to write to_char() function in cakephp

2010-04-26 Thread Narendra Padala
thanks sir On Mon, Apr 26, 2010 at 10:00 PM, cricket zijn.digi...@gmail.com wrote: On Apr 26, 9:44 am, Narendra Padala crazycake...@gmail.com wrote: Hi all, I am new to cakephp i have problem like this please help me out sir $currentday = date(w); $rsStoreTime = pg_exec($conn

How to display form submitted data without using model and with model in the same controller

2010-04-22 Thread Narendra Padala
How to display form submitted data without using model and with model in the same controller Hi..All, I am new to cake php i have problem like this Table: CREATE TABLE `user`.`users` ( `name` VARCHAR( 60 ) NOT NULL ); Step :1

How to avoid the redundant code, is it possible to write that code write in one function and we have to call other functions, please help me out

2010-04-21 Thread Narendra Padala
Hi all i am new to cake php please help me My problem is: common code for all the controller methods and other controller methods also --common code start--- if(!isset($intCurrentMenu)){ $intCurrentMenu = -1; //

where can i write controller for elements please help me out.

2010-04-21 Thread Narendra Padala
Hi All, I am new to cakephp, When i am try to create menu i have problem, where can i write controller for elements please help me out. include file code here : views/elements/gravitybar.ctp --

Is it possible to write common code in one function and i have to call that function when i was required

2010-04-20 Thread Narendra Padala
Hi all..! I am new to cakephp i have problem, i have to use same code in multiple functions, example ?php class UsersController extends AppController { var $name = Users; function index() { $x=5; $y=10; $z=$x+$y; } function demo() { $x=5;

Re: Sending view parameters to javascript function

2010-04-16 Thread Narendra Padala
Hi ! I am using the same code, but i am not getting the out. please help me out On Apr 16, 3:57 pm, Ed Propsner crotchf...@gmail.com wrote: If it's your Javascript that's not working I would use: function validate()        {             var username=Form.Element.getValue('UserUsername');    

Re: Sending view parameters to javascript function

2010-04-16 Thread Narendra Padala
hi all var username=Form.Element.getValue('UserUsername'); i have a doubt UserUsername - field name or form name or model name and is there any specilalcharacte between User and Username. i am using this both form name and inputfiled name Form name : echo $form-create('User',