$pageTitle not working

2010-05-31 Thread SeeVik
Hello all I just started with CakePHP 1.3.1. I am trying to set the title of a page. I have defined the title_for_layout in the default layout as well, still the view does not get the title I want. Instead it displays the name of controller. Although setting the title_for_layout in the view templa

Re: Data Validation not working

2010-03-18 Thread SeeVik
Hello all Thanks for guiding me out of this problem. @ Dr. Loboto - Yes that was the problem. The model filename was Inventory.php. As soon as I changed it to inventory.php, it worked like a charm. Although why it worked on Windows local server and not on Linux web server is what I don't get. Any

Re: Data Validation not working

2010-03-15 Thread SeeVik
Mordente wrote: > Probably there is an error at database level. Make sure your server > table structure and constraints are the same of your local machine. > > On 15 mar, 01:20, SeeVik wrote: > > > > > Hello all > > > I am using CakePHP 1.2 and I am trying to impleme

Data Validation not working

2010-03-14 Thread SeeVik
Hello all I am using CakePHP 1.2 and I am trying to implement a simple form data validation. The thing is that the data validation works on my local machine but it doesn't work on my rental server (Linux FreeBSD server). Here's my model array( 'rule' => 'notEmpty',

Re: Data Validation Errors not displaying!!!

2010-03-11 Thread SeeVik
the > API for $form->error(): > > http://api.cakephp.org/class/form-helper#method-FormHelpererror > > Hope that helps, > Nick > > On Mar 11, 5:37 am, SeeVik wrote: > > > > > If I use $form->input() then I will also have to use the label for the > &

Re: Data Validation Errors not displaying!!!

2010-03-11 Thread SeeVik
tml->tagErrorMsg but I know that in cakephp 1.2 it has been deprecated. So what's the new way of doing it? Thanks and Regards ShiVik On Mar 11, 8:32 pm, euromark wrote: > always use $form->input() > this will make a lot for u automatically > > On 11 Mrz., 11:19, SeeVik wrot

Data Validation Errors not displaying!!!

2010-03-11 Thread SeeVik
Hello all I am using cakephp 1.2 and I am having problem in displaying the error messages for the data validation of a form. I created the form like this create( 'Posts', array( 'action' => 'index' ) ); ?> text( 'text' ); ?> text( 'value' ); ?> end( 'Submit' ); ?> In my model Post.php I hav

Apply https for a particular module

2010-02-28 Thread SeeVik
Hello all I am using Cakephp 1.1 for my webapp and I want to use https when the user logs in his user account. For guest users I want the simple http connection to be used. Can this be done by using some setting in cakephp or should it be set it in Apache configuration? Thanks and Regards ShiVik

Website shuts down???

2010-02-26 Thread SeeVik
Hello all At my workplace, I have a web application created using cakephp 1.1. Its running on Windows Server 2003 on xampp (Apache, MySQL, phpmyAdmin) bundle. The problem is that it regularly goes down during peak times. It seems that the problem is in my web application since when the site goes

Re: How to retrieve the URL being accessed

2010-01-11 Thread SeeVik
$this->params['controller'] > > - action: $this->params['action'] > > and more > > but those two should do it for now > > > you can now check on them > > but as soon as you need more functionality check out "auth component" > > i

How to retrieve the URL being accessed

2010-01-08 Thread SeeVik
Hello all I am just starting out with cakephp. I want to restrict the access to some particular controllers and actions depending on user privileges. I am thinking of doing this in the app_controller module. I wanted to know how can I check the controller and action being accessed over there. Tha

How to retrieve the query being executed

2009-12-24 Thread SeeVik
Hello all I am trying to set my feet in CakePHP. I wanted to ask how can I know what query is being executed when I write something like this... $cond = array( 'id={$param}' ); $list = $this->TableName->findAll( $cond, null, 'TableName.fieldName' ); Thanks and Regards ShiVik Check out the new C

Fatal Error: Out of memory error

2009-11-25 Thread SeeVik
Hello All I keep getting this error from time to time. Like 2-3 times a week, but I haven't been able to find out the reason for this error. The error looks something like this Fatal error: Out of memory (allocated 4980736) (tried to allocate 37 bytes) in D:\webapp\scripts\myapp\cake\libs\mo

Moving a webapp from Windows to Linux

2009-05-26 Thread SeeVik
Hello all, I created an application on WIndows using XAMPP. Now I want to move the application to LAMPP on Ubuntu. The thing is it seems like PATH_SEPARATOR constant in Cakephp seems to set to ":" (a colon) in linux, so my include path is appearing like ".:/opt/lampp/lib/php". Where should I cha

Re: Problem in session management in Cakephp

2009-04-06 Thread SeeVik
logging in? Thanks and Regards Vikram On Apr 6, 6:31 pm, "Dr. Loboto" wrote: > Your problem is unclear. What is "sessions mixed up"? If someone see > information of other customer maybe it is just currently logged > person? > > On Apr 6, 3:42 pm, SeeVik wrote

Re: Problem in session management in Cakephp

2009-04-06 Thread SeeVik
I found out that this problem is occuring only for users in Kenya. I found one more case of such a website with users in Kenya who are getting sessions mixed up. Does anybody have any idea about this strange problem? On Apr 6, 1:21 pm, SeeVik wrote: > Regarding this problem, can anybody t

Re: Problem in session management in Cakephp

2009-04-05 Thread SeeVik
Regarding this problem, can anybody tell me where the log files are stored in cakephp? On Apr 3, 1:43 pm, SeeVik wrote: > Hello all > > I have a question regarding our website built using cakephp. I have > some idea of php but I am completely new to the frameworks. The thing >

Problem in session management in Cakephp

2009-04-03 Thread SeeVik
Hello all I have a question regarding our website built using cakephp. I have some idea of php but I am completely new to the frameworks. The thing is our company got a webapp built from a firm to manage information of our customers. But the thing is that the sessions at the customer side are so