Advantages of components

2006-09-09 Thread KN
Hi, In my application I used to put the common functions in app/app_controller. And from other controllers, I am calling those functions. Anything wrong with this ? Now the app/app_controller.php file become very big. I came to know about components (from http://manual.cakephp.org/chapter/compon

Re: A basic layout question

2006-08-25 Thread KN
Thanks AD. I have gone through RequestHandler and I changed the code according to that. And it is working fine.. And I removed my ajax.thtml , it is not at all required. AD7six wrote: > add the RequestHandler component to your app controller and amongst > other things it will ensure that you ge

Re: A basic layout question

2006-08-24 Thread KN
Ok.. I have created a new layout - default.thtml http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> charset('UTF-8');?> My Site title css('mysite','stylesheet',array('media'=>'screen'));?> link('prototype.js'); ?> link('scriptaculous.js?load=builder,eff

Re: A basic layout question

2006-08-24 Thread KN
Thanks for the replies. Pablo , Do you mean to say that my ajax.thtml should contain only ? Then where I will include all javascript files ? Should I need to create default.thtml (layout) ? And while clicking on any link , I will load through ajax . ie render('newpage' , 'ajax') .. Am I corr

A basic layout question

2006-08-23 Thread KN
Hi, In my site I want all things should be done through ajax. So I have created ajax.thtml and kept that file in layouts folder. And in app_controller I have changed the layout to ajax. Now the problem is after clicking on any link , will load the respective page without refreshing the things.An

Another Refresh question

2006-08-03 Thread KN
Hi, In my index page, I have given the sorttable listing along with other views. And each item is an element. And whole elements given in the following way. // Main div Element1 Element2 Element3 And drag-drop things are working fine. After dropping

Re: Calling model functions from View

2006-07-12 Thread KN
Some more doubts.. AD, Do you mean to say that for each value we have to write separate components ? In my case , one particular section contains some values. I will be using it as a whole in other pages (not a single value). Please see the following scenario. In my home page , so many sectio

Re: Calling model functions from View

2006-07-11 Thread KN
Thanx AD.. --~--~-~--~~~---~--~~ 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 o

Calling model functions from View

2006-07-11 Thread KN
Hi, This question is about implementing MVC in Cake. In every example I found that there exists separate view for each and every controller (model). In my site, I have created one element and embed this to the layout. In that element I want to display some calculated values (Eg:- From sales mode